Commit 380f6bdd authored by Alex Elder's avatar Alex Elder Committed by Greg Kroah-Hartman

greybus: quick fix for sysfs serial number

Let the serial number attribute have its own is_visible function.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 778c69c9
......@@ -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,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment