summaryrefslogtreecommitdiffstats
path: root/drivers/misc/aspeed-lpc-ctrl.c
diff options
context:
space:
mode:
authorDmitry Torokhov2017-02-14 21:24:09 +0100
committerGreg Kroah-Hartman2017-03-17 07:10:49 +0100
commit87e715deb8e24bf1a6a9a1babaf465c28c93889c (patch)
tree301f21d1a648dc9a84c1eb65df4c2e77fc79cb4a /drivers/misc/aspeed-lpc-ctrl.c
parentMAINTAINERS: update firmware loader entry (diff)
downloadkernel-qcow2-linux-87e715deb8e24bf1a6a9a1babaf465c28c93889c.tar.gz
kernel-qcow2-linux-87e715deb8e24bf1a6a9a1babaf465c28c93889c.tar.xz
kernel-qcow2-linux-87e715deb8e24bf1a6a9a1babaf465c28c93889c.zip
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>
Diffstat (limited to 'drivers/misc/aspeed-lpc-ctrl.c')
0 files changed, 0 insertions, 0 deletions