From: Johan Hovold Date: Wed, 25 Nov 2015 14:58:59 +0000 (+0100) Subject: greybus: bundle: rename class attribute X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4396c00b73d1ead961f09016aa9c731ea97c44ab;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: bundle: rename class attribute Rename the bundle class-attribute "bundle_class" for consistency reasons and to make it self documenting. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/bundle.c b/drivers/staging/greybus/bundle.c index 4d04f09f0591..7b539e9d7aea 100644 --- a/drivers/staging/greybus/bundle.c +++ b/drivers/staging/greybus/bundle.c @@ -9,14 +9,14 @@ #include "greybus.h" -static ssize_t class_show(struct device *dev, struct device_attribute *attr, - char *buf) +static ssize_t bundle_class_show(struct device *dev, + struct device_attribute *attr, char *buf) { struct gb_bundle *bundle = to_gb_bundle(dev); return sprintf(buf, "%d\n", bundle->class); } -static DEVICE_ATTR_RO(class); +static DEVICE_ATTR_RO(bundle_class); static ssize_t state_show(struct device *dev, struct device_attribute *attr, char *buf) @@ -48,7 +48,7 @@ static DEVICE_ATTR_RW(state); static struct attribute *bundle_attrs[] = { - &dev_attr_class.attr, + &dev_attr_bundle_class.attr, &dev_attr_state.attr, NULL, };