Driver core: Constify struct sysfs_ops in struct kobj_type
[deliverable/linux.git] / drivers / cpuidle / sysfs.c
index c9cefacabf37fe2126bbe0de12fe76c2bd80f7d7..8719b36e1a4d9adc858d2327fcac40d66e7df121 100644 (file)
@@ -195,7 +195,7 @@ static ssize_t cpuidle_store(struct kobject * kobj, struct attribute * attr,
        return ret;
 }
 
-static struct sysfs_ops cpuidle_sysfs_ops = {
+static const struct sysfs_ops cpuidle_sysfs_ops = {
        .show = cpuidle_show,
        .store = cpuidle_store,
 };
@@ -281,7 +281,7 @@ static ssize_t cpuidle_state_show(struct kobject * kobj,
        return ret;
 }
 
-static struct sysfs_ops cpuidle_state_sysfs_ops = {
+static const struct sysfs_ops cpuidle_state_sysfs_ops = {
        .show = cpuidle_state_show,
 };
 
This page took 0.0296 seconds and 5 git commands to generate.