Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1971055rwd; Thu, 15 Jun 2023 19:28:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5XjnGzf7dS2vsqRm4DJKObYflXu9ME0fhR+vZWkMKkAVu1XX28UkwQVg33ga5ik4yJBuZN X-Received: by 2002:a17:903:41ce:b0:1b5:21b0:1473 with SMTP id u14-20020a17090341ce00b001b521b01473mr3356163ple.27.1686882482517; Thu, 15 Jun 2023 19:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686882482; cv=none; d=google.com; s=arc-20160816; b=kRCqAeAtXct6OXV7sRQtt8iX8gA1mu9zLbvD4z3igra3V9UxDa/aWljc2KI9dsPoy6 c+tt4iSlXfFDI6JGpogitrBU6PG3YJWO08d1sDOqzDQuamSSC1W9NAO+yi8lu/57RUKt Az+Swp2dcBeQL+RahpD/JAU15/FOZhOp3yRQ4vNs61+V1XUi61c8rBtVpTI6A8fsjBKM kljUieEMh6WY+xPyeD1Boiwuv5BSicpYv+OmZ8YcbjwEMsKYTs2rfWs26AjOYaDEuy+i 8ge13mp0aZji8gWEXvKb+KLy5iq8Rje9lZJ6CVtK7Seryp642BQYwqePQ5rj4ZadMn6F wy8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=tmMYthLmhB+4kKO/o3M3HnPLRSDH3a/9jDpKwcAZjIQ=; b=Fw5ffncvcaAYu1KbnDfBx+JtECPjrUU22HZL1Og3the/W3BKPdfHu/E+883PdgNMSX Iq4O9kbLzeSGw+h9QE1nCoCVZ0L64cxoDAtJZM8OKNBT9YHKimCT+09Uk6pPULZkcR3a dj5FsyP2AebPTm6anvMCpRpqEmOB6XUPy3mF1E6crFviJT9SrMFTGAsbUieYPVcUAftB +udcxy6M+qoVT8bEW+dMt10hkXRVMbGP512fmTvZQ6h07nCnna5vhchfOfuLkKf5MDt0 CYsbQxkq/uXFSHJmUN6OkGSC8Jcyy8tSOVNefavSx39NZpC0nkI8gCgTLHUjaorKNE8b 7uWw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i30-20020a63585e000000b0054fa5f25cfasi7428625pgm.568.2023.06.15.19.27.49; Thu, 15 Jun 2023 19:28:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239387AbjFPCIh (ORCPT + 99 others); Thu, 15 Jun 2023 22:08:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbjFPCIg (ORCPT ); Thu, 15 Jun 2023 22:08:36 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A75D42962 for ; Thu, 15 Jun 2023 19:08:33 -0700 (PDT) X-MailGates: (flag:4,DYNAMIC,BADHELO,RELAY,NOHOST:PASS)(compute_score:DE LIVER,40,3) Received: from 192.168.10.47 by mg.richtek.com with MailGates ESMTP Server V5.0(18367:0:AUTH_RELAY) (envelope-from ); Fri, 16 Jun 2023 10:08:20 +0800 (CST) Received: from ex3.rt.l (192.168.10.46) by ex4.rt.l (192.168.10.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Fri, 16 Jun 2023 10:08:19 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex3.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Fri, 16 Jun 2023 10:08:19 +0800 From: To: CC: , , ChiYuan Huang Subject: [PATCH] regulator: helper: Document ramp_delay parameter of regulator_set_ramp_delay_regmap() Date: Fri, 16 Jun 2023 10:08:18 +0800 Message-ID: <1686881298-28333-1-git-send-email-cy_huang@richtek.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: ChiYuan Huang With W=1: drivers/regulator/helpers.c:947: warning: Function parameter or member 'ramp_delay' not described in 'regulator_set_ramp_delay_regmap' Fix it by documenting the parameter. Fixes: fb8fee9efdcf ("regulator: Add regmap helper for ramp-delay setting") Signed-off-by: ChiYuan Huang --- drivers/regulator/helpers.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/helpers.c b/drivers/regulator/helpers.c index ad2237a95572..d2183c11d51d 100644 --- a/drivers/regulator/helpers.c +++ b/drivers/regulator/helpers.c @@ -938,6 +938,7 @@ static int find_closest_bigger(unsigned int target, const unsigned int *table, * regulator_set_ramp_delay_regmap - set_ramp_delay() helper * * @rdev: regulator to operate on + * @ramp_delay: ramp-rate value given in units V/S (uV/uS) * * Regulators that use regmap for their register I/O can set the ramp_reg * and ramp_mask fields in their descriptor and then use this as their -- 2.40.1