diff options
author | YueHaibing <yuehaibing@huawei.com> | 2021-05-26 21:29:49 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-05-28 20:39:51 -0300 |
commit | c5b8eaf8afd8c2711233a344a5e2e8e4aa562301 (patch) | |
tree | 7ba9326ef8a3792e57a8084b2d314156a5f2b3ab /drivers/leds | |
parent | 1f8f60f35f79210fe6af32fc62528bd5c0ace923 (diff) |
RDMA/core: Use the DEVICE_ATTR_RO macro
Use the DEVICE_ATTR_RO() helper instead of plain DEVICE_ATTR(), which
makes the code a bit shorter and easier to read.
Link: https://lore.kernel.org/r/20210526132949.20184-1-yuehaibing@huawei.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/leds')
0 files changed, 0 insertions, 0 deletions