From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DD42C5519F for ; Fri, 20 Nov 2020 06:35:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 191D72168B for ; Fri, 20 Nov 2020 06:35:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="hrZ6UaN/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726154AbgKTGfi (ORCPT ); Fri, 20 Nov 2020 01:35:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725940AbgKTGfh (ORCPT ); Fri, 20 Nov 2020 01:35:37 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F159C0617A7 for ; Thu, 19 Nov 2020 22:35:36 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id v12so6885728pfm.13 for ; Thu, 19 Nov 2020 22:35:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UYeryhhLnBdm9RAE9YUBJfYBX7HwSsxcuui/BkbEdkg=; b=hrZ6UaN/7BT3yY4EPy4Kjnh32hbKPphJwy8ODAbK0rjE9fdlPAQMN/Rmx08R+qDWTh 1Nv8cihXOVAQhIlSk5kG1xG402l0P6qtqH486eAyf84z5iUqZVq7qeaiotSU9SaZPDTq pmjaO9p/ZRnqgdfJFR/xKrRT5lYmfdF4ziEpg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UYeryhhLnBdm9RAE9YUBJfYBX7HwSsxcuui/BkbEdkg=; b=IbgQOOD5fVDMx36b6x9z/aR6TcrE4hNO+OFvHcQZcAWAaE4stYJ67+f0dncEHmegI6 zONsYYuq6yw5bzJmVDxY9HPkHrNqEd98c07jtK2i9SlK66973b5/tRjJBypfpwDri2CC RJGn029ZZelsDvGoip/SxgRUv/Ta5Ghru5chEArvgMKaD73yeu9kn66ODzv1FJSBBSw6 XsdiNGC5eDnw/BOwo4QPa3r7ORgsN4y8f4fzyn6GEigfrrfnVAv8HrVZzf9JGdamQJyo 3aLGHoP+7/HLTGXdT8lW3zB4M7ShfSAsd0k38uiJYRrWHCWqwxBJWl07rUB1Hsg3N/K3 E4wQ== X-Gm-Message-State: AOAM5304DGt2BhRkHFoDuo8bsfY2tRVQpIxqa14AAYEbk5lcTaSxeJZR h7V4OQCsrfa7DurMUG4LkS9IUA== X-Google-Smtp-Source: ABdhPJxeYZSrhZzf4QcE/FoGldIyvdOZipOafH9bIW9lFXOjGUzixr0COtgUDsu0rO4YI5qPreqyIQ== X-Received: by 2002:a17:90a:4483:: with SMTP id t3mr8169405pjg.116.1605854135701; Thu, 19 Nov 2020 22:35:35 -0800 (PST) Received: from pmalani2.mtv.corp.google.com ([2620:15c:202:201:a28c:fdff:fef0:49dd]) by smtp.gmail.com with ESMTPSA id s15sm2191962pfd.33.2020.11.19.22.35.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2020 22:35:35 -0800 (PST) From: Prashant Malani To: linux-usb@vger.kernel.org, gregkh@linuxfoundation.org, heikki.krogerus@linux.intel.com Cc: linux-kernel@vger.kernel.org, sfr@canb.auug.org.au, linux-next@vger.kernel.org, Prashant Malani Subject: [PATCH] usb: typec: Fix num_altmodes kernel-doc error Date: Thu, 19 Nov 2020 22:35:22 -0800 Message-Id: <20201120063523.4159877-1-pmalani@chromium.org> X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The commit to introduce the num_altmodes attribute for partner had an error where one of the parameters was named differently in the comment and the function signature. Fix the version in the comment to align with what is in the function signature. This fixes the following htmldocs warning: drivers/usb/typec/class.c:632: warning: Excess function parameter 'num_alt_modes' description in 'typec_partner_set_num_altmodes' Fixes: a0ccdc4a77a1 ("usb: typec: Add number of altmodes partner attr") Signed-off-by: Prashant Malani --- drivers/usb/typec/class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/typec/class.c b/drivers/usb/typec/class.c index e68798599ca8..cb1362187a7c 100644 --- a/drivers/usb/typec/class.c +++ b/drivers/usb/typec/class.c @@ -618,7 +618,7 @@ EXPORT_SYMBOL_GPL(typec_partner_set_identity); /** * typec_partner_set_num_altmodes - Set the number of available partner altmodes * @partner: The partner to be updated. - * @num_alt_modes: The number of altmodes we want to specify as available. + * @num_altmodes: The number of altmodes we want to specify as available. * * This routine is used to report the number of alternate modes supported by the * partner. This value is *not* enforced in alternate mode registration routines. -- 2.29.2.454.gaff20da3a2-goog