From patchwork Mon Oct 31 15:18:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 13279 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2374522wru; Mon, 31 Oct 2022 08:22:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7FrEfEwL5Gmi7Wm8XTD5nSXuHj1xLN8ktSerysq+BcPcZ7xplx1mz5Zi3boMqm2MF35aW7 X-Received: by 2002:a17:903:2596:b0:186:a395:c4bd with SMTP id jb22-20020a170903259600b00186a395c4bdmr15115613plb.60.1667229778209; Mon, 31 Oct 2022 08:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667229778; cv=none; d=google.com; s=arc-20160816; b=MNXv+bJNb1m2RszJTu28w8AHGfAIkFQ3P9fcUunhMpJizu/kZKVpuEJzJRS3e9uTcg N/UxZj5OvFa//IWgKA/0wcWkq1SXgC9BjxT7KpqIMHNLGc/BRDtERZ64EpgAl6rWSjPv nmj5cycTVDuJYuFt2CSNpR4yoIsllH7purFx1OgNshHUBVsvK80LarZXLSufcYcjR4Bg rsWg2E2hiUAR+BPl0sWsO3mdFKMbbgYiEXnYRMy4EBYW8zIeDnrADQMDPZ/c6tekSQaS FtKPigveUqsxt41tla3khSswsa0nICuAQhvFqbpJ/qFEnsLz6SQ7PDUQyuOpr/fxiUhg +leQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=gTV1RDq/tqDmxPZjQ5buJyVBHl/4xI27X2Mwsnm3/U8=; b=ftmogfQCBJjsuIVZsGl0myQSmyLA9Ook3NFCJy2dvDpXnomKEVuzaSx4vJ2t6iAmfo UzuJ78F9KUv7PRnyJOomltm6Mu54nBCQeBOiIVSDuXetak+6q0WMqYaI4hhVAyIBTCnw rNYiH1LDv1NDoOHwiXS/He3UzxHAItZCzEZ7VppYZp4adgV/SFgpdwI/7twXBBGmYdnr VTUjdDjZdgHMr+8sZkGs2bZNxpCr+pRWRAkOdeEz5Jdu0xwCu83dHvI7z7VAMeMbDHNU KlipmG9WjONzWNrbisNosEA5sqN5rbuJ5yWrKvLo/HrnewsDVifUbZm+EJ0HDUoOTCPx Ntxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R6xRqcKQ; 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 e18-20020a17090301d200b00177f4ef799fsi9954351plh.9.2022.10.31.08.22.44; Mon, 31 Oct 2022 08:22:58 -0700 (PDT) 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=R6xRqcKQ; 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 S231626AbiJaPSc (ORCPT + 99 others); Mon, 31 Oct 2022 11:18:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231397AbiJaPS3 (ORCPT ); Mon, 31 Oct 2022 11:18:29 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14F88DE80; Mon, 31 Oct 2022 08:18:28 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id q9so30338245ejd.0; Mon, 31 Oct 2022 08:18:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gTV1RDq/tqDmxPZjQ5buJyVBHl/4xI27X2Mwsnm3/U8=; b=R6xRqcKQmu00dy1Cfnxt+XFMnppMpjDHkI+/jH9MTTupl6brGVib0eZesPU9DhNRI9 mY6+FqzbE30I3It9nOMuqluV6gYcP0xygz4ZK95tbAmjAvFeQDTs6ZDGqepvyjxekf1z Xash2POIGK6RMge1cJA9jultjlSzgCXAuj4L2KZ0moaChoR4Ngz8tmI2aeTMi9bIsDsp +jsL1e6OAGxVVbz39FLrFqu0cYlESAlDLU7wUJGoIzwd7QP0FbCfMukbBrsk4LZ8IsR1 w9k7DayNzBb+0lpk5bD4NL+Qv7Sl2IRsumn+HLtvb5aORkiyeQuTYDTijJNcdO7if+dj vPKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gTV1RDq/tqDmxPZjQ5buJyVBHl/4xI27X2Mwsnm3/U8=; b=CxYdWhjiGCYwKcCO/JPtGur53451QDarWXjTpZSJf3SOCM9rMqJqzox+jSWSC7fyxF sjJE1aacLrZ3qZ5fnph6dfQGi+DHOwRU9KXaZowrDSbzA5kSs8Gb7lzUM4MfeZKWG9vD rdK2KAd2VCWf/fg75u2bKLsh5dPuu+LuiIRbAnUw4IZuygzbba5HD9IbxFzLQWykgBS5 3hvYhSqqGd7uMeuBbmYCYFhDuY0yv7eRFD3pS/MvpAnEsKwLxUggrbxvdOgqlUXv0ihA KNR1eVMsNT+/wMfcbeLOtflhd28p7BGGD7lF2WZ3SG5YTmOZATJL+l+C36aCKOgrB5Fs 0WfA== X-Gm-Message-State: ACrzQf29hSnxwzSQARor539D2B/O/uNYeAAH9JmENGecxsaDEkPRIVuI UTPhHdlPAgRgWi+ZxXmFLXw= X-Received: by 2002:a17:907:845:b0:731:2f6c:6dbd with SMTP id ww5-20020a170907084500b007312f6c6dbdmr13364159ejb.551.1667229506461; Mon, 31 Oct 2022 08:18:26 -0700 (PDT) Received: from felia.fritz.box (200116b826e26a00101a4a419a6960a9.dip.versatel-1u1.de. [2001:16b8:26e2:6a00:101a:4a41:9a69:60a9]) by smtp.gmail.com with ESMTPSA id u25-20020a056402065900b00461cdda400esm3386142edx.4.2022.10.31.08.18.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 08:18:26 -0700 (PDT) From: Lukas Bulwahn To: Sebastian Reichel , linux-pm@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH] power: supply: core: repair kernel-doc for power_supply_vbat2ri() Date: Mon, 31 Oct 2022 16:18:08 +0100 Message-Id: <20221031151808.826-1-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 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?1748217132124845472?= X-GMAIL-MSGID: =?utf-8?q?1748217132124845472?= The function power_supply_vbat2ri() does not have a parameter called table, despite it being mentioned in the kernel-doc comment. The table is actually obtained from the info parameter, the battery information container. Hence, ./scripts/kernel-doc -none drivers/power/supply/power_supply_core.c warns about this excess function parameter. Adjust the kernel-doc comment for power_supply_vbat2ri() for make W=1 happiness. Signed-off-by: Lukas Bulwahn --- drivers/power/supply/power_supply_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c index 4b5fb172fa99..9035e349bf53 100644 --- a/drivers/power/supply/power_supply_core.c +++ b/drivers/power/supply/power_supply_core.c @@ -870,7 +870,6 @@ EXPORT_SYMBOL_GPL(power_supply_temp2resist_simple); * power_supply_vbat2ri() - find the battery internal resistance * from the battery voltage * @info: The battery information container - * @table: Pointer to battery resistance temperature table * @vbat_uv: The battery voltage in microvolt * @charging: If we are charging (true) or not (false) *