git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Driver core: Constify struct sysfs_ops in struct kobj_type
[safe/jmp/linux-2.6]
/
samples
/
kobject
/
kset-example.c
diff --git
a/samples/kobject/kset-example.c
b/samples/kobject/kset-example.c
index
7c60881
..
3b126d1
100644
(file)
--- a/
samples/kobject/kset-example.c
+++ b/
samples/kobject/kset-example.c
@@
-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,
};