OSDN Git Service

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)
commit6405941e6884dac80f836acfc7ec52089ea6aa99
tree77a82f9254c9faceb5b8b321481daedc44053c2d
parentd04260393ea0ded33448c1fae944cf86c14da994
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