From patchwork Mon Dec 10 22:08:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 10722647 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BE0286C5 for ; Mon, 10 Dec 2018 22:09:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD98327968 for ; Mon, 10 Dec 2018 22:09:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A1FF62A755; Mon, 10 Dec 2018 22:09:20 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 51C2427968 for ; Mon, 10 Dec 2018 22:09:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729577AbeLJWJU (ORCPT ); Mon, 10 Dec 2018 17:09:20 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:47090 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729546AbeLJWJU (ORCPT ); Mon, 10 Dec 2018 17:09:20 -0500 Received: by mail-pg1-f193.google.com with SMTP id w7so5599731pgp.13 for ; Mon, 10 Dec 2018 14:09:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Z71DSsFzhMfeFptxpwxMcuTJzVNLF8zS3/bro/2VbLE=; b=qFqivG5N6vjjtU2KYL/tMh9fc4QhNW6CrgkHgg+UR6CQoVRckbQ7PjuJYvyja7Hanq c5k7AYOhMXpib+UoAiILUe+IpdNzeZoOGuMiqnQG3JaKKNhRLWJvMR2hQiiS7E9pAjVW G/S/b5zWJvRCtZn4IZwzxNM5aQpSXzIPMDPuHbkd4IrHn3sFRx9zwYyMJcqjijfKFd79 HgAwumdWcNC8/LsR0gW+tvsuL7iu1Z6JMrEVvZ9WnT777UQTTEjS57uQGs2aGEYF/Xed DAdSoxV06vrYXQUGd9vZpJOj3yX6Uh/q6+iE85E16KJdl+RorieYtTVSWRZKPEHnAwSw /HqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Z71DSsFzhMfeFptxpwxMcuTJzVNLF8zS3/bro/2VbLE=; b=fKzFqqtHw0SqLPD8nLKVmQyEzwlixbnA/oXGxN8NObg0FYo8LzS6M9XqJS5Xa5AOrK dFGdRjESo9xvvh4Ho+K1b/FmUdfeLdznNgWbSQR5RSi8Z3eMViWYXiWwjeLuKDg4PxNf WOcc4YVRrex1umFEsI85jG26hS4IzIwJBHRhk/bgN7AxUQ9qawbNZJCpc1LgJIQ5odt7 Y+01KgPg//3nLsYq83O28ZnDJqy6rhQXEYV1YeXG0j49Eq7aL+CYCyG3k1tbzl5+jzJH 99wXRvDkeRpjZ1Lo5/u/yOwUYOHB197Z9xWDwe86PNDeEtBqURVammzViLwdlRzR0M2I 2yeA== X-Gm-Message-State: AA+aEWa4sSAMUWFKVZCnDdfsacfipw7ZG4tiRmzoyfExuy1zRQUUeCbZ AN0VFnJg5QaEqiV2ZzPYlfkyRjN/ X-Google-Smtp-Source: AFSGD/VgyXEBKndCeVdi9lUPXGzbchzGRjr29EOpyNaPDWhld0IYdbVZ/6opLolNbgtKlAz87JQaRQ== X-Received: by 2002:a63:6dc8:: with SMTP id i191mr11922204pgc.215.1544479758917; Mon, 10 Dec 2018 14:09:18 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id g3sm26805756pfe.37.2018.12.10.14.09.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 14:09:18 -0800 (PST) From: Guenter Roeck To: Hardware Monitoring Cc: Jean Delvare , Guenter Roeck , Luca Tettamanti Subject: [PATCH 19/30] hwmon: (asus_atk0110) Replace S_ with octal values Date: Mon, 10 Dec 2018 14:08:37 -0800 Message-Id: <1544479728-30077-20-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544479728-30077-1-git-send-email-linux@roeck-us.net> References: <1544479728-30077-1-git-send-email-linux@roeck-us.net> 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_ with octal values. The conversion was done automatically with coccinelle. The semantic patches and the scripts used to generate this commit log are available at https://github.com/groeck/coccinelle-patches/hwmon/. This patch does not introduce functional changes. It was verified by compiling the old and new files and comparing text and data sizes. Cc: Luca Tettamanti Signed-off-by: Guenter Roeck --- drivers/hwmon/asus_atk0110.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/hwmon/asus_atk0110.c b/drivers/hwmon/asus_atk0110.c index a7cf00885c5d..a5638d1f7e4b 100644 --- a/drivers/hwmon/asus_atk0110.c +++ b/drivers/hwmon/asus_atk0110.c @@ -799,17 +799,17 @@ static void atk_debugfs_init(struct atk_data *data) if (!d || IS_ERR(d)) return; - f = debugfs_create_x32("id", S_IRUSR | S_IWUSR, d, &data->debugfs.id); + f = debugfs_create_x32("id", 0600, d, &data->debugfs.id); if (!f || IS_ERR(f)) goto cleanup; - f = debugfs_create_file("gitm", S_IRUSR, d, data, - &atk_debugfs_gitm); + f = debugfs_create_file("gitm", 0400, d, data, + &atk_debugfs_gitm); if (!f || IS_ERR(f)) goto cleanup; - f = debugfs_create_file("ggrp", S_IRUSR, d, data, - &atk_debugfs_ggrp_fops); + f = debugfs_create_file("ggrp", 0400, d, data, + &atk_debugfs_ggrp_fops); if (!f || IS_ERR(f)) goto cleanup;