hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/rapidio/rio-sysfs.c
....@@ -1,13 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * RapidIO sysfs attributes and support
34 *
45 * Copyright 2005 MontaVista Software, Inc.
56 * 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.
117 */
128
139 #include <linux/kernel.h>
....@@ -290,8 +286,7 @@
290286 NULL,
291287 };
292288
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)
295290 {
296291 long val;
297292 int rc;
....@@ -314,7 +309,7 @@
314309
315310 return rc;
316311 }
317
-static BUS_ATTR(scan, (S_IWUSR|S_IWGRP), NULL, bus_scan_store);
312
+static BUS_ATTR_WO(scan);
318313
319314 static struct attribute *rio_bus_attrs[] = {
320315 &bus_attr_scan.attr,