ASoC: cs42l56: use DEVICE_ATTR_WO macro
authorYueHaibing <yuehaibing@huawei.com>
Mon, 24 May 2021 11:45:03 +0000 (19:45 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 26 May 2021 11:07:13 +0000 (12:07 +0100)
commit3ef6253cd0805d281eacbbd6a21e822ef4c3fef5
treecf107b2ff1219f95da68096b0b359567e9999e13
parentd5bd87e3a39e2f696583357899fefe1f4c6987c1
ASoC: cs42l56: use DEVICE_ATTR_WO macro

Use DEVICE_ATTR_WO() 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: <20210524114503.26460-1-yuehaibing@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l56.c