OSDN Git Service

ASoC: tlv320aic26: use DEVICE_ATTR_RW macro
authorYueHaibing <yuehaibing@huawei.com>
Mon, 24 May 2021 11:51:31 +0000 (19:51 +0800)
committerMark Brown <broonie@sirena.org.uk>
Tue, 25 May 2021 15:45:06 +0000 (16:45 +0100)
commit2eadc04d83f6c791784190208fd77dac3a2c052b
tree62efb4b3cf4625b5c1a8322e7c502ba9df976c02
parent0e91438ff7045d89b3e82bcef90fadd002eb1c74
ASoC: tlv320aic26: use DEVICE_ATTR_RW macro

Use DEVICE_ATTR_RW() helper instead of plain DEVICE_ATTR(),
which makes the code a bit shorter and easier to read.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Message-Id: <20210524115131.46288-1-yuehaibing@huawei.com>
Signed-off-by: Mark Brown <broonie@sirena.org.uk>
sound/soc/codecs/tlv320aic26.c