Driver core: Constify struct sysfs_ops in struct kobj_type
[pandora-kernel.git] / samples / kobject / kset-example.c
index 7c60881..3b126d1 100644 (file)
@@ -87,7 +87,7 @@ static ssize_t foo_attr_store(struct kobject *kobj,
 }
 
 /* Our custom sysfs_ops that we will associate with our ktype later on */
-static struct sysfs_ops foo_sysfs_ops = {
+static const struct sysfs_ops foo_sysfs_ops = {
        .show = foo_attr_show,
        .store = foo_attr_store,
 };