OSDN Git Service

ASoC: ti: omap-mcbsp: use DEVICE_ATTR_RW macro
authorYueHaibing <yuehaibing@huawei.com>
Fri, 28 May 2021 06:30:33 +0000 (14:30 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 1 Jun 2021 13:05:16 +0000 (14:05 +0100)
commitb1b384de0a9be2d2913c8a308f381da0b9184e91
tree3c38b25caeaa6a9e402d6572250588f501d5b07b
parent47c0d825b926856d86685a48c82f693f56ca3f6f
ASoC: ti: omap-mcbsp: 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>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20210528063033.19904-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/omap-mcbsp.c