diff options
author | YueHaibing <yuehaibing@huawei.com> | 2021-05-28 14:30:33 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-01 14:05:16 +0100 |
commit | b1b384de0a9be2d2913c8a308f381da0b9184e91 (patch) | |
tree | 3c38b25caeaa6a9e402d6572250588f501d5b07b /sound/soc/ti | |
parent | 47c0d825b926856d86685a48c82f693f56ca3f6f (diff) | |
download | linux-stable-b1b384de0a9be2d2913c8a308f381da0b9184e91.tar.gz linux-stable-b1b384de0a9be2d2913c8a308f381da0b9184e91.tar.bz2 linux-stable-b1b384de0a9be2d2913c8a308f381da0b9184e91.zip |
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>
Diffstat (limited to 'sound/soc/ti')
-rw-r--r-- | sound/soc/ti/omap-mcbsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/ti/omap-mcbsp.c b/sound/soc/ti/omap-mcbsp.c index db47981768c5..4479d74f0a45 100644 --- a/sound/soc/ti/omap-mcbsp.c +++ b/sound/soc/ti/omap-mcbsp.c @@ -539,7 +539,7 @@ static ssize_t prop##_store(struct device *dev, \ return size; \ } \ \ -static DEVICE_ATTR(prop, 0644, prop##_show, prop##_store) +static DEVICE_ATTR_RW(prop) THRESHOLD_PROP_BUILDER(max_tx_thres); THRESHOLD_PROP_BUILDER(max_rx_thres); |