1
0
Fork 0

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 <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
hifive-unleashed-5.1
Johan Hovold 2015-11-25 15:58:59 +01:00 committed by Greg Kroah-Hartman
parent 320421a80b
commit 4396c00b73
1 changed files with 4 additions and 4 deletions

View File

@ -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,
};