From patchwork Tue Jun 30 13:33:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 192083 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp3822276ilg; Tue, 30 Jun 2020 06:33:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPDWQmJpieuknto7CZEasvrlqbdpuPovPl0OhFsU4BrlslcB/UF4JsoBV/nS1fV4K1JF95 X-Received: by 2002:aa7:c2c5:: with SMTP id m5mr22866645edp.214.1593524036969; Tue, 30 Jun 2020 06:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593524036; cv=none; d=google.com; s=arc-20160816; b=rQKK+ph8Y0v7jLVk3A9TBRdlywdBxS8kFM/gXNhbloP2Av1V3hICzVTq7pxmsho+JB U+oSiargIs+cmArexlwBlxl4uRAHJxFWbduqR5U9Nw+9pcOSFWcYaEQscxpgpEYN2lyb xDT+/+PRvg2P/8oXR5NeQA4/g9ac4LuUYcX0S1MYHZO8PIBe6RmF0c+I3qb01Nsl20Im yh/HiB8f1sb6PKkkjfWQPinoyzvXiaionsu7KsXK5Ur6iE2E+2vQoFmsLJtQedSsqEZB SxO3BP3CkcbqdhdFBLSrj7YylOj30mky5va964pC4xaWUHqHtn9uzVmFuVbFvKR7iRuR VL0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zyIUTlmpGUcnH+LiKgtC/ATIX5960EbAPmpzyReDmls=; b=qfXZPZtQov/SZfJtYUQfUNEW8+bet3l4uSgk5tqSBJx9uWn9nkXpofW1RoDPVwHVzw Ik5TN9nNsjP0wZcMdwnwAzTE80vxNfieBIQ3r2Fa247T79noaj7JKEWOFWLRHug1jjoT AxxRu17IyU5c/DrM1FPPoS4LGTF29AHGp6N/3RhfNRovdrd9StALAlKULeo5XLLhSDS1 Ad/19GI1yK5H4uo7jZwiGX9zFqla2oVTMDm6rLjNHjsKFpZM9pKE0MQelNYe8MhlWYSP Td5eg0ddvQA6rgLfhDs+LA4R6avWlYaHtLW4xiA00KHswDAgorugH9bZL8XXTSvBy4g9 965A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q6mGE5E3; spf=pass (google.com: domain of linux-gpio-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck17si1574683edb.508.2020.06.30.06.33.56; Tue, 30 Jun 2020 06:33:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-gpio-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q6mGE5E3; spf=pass (google.com: domain of linux-gpio-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388165AbgF3Ndy (ORCPT + 5 others); Tue, 30 Jun 2020 09:33:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388149AbgF3Ndw (ORCPT ); Tue, 30 Jun 2020 09:33:52 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6B59C03E97B for ; Tue, 30 Jun 2020 06:33:51 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id f139so19613059wmf.5 for ; Tue, 30 Jun 2020 06:33:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zyIUTlmpGUcnH+LiKgtC/ATIX5960EbAPmpzyReDmls=; b=Q6mGE5E3X/8/+zlhENHURAJbLrEQhKKP61fNSre5+zd/awBDhaniAZCqLJv3T/K+xB LLaHcTkwe5z7mGfkbouNMs2GcI+AqRHhuq6Gz1QCCRJe0Y+hn/YHQuGUZWAqb7RUpdaE 70+NaU99UEzrWJmcUxMJBjS1r9r8XFy8753y04wH/FBtreZ39DbEg4yxDeqSHADl49s1 crYCHpqzEp8rRerMgtEmyT9czhG4JiM8cwA7eHXPiSnTgDUgjm80qrR51MCfCoBh7bds M2AxS/fr2tEVYfL0+cYxhEvrKD3lrdVVxo3BgjB+eZHFrUSXOVioVHn0oc/fAVoRStuq SWvQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=zyIUTlmpGUcnH+LiKgtC/ATIX5960EbAPmpzyReDmls=; b=uWevhmGn+nQ0aNI3s9bdvA466V83tdo8SfPqwqYKG3E5M+jPbeYKpJXt/t0AraPIl3 deTbZ4xgnUwrQymJX56NfmCIfacAberFDyvpy+ubTMs/dNQFFF6LajEJzKvE/7tcAZIg oOFpGJdVg7kfTZlWhICOeOIhfjMShW3OiMS7dWtT8TFRNOimkc7fmgja/ItJpyHpTMJV JGUPqyo8bY5y/S9KPbc1Y/xgVy8Wy2sP6zMMJLqXahdKOfau4zptoFiMzbYJzjI7ae/Q 4f1tJ/eQs1Az+aAfrTXiD8uvOnRsXoN8oWpoVserBRYv2Xh9pcLSWg2xnsbdA+HDgtBM gIaw== X-Gm-Message-State: AOAM530BAeDtpAbRZ+A56c2QnXYyAHTIHLmYJc7GPE2yYD8YUrhk0DFx kQZk++bWlQ7dB68AJZQEvr78Hw== X-Received: by 2002:a05:600c:2058:: with SMTP id p24mr21449910wmg.74.1593524029704; Tue, 30 Jun 2020 06:33:49 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id z16sm3682464wrr.35.2020.06.30.06.33.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 06:33:49 -0700 (PDT) From: Lee Jones To: linus.walleij@linaro.org, bgolaszewski@baylibre.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Lee Jones , Anton Vorontsov Subject: [PATCH 01/10] gpio: gpiolib-of: Provide documentation for of_gpio_spi_cs_get_count() Date: Tue, 30 Jun 2020 14:33:36 +0100 Message-Id: <20200630133345.2232932-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200630133345.2232932-1-lee.jones@linaro.org> References: <20200630133345.2232932-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Descriptions for of_gpio_spi_cs_get_count()'s 2 arguments are missing. Document both 'dev' and 'con_id'. Fixes the following W=1 kernel build warnings: drivers/gpio/gpiolib-of.c:36: warning: Function parameter or member 'dev' not described in 'of_gpio_spi_cs_get_count' drivers/gpio/gpiolib-of.c:36: warning: Function parameter or member 'con_id' not described in 'of_gpio_spi_cs_get_count' Cc: Anton Vorontsov Signed-off-by: Lee Jones --- drivers/gpio/gpiolib-of.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.25.1 diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 219eb00542334..236985714ea92 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -25,6 +25,9 @@ /** * of_gpio_spi_cs_get_count() - special GPIO counting for SPI + * @dev: Consuming device + * @con_id: Function within the GPIO consumer + * * Some elder GPIO controllers need special quirks. Currently we handle * the Freescale GPIO controller with bindings that doesn't use the * established "cs-gpios" for chip selects but instead rely on