From patchwork Mon Dec 12 14:12:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Joaqu=C3=ADn_Ignacio_Aramend=C3=ADa?= X-Patchwork-Id: 32411 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:8188:b0:89:790f:f786 with SMTP id m8csp3265038dye; Mon, 12 Dec 2022 06:21:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf4W3VeflBInEQMDRFl+5L3TyeWd6wFXMrqm19vHKHEVj4ffnlOmlUkFmCbI39nxL9fioKV4 X-Received: by 2002:a17:907:2b12:b0:7c1:1c7:3bad with SMTP id gc18-20020a1709072b1200b007c101c73badmr11703030ejc.36.1670854914563; Mon, 12 Dec 2022 06:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670854914; cv=none; d=google.com; s=arc-20160816; b=hHhTf0feiXRFtI4Yhe0qbn/e8Hs/Xb84uAHkOJ0ZIv5swU09rx/42kiOi2MMbxN+5W UwgGD2mmt2T0sxnwiJ0RaTaV4z8Ab34P8Z+9U2X8ax/7a9wgi8c4i/zGhbfkKlPKxGvR J+yTk3OGtE0BhM+Zd2ow9c5fyCiedAhad9sfueyEBT0DPFY3d13Pb9MzF3sf0fk17NEP U5ITe6/y/BHW+5ItIxByEPbcSaBA8wc9clnRyhuQuDNzSrLyV76Z9/u7AXZgaphkTUqy 7Y5TRC7iksWsEggwh8f4XNZ8jxSfpeU0RpPij3/U369SteIeGgsa0A5UZhtcmfYcrUmH CVxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=a9rfKTTYo4jfNFMQT0vPoE9C87G5mdKIDQuVUwzPMq0=; b=v6MUiMdiBiP7AvIpljP2aq4UtpOZQWLKACF2nr3XScqBqkH8GeJSdlQNG75+F5P/Lr 3Xn4GwJSYOU1JXv3SHTCN8cPnVq/sdkYZRaSOaREIBmx16JXrvG66cDXTQmGgO7d2zi8 PWXa3JkUbdhkmTtWpswrYF5bYfVJBMS5ax6r45pn0QRZsNylpn4pHMCU3ptNnG5N+aR8 +fsPoZ11bAs9KNJbscfbwSu3URMBizdNMdoaV8jZrdZZ5lILxiU39LpubtFSQCsNS9Eh vOw/eqEig1yi+KNDkzH2atkw03ea9oZnf2c2mOftSZVhVQsD3yPWsIV766OhRTSI+6KJ /9Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZizvXih1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020a170906040800b0078356aaeb63si4701572eja.288.2022.12.12.06.21.31; Mon, 12 Dec 2022 06:21:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZizvXih1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232154AbiLLONH (ORCPT + 99 others); Mon, 12 Dec 2022 09:13:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231724AbiLLONF (ORCPT ); Mon, 12 Dec 2022 09:13:05 -0500 Received: from mail-oa1-x31.google.com (mail-oa1-x31.google.com [IPv6:2001:4860:4864:20::31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A88A3DF65; Mon, 12 Dec 2022 06:13:02 -0800 (PST) Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-144bd860fdbso8536688fac.0; Mon, 12 Dec 2022 06:13:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=a9rfKTTYo4jfNFMQT0vPoE9C87G5mdKIDQuVUwzPMq0=; b=ZizvXih1N7i56aqVMm60hittl1I2LnJA+l70gFz1+fA/ej68ogfO4oSSJ3KHITwR3/ D2zI/rlPe3WWJKAQYvqx6xlOaItHcpOKXeS0eRek1yZsxHuRWdF7yikkGqLtd/esZMXe eg5gl/XTCVr4MSMLO8H1dlRFHFuFQnHx0GRDzXUaRg9XzZUSC/GU7gpGpdloHDC0NzEU wKuwMZDRUtNRAb2Sj95ituBbpqKmLYGwxsiwTPt3Q6Z+kR6QdfpRRh0RyNt8XTrLJLtF 0VCLnvEqWsoaQmfYLiMccBG8QYapw7cSnEsot0/WRjgAo2O5sMwkUCUAlZ1+31MguCXP bvyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=a9rfKTTYo4jfNFMQT0vPoE9C87G5mdKIDQuVUwzPMq0=; b=eho1AUL2dOLy0QPFho2YGCJLJgEYbuWN/6o4pjXT1GM3mP92pIuwmy0ZUk+YtCftFq ys9hr7qA2qUjIT5/VrM9LMjjAFWlPKeLBZ7CeZuM2LUfKLL/bjAMcpE9EB8YOUCd4s6e JQXnQK71TlqOlAOmASJLqCTZF3EzWP+9qJ5l4XAzXR9DJp5Epc4NEzE7rDrK2Soz46Jv IbXGPE40VDhIkissGfTSAQJSRK21FgvieJJfLm+g5QH3TaGZeebDlky+7V1qBUH/i8QM 5J4ys6l+JYuFfyNN2AHgFzGKFC4zsLNzo7wQxtjcaqlET+ieikY5+s0YqAdxXPa9KDfv lPVQ== X-Gm-Message-State: ANoB5pmoCbCxgRuphxtsdp3++HMqd35yejodvPon0TNjqMB2Z+fiQBpu hV7JZa+JJM5f2+6NfmB1tRw= X-Received: by 2002:a05:6871:450c:b0:144:870e:5859 with SMTP id nj12-20020a056871450c00b00144870e5859mr8007379oab.57.1670854381815; Mon, 12 Dec 2022 06:13:01 -0800 (PST) Received: from smeagol.fibertel.com.ar ([201.235.4.68]) by smtp.gmail.com with ESMTPSA id e14-20020a056870d10e00b00144e18d8525sm4934164oac.25.2022.12.12.06.12.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 06:13:00 -0800 (PST) From: =?utf-8?q?Joaqu=C3=ADn_Ignacio_Aramend=C3=ADa?= To: jdelvare@suse.com Cc: linux@roeck-us.net, corbet@lwn.net, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Joaqu?= =?utf-8?q?=C3=ADn_Ignacio_Aramend=C3=ADa?= Subject: [PATCH] docs: hwmon: Use file modes explicitly Date: Mon, 12 Dec 2022 11:12:46 -0300 Message-Id: <20221212141245.52935-1-samsagax@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752018362725877181?= X-GMAIL-MSGID: =?utf-8?q?1752018362725877181?= As stated in the mainling list[1] and by checkpatch output, the file modes for is_visible_func should be returned explicitly. Change that in the documentation to avoid confusion. [1]https://lore.kernel.org/linux-hwmon/506a6e7f-4566-2dcf-37f3-0f41f4ce983b@roeck-us.net/ Signed-off-by: Joaquín Ignacio Aramendía --- Documentation/hwmon/hwmon-kernel-api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/hwmon/hwmon-kernel-api.rst b/Documentation/hwmon/hwmon-kernel-api.rst index f3276b3a381a..26cf55303c61 100644 --- a/Documentation/hwmon/hwmon-kernel-api.rst +++ b/Documentation/hwmon/hwmon-kernel-api.rst @@ -299,7 +299,7 @@ Parameters: Return value: The file mode for this attribute. Typically, this will be 0 (the - attribute will not be created), S_IRUGO, or 'S_IRUGO | S_IWUSR'. + attribute will not be created), 0444, or 0644. ::