OSDN Git Service

Bluetooth: RFCOMM: Use DEVICE_ATTR_RO macro
authorYueHaibing <yuehaibing@huawei.com>
Thu, 20 May 2021 13:32:35 +0000 (21:32 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 26 Jun 2021 05:12:33 +0000 (07:12 +0200)
commitc615943ef0525fdaea631ca42ded446e11389062
tree730b3f757f7ac7d6c80ed5c7b38ec3ced35dfef9
parente848dbd364aca44c9d23c04bef964fab79e2b34f
Bluetooth: RFCOMM: Use DEVICE_ATTR_RO macro

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

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/rfcomm/tty.c