uwb: use class_groups instead of class_attrs
The class_attrs pointer is long depreciated, and is about to be finally removed, so move to use the class_groups pointer instead. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6f428096a4
commit
84c317ea07
|
@ -94,17 +94,18 @@ ssize_t beacon_timeout_ms_store(struct class *class,
|
||||||
beacon_timeout_ms = bt;
|
beacon_timeout_ms = bt;
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
static CLASS_ATTR_RW(beacon_timeout_ms);
|
||||||
|
|
||||||
static struct class_attribute uwb_class_attrs[] = {
|
static struct attribute *uwb_class_attrs[] = {
|
||||||
__ATTR(beacon_timeout_ms, S_IWUSR | S_IRUGO,
|
&class_attr_beacon_timeout_ms.attr,
|
||||||
beacon_timeout_ms_show, beacon_timeout_ms_store),
|
NULL,
|
||||||
__ATTR_NULL,
|
|
||||||
};
|
};
|
||||||
|
ATTRIBUTE_GROUPS(uwb_class);
|
||||||
|
|
||||||
/** Device model classes */
|
/** Device model classes */
|
||||||
struct class uwb_rc_class = {
|
struct class uwb_rc_class = {
|
||||||
.name = "uwb_rc",
|
.name = "uwb_rc",
|
||||||
.class_attrs = uwb_class_attrs,
|
.class_groups = uwb_class_groups,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue