From patchwork Mon Dec 10 22:08:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 10722649 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 D6596159A for ; Mon, 10 Dec 2018 22:09:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6B9427968 for ; Mon, 10 Dec 2018 22:09:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BAE8C2A755; Mon, 10 Dec 2018 22:09:21 +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 6712427968 for ; Mon, 10 Dec 2018 22:09:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729582AbeLJWJV (ORCPT ); Mon, 10 Dec 2018 17:09:21 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:42219 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729546AbeLJWJV (ORCPT ); Mon, 10 Dec 2018 17:09:21 -0500 Received: by mail-pl1-f193.google.com with SMTP id y1so5884178plp.9 for ; Mon, 10 Dec 2018 14:09:20 -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=7xb4G/AxbTb9tn1feG0XoNvZQ9Iotshnrxt2+bw4YWI=; b=k+sjVXMlJkJyX3rFlE2JavMquJuQ3135sy6QoGOojDXAfxpz3gJP7gWK2zjEH+luDv NvWFuAu58ROB7JMcNDgCd9EZf7CClRxotM+huWDeOhyHSEJ7kiDpCIQ3C6fI3a/1huTO VenTg8BE/tHUKgzHqgyujOZuiB+U3LrFp1ukGfamcuQ2yPIBFr91sUrB5XV0LzYPmnJ4 HjIYGZv7Rs9UncBIzopCuzSkACRCx1x9ZfjSvgFZRHitYCMqBvXs7DEgCl1LmweSS0xt mo0qOuj2vd7xq5Y2UV0C8VowXN2lNTKH/5+orHYeD3LV5zJJlbTsKlJ2PcLsTvyMKJsO tVgw== 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=7xb4G/AxbTb9tn1feG0XoNvZQ9Iotshnrxt2+bw4YWI=; b=exSqmlHOAF0Ybiv4xMeVeZr6SU7zA2VWJgUEMvFX1VlIWw8YxpmvLaLCYJoaIzUQ6K ooBfM43daQYKc9ne4qa0jEGVZFx5cXKh+mhCKuVoOs83tCy0R0hXlrw2hB7fnFaF4trl FzEa0RDw5TrEEDKpxQAA6wBT5chipxWdeopjaiIhF7LC8mISOcryJY/TzT7Yh4GjJ/dq L7O164+DKHx4SyH/AH8WhtYkERPKaKyBMG6cL9RL/w+tazHokfxKjbugCqZW89LC9GXk rp9+Z1ub1xQF4hbRs5ms/2C7AHDE2mXg1NpZADlYAAhs1EqZ8BOwt391grZfU3cuV5SM ZfHw== X-Gm-Message-State: AA+aEWZitaASWM4oZa9KBxywMJthVd5bJiEzd7OJDOFgfAPdppGbEF8L vHTSB0c7r7PnVPSqQty2KwaYt3X2 X-Google-Smtp-Source: AFSGD/WYRDnHJnOsvqkeXXxL5N05hGvjwpBG+4NBpUY3H0S1iJqAqz6EY+nMgtp1sv6HsMWqFWOZNg== X-Received: by 2002:a17:902:31a4:: with SMTP id x33mr13442930plb.41.1544479760280; Mon, 10 Dec 2018 14:09:20 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 134sm14037422pgb.78.2018.12.10.14.09.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 14:09:19 -0800 (PST) From: Guenter Roeck To: Hardware Monitoring Cc: Jean Delvare , Guenter Roeck , Fenghua Yu Subject: [PATCH 20/30] hwmon: (coretemp) Replace S_ with octal values Date: Mon, 10 Dec 2018 14:08:38 -0800 Message-Id: <1544479728-30077-21-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: Fenghua Yu Signed-off-by: Guenter Roeck --- drivers/hwmon/coretemp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c index 10645c9bb7be..5d34f7271e67 100644 --- a/drivers/hwmon/coretemp.c +++ b/drivers/hwmon/coretemp.c @@ -407,7 +407,7 @@ static int create_core_attrs(struct temp_data *tdata, struct device *dev, "temp%d_%s", attr_no, suffixes[i]); sysfs_attr_init(&tdata->sd_attrs[i].dev_attr.attr); tdata->sd_attrs[i].dev_attr.attr.name = tdata->attr_name[i]; - tdata->sd_attrs[i].dev_attr.attr.mode = S_IRUGO; + tdata->sd_attrs[i].dev_attr.attr.mode = 0444; tdata->sd_attrs[i].dev_attr.show = rd_ptr[i]; tdata->sd_attrs[i].index = attr_no; tdata->attrs[i] = &tdata->sd_attrs[i].dev_attr.attr;