]> 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)
commit18c50507fb7d440df46b9921d9820e554a389aa7
tree730b3f757f7ac7d6c80ed5c7b38ec3ced35dfef9
parent3a21979d54d01af757efbf9a9f521b94847f501c
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