.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * RapidIO sysfs attributes and support |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2005 MontaVista Software, Inc. |
---|
5 | 6 | * Matt Porter <mporter@kernel.crashing.org> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify it |
---|
8 | | - * under the terms of the GNU General Public License as published by the |
---|
9 | | - * Free Software Foundation; either version 2 of the License, or (at your |
---|
10 | | - * option) any later version. |
---|
11 | 7 | */ |
---|
12 | 8 | |
---|
13 | 9 | #include <linux/kernel.h> |
---|
.. | .. |
---|
290 | 286 | NULL, |
---|
291 | 287 | }; |
---|
292 | 288 | |
---|
293 | | -static ssize_t bus_scan_store(struct bus_type *bus, const char *buf, |
---|
294 | | - size_t count) |
---|
| 289 | +static ssize_t scan_store(struct bus_type *bus, const char *buf, size_t count) |
---|
295 | 290 | { |
---|
296 | 291 | long val; |
---|
297 | 292 | int rc; |
---|
.. | .. |
---|
314 | 309 | |
---|
315 | 310 | return rc; |
---|
316 | 311 | } |
---|
317 | | -static BUS_ATTR(scan, (S_IWUSR|S_IWGRP), NULL, bus_scan_store); |
---|
| 312 | +static BUS_ATTR_WO(scan); |
---|
318 | 313 | |
---|
319 | 314 | static struct attribute *rio_bus_attrs[] = { |
---|
320 | 315 | &bus_attr_scan.attr, |
---|