]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5934eec0bb4836a47ceee542fa43fc5ef174ce32
tree730b3f757f7ac7d6c80ed5c7b38ec3ced35dfef9
parent584612e83cf371ea3f44c8fb9ffea032eafd5df6
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