projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
778c69c
)
greybus: quick fix for sysfs serial number
author
Alex Elder
<elder@linaro.org>
Tue, 23 Sep 2014 17:46:32 +0000
(12:46 -0500)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Wed, 24 Sep 2014 03:40:29 +0000
(20:40 -0700)
Let the serial number attribute have its own is_visible function.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/sysfs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/greybus/sysfs.c
b/drivers/staging/greybus/sysfs.c
index b503d2c4ef2801a5163f09e38cda220783eb6da2..792a2381c289bd6f464b99b5c5a8be710cf0a6aa 100644
(file)
--- a/
drivers/staging/greybus/sysfs.c
+++ b/
drivers/staging/greybus/sysfs.c
@@
-156,9
+156,15
@@
static struct attribute *serial_number_attrs[] = {
NULL,
};
+static umode_t serial_number_is_visible(struct kobject *kobj,
+ struct attribute *a, int n)
+{
+ return a->mode;
+}
+
static struct attribute_group serial_number_attr_grp = {
.attrs = serial_number_attrs,
- .is_visible =
function_attrs_are
_visible,
+ .is_visible =
serial_number_is
_visible,
};