diff options
| author | YueHaibing <yuehaibing@huawei.com> | 2021-05-29 19:52:26 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2021-06-02 12:03:34 +0100 |
| commit | a277a2622ca9609de09c18f660f0d10f1ddbb379 (patch) | |
| tree | 4d97b36e2ad5139aa7551d3898448c76e687fe83 /lib/mpi/mpi-sub-ui.c | |
| parent | 96ec5afeb3001dcb432b9c9e8738aa537c6cdb12 (diff) | |
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>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions
