tty: vcc: use DEVICE_ATTR_*() macro
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 2 Jun 2021 01:48:39 +0000 (09:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Jun 2021 13:23:00 +0000 (15:23 +0200)
commit2877389f59dc455e4283ae23ad494b410c15b3a3
treeee037a90e4ed262001babe07da6d9a72a13f36bf
parent3b2cd60689fa439481f535ee4463fb223a276f43
tty: vcc: use DEVICE_ATTR_*() macro

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

Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210602014839.10587-1-thunder.leizhen@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vcc.c