Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6813207rwb; Mon, 12 Dec 2022 06:46:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gHMcltbHW71lHFhGOeeWeA1sXimyd4VKJ7vDpMxEgYbMlfQJlnVNwCfn/m5p8K/cyjN3i X-Received: by 2002:a05:6a21:2d86:b0:9d:efbf:8156 with SMTP id ty6-20020a056a212d8600b0009defbf8156mr21699534pzb.31.1670856403060; Mon, 12 Dec 2022 06:46:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670856403; cv=none; d=google.com; s=arc-20160816; b=H7LZw1ynMeo9oHOktZ0P/YC0njx1pD3nhfyWKOKfx12Lj6SdKAz5J7niFG7JWQ0la8 +ykEAH0uzeumoXhmWtsQyOV7yt6W4y7ePEk2C6W6r/IRvTVPPRPuzVrw0ywN3sckWCt2 epmNbFubdu8bC2JwrjhChO0JNK9dSIvQwBE7QPR6+O47Psxepd76CEZWxy/j8bNuZ4Fm hvPYB2Jdtjj+g8xQ0KH4lCNcvo79eVSeKZgBNm2buC+3FKgcXWFTOTI7l+Kl76wBAv+O qrhYqL+IVGJRGYoaIUwsj1ZG2C70LJunqu48koKH/8CF9Bc5CMpe2HsSkDb0VmdNodE3 zpFw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v22-20020a636116000000b0047867817cbasi9526341pgb.274.2022.12.12.06.46.33; Mon, 12 Dec 2022 06:46:43 -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 + 75 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=20Ignacio=20Aramend=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=C3=ADn=20Ignacio=20Aramend=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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. :: -- 2.38.1