]> www.infradead.org Git - users/jedix/linux-maple.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>
Thu, 20 May 2021 15:25:14 +0000 (17:25 +0200)
commit7e17367e016922e2862b42e86b0307a95afb6826
treeee5b7f1c7b8839687e9cdfbded39903342ea341f
parent3c12c376e96583aaf01fc428ccadf1f8655bdaef
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