From: YueHaibing Date: Fri, 28 May 2021 06:30:33 +0000 (+0800) Subject: ASoC: ti: omap-mcbsp: use DEVICE_ATTR_RW macro X-Git-Tag: v5.14-rc1~95^2~6^2^2~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1b384de0a9be2d2913c8a308f381da0b9184e91;p=thirdparty%2Fkernel%2Flinux.git 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 Acked-by: Jarkko Nikula Acked-by: Peter Ujfalusi Link: https://lore.kernel.org/r/20210528063033.19904-1-yuehaibing@huawei.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/ti/omap-mcbsp.c b/sound/soc/ti/omap-mcbsp.c index db47981768c5d..4479d74f0a458 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);