Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp134721pxj; Thu, 27 May 2021 23:40:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlr+Kh+bbZ249bwiOx8dDnzCj9KMDTByJyp2Sjtpy8DFUsbqg27gvWDMoXE1D2SApmTvsC X-Received: by 2002:a05:6402:524d:: with SMTP id t13mr8278224edd.209.1622184025362; Thu, 27 May 2021 23:40:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622184025; cv=none; d=google.com; s=arc-20160816; b=lFCafM9uVN38SG1nv89NDsb6FdhBC+OB64zVdRuGfAZ3YznKEoTNncn+T3S+SsRo4j vWm86zPRrZqjgGdYailXIC0ExVImQOt+SpVRlpaePNL4FG0xBaOfEtlVnh9qnMyWBSIg l5N50grxTafIX/iEB02sLoPSt/FjH27iwM3H96U1x15uFYxoXSYQaZCxHtwshReVs4HS Z7aX+hcxINgPthHR+jq5Ho0s1ljhLrL23jsgzxpYhweHmaM0VmZndwQ6fW3jPqyFGA9L c9BCBQ2U4A11mGj1AfXUQjqWy30xZj8Bqc4af6pIW/Tq4uAPlsbJFXDvp4wfScQ3+W/u WTyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=s26jy68N0q1kGz3vLRyjshElawqVS1ilbgQ2wxVWFWE=; b=yWJSUSH5PX0EeAgIUoDDMTR3i3AKzNIB4m3FrtdY5JrsGIvwpekKAGGNpm53+F/mHE LgX6MLyhryES6FcQyMmrvbKHxyzI/K2KAUX8EriANwHu0f5tTBss3Rc6aYoTaXNS5IP0 GI1PVnderm+Rp9cVYwtt1cwzuZ1B6Ab3hXfLQeqcv95B/qNGfa/5vgzUzGYv1oeddvZ4 /Xv6zLAt1nFFBxooFkThJwHWRhGPcHxjkPck6BONUYsOt6iliObqxcZJRdpXqZsBnHs6 H/xu9lpCZq6zCYHc4eNtMa9GJhyvgEarbODTLX66F9t2JcAh0jb812KS8loBhVlWpKCx mQ0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si3690925eda.389.2021.05.27.23.40.01; Thu, 27 May 2021 23:40:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233081AbhE1Gcf (ORCPT + 99 others); Fri, 28 May 2021 02:32:35 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:5127 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231214AbhE1Gc2 (ORCPT ); Fri, 28 May 2021 02:32:28 -0400 Received: from dggeml761-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FrvrM4PVgzYmyY; Fri, 28 May 2021 14:28:03 +0800 (CST) Received: from dggema769-chm.china.huawei.com (10.1.198.211) by dggeml761-chm.china.huawei.com (10.1.199.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 28 May 2021 14:30:43 +0800 Received: from localhost (10.174.179.215) by dggema769-chm.china.huawei.com (10.1.198.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 28 May 2021 14:30:43 +0800 From: YueHaibing To: , , , , , CC: , , , YueHaibing Subject: [PATCH -next] ASoC: ti: omap-mcbsp: use DEVICE_ATTR_RW macro Date: Fri, 28 May 2021 14:30:33 +0800 Message-ID: <20210528063033.19904-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggema769-chm.china.huawei.com (10.1.198.211) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- sound/soc/ti/omap-mcbsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.17.1