OSDN Git Service

EISA: use DEVICE_ATTR_RO() helper macro
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 3 Jun 2021 09:05:06 +0000 (17:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Jun 2021 13:28:34 +0000 (15:28 +0200)
commit39ee156c5ac1b9ca42cb7086c7893b19596c85ab
tree45ec78a03ed4e81af94802b821335f8cdac7fd4b
parent2fa7d74ff54e8c99f7cf04e1749bfca8f8e12e98
EISA: use DEVICE_ATTR_RO() helper macro

Use DEVICE_ATTR_RO() helper macro instead of DEVICE_ATTR(), which makes
the code a bit shorter and easier to read.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210603090506.11771-1-thunder.leizhen@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/eisa/eisa-bus.c