mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
rapidio: rio-sysfs.c: convert to use BUS_ATTR_WO
We are trying to get rid of BUS_ATTR() and the usage of that in rio-sysfs.c can be trivially converted to use BUS_ATTR_WO(), so use that instead. Cc: Matt Porter <mporter@kernel.crashing.org> Cc: Alexandre Bounine <alex.bou9@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c1507ea834
commit
c9fbe769d0
1 changed files with 2 additions and 3 deletions
|
|
@ -290,8 +290,7 @@ const struct attribute_group *rio_dev_groups[] = {
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
static ssize_t bus_scan_store(struct bus_type *bus, const char *buf,
|
static ssize_t scan_store(struct bus_type *bus, const char *buf, size_t count)
|
||||||
size_t count)
|
|
||||||
{
|
{
|
||||||
long val;
|
long val;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
@ -314,7 +313,7 @@ exit:
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
static BUS_ATTR(scan, (S_IWUSR|S_IWGRP), NULL, bus_scan_store);
|
static BUS_ATTR_WO(scan);
|
||||||
|
|
||||||
static struct attribute *rio_bus_attrs[] = {
|
static struct attribute *rio_bus_attrs[] = {
|
||||||
&bus_attr_scan.attr,
|
&bus_attr_scan.attr,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue