Searched hist:"87 e715deb8e24bf1a6a9a1babaf465c28c93889c" (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/zorro/ |
H A D | zorro-sysfs.c | diff 87e715deb8e24bf1a6a9a1babaf465c28c93889c Tue Feb 14 21:24:09 CET 2017 Dmitry Torokhov <dmitry.torokhov@gmail.com> zorro: stop creating attributes by hand
Instead of creating attributes one by one, define attribute_group array and attach it to bus->dev_groups, so that all needed attributes are created automatically when a new device is registered on the bus.
Also switch to using standard DEVICE_ATTR_RO() macros.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
H A D | zorro.h | diff 87e715deb8e24bf1a6a9a1babaf465c28c93889c Tue Feb 14 21:24:09 CET 2017 Dmitry Torokhov <dmitry.torokhov@gmail.com> zorro: stop creating attributes by hand
Instead of creating attributes one by one, define attribute_group array and attach it to bus->dev_groups, so that all needed attributes are created automatically when a new device is registered on the bus.
Also switch to using standard DEVICE_ATTR_RO() macros.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
H A D | zorro-driver.c | diff 87e715deb8e24bf1a6a9a1babaf465c28c93889c Tue Feb 14 21:24:09 CET 2017 Dmitry Torokhov <dmitry.torokhov@gmail.com> zorro: stop creating attributes by hand
Instead of creating attributes one by one, define attribute_group array and attach it to bus->dev_groups, so that all needed attributes are created automatically when a new device is registered on the bus.
Also switch to using standard DEVICE_ATTR_RO() macros.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
H A D | zorro.c | diff 87e715deb8e24bf1a6a9a1babaf465c28c93889c Tue Feb 14 21:24:09 CET 2017 Dmitry Torokhov <dmitry.torokhov@gmail.com> zorro: stop creating attributes by hand
Instead of creating attributes one by one, define attribute_group array and attach it to bus->dev_groups, so that all needed attributes are created automatically when a new device is registered on the bus.
Also switch to using standard DEVICE_ATTR_RO() macros.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|