regulator: core: Use DEVICE_ATTR_RO macro
authorYueHaibing <yuehaibing@huawei.com>
Sat, 29 May 2021 11:52:26 +0000 (19:52 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 2 Jun 2021 11:03:34 +0000 (12:03 +0100)
commita277a2622ca9609de09c18f660f0d10f1ddbb379
tree4d97b36e2ad5139aa7551d3898448c76e687fe83
parent96ec5afeb3001dcb432b9c9e8738aa537c6cdb12
regulator: core: 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>
Link: https://lore.kernel.org/r/20210529115226.25376-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c