From patchwork Wed Nov 9 17:16:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clemens Gruber X-Patchwork-Id: 9419855 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 36E0D60512 for ; Wed, 9 Nov 2016 17:17:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25ACB2934A for ; Wed, 9 Nov 2016 17:17:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A8A229399; Wed, 9 Nov 2016 17:17:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2DE82934A for ; Wed, 9 Nov 2016 17:17:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933291AbcKIRRh (ORCPT ); Wed, 9 Nov 2016 12:17:37 -0500 Received: from mail.pqgruber.com ([178.189.19.235]:27831 "EHLO mail.pqgruber.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933250AbcKIRRf (ORCPT ); Wed, 9 Nov 2016 12:17:35 -0500 Received: from localhost.localdomain (213-47-168-109.cable.dynamic.surfer.at [213.47.168.109]) by mail.pqgruber.com (Postfix) with ESMTPSA id EB99EEB206; Wed, 9 Nov 2016 18:17:32 +0100 (CET) From: Clemens Gruber To: linux-hwmon@vger.kernel.org Cc: Guenter Roeck , Jean Delvare , linux-kernel@vger.kernel.org, Clemens Gruber Subject: [PATCH v3 3/3] hwmon: (mcp3021) replace S_IRUGO with 0444 Date: Wed, 9 Nov 2016 18:16:14 +0100 Message-Id: <20161109171614.9730-2-clemens.gruber@pqgruber.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161109171614.9730-1-clemens.gruber@pqgruber.com> References: <20161109171614.9730-1-clemens.gruber@pqgruber.com> Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Replace S_IRUGO with the better readable 0444. This fixes a checkpatch warning. Signed-off-by: Clemens Gruber --- drivers/hwmon/mcp3021.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/mcp3021.c b/drivers/hwmon/mcp3021.c index 81f4b7f..3a007ab 100644 --- a/drivers/hwmon/mcp3021.c +++ b/drivers/hwmon/mcp3021.c @@ -102,7 +102,7 @@ static ssize_t show_in_input(struct device *dev, struct device_attribute *attr, return sprintf(buf, "%d\n", in_input); } -static DEVICE_ATTR(in0_input, S_IRUGO, show_in_input, NULL); +static DEVICE_ATTR(in0_input, 0444, show_in_input, NULL); static int mcp3021_probe(struct i2c_client *client, const struct i2c_device_id *id)