]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs43130: Use DEVICE_ATTR_RO macro
authorYueHaibing <yuehaibing@huawei.com>
Mon, 24 May 2021 11:40:17 +0000 (19:40 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 26 May 2021 11:07:15 +0000 (12:07 +0100)
commitad884a9ae057851362d47a9e6599f7177d7175c1
tree77a82f9254c9faceb5b8b321481daedc44053c2d
parent4a9e15fb886cf93c434902a2472047c0dc7d6547
ASoC: cs43130: 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>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Message-Id: <20210524114017.18672-1-yuehaibing@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs43130.c