From patchwork Mon Oct 3 09:38:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 77210 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1561825qgf; Mon, 3 Oct 2016 02:39:54 -0700 (PDT) X-Received: by 10.98.219.196 with SMTP id f187mr35395946pfg.39.1475487594767; Mon, 03 Oct 2016 02:39:54 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si36178310pfi.181.2016.10.03.02.39.54; Mon, 03 Oct 2016 02:39:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932088AbcJCJjG (ORCPT + 4 others); Mon, 3 Oct 2016 05:39:06 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:35883 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753117AbcJCJiq (ORCPT ); Mon, 3 Oct 2016 05:38:46 -0400 Received: by mail-lf0-f50.google.com with SMTP id b75so17161784lfg.3 for ; Mon, 03 Oct 2016 02:38:45 -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; bh=xuj1tMI7l/hNCQgKN3CoJYui8FbTMlr/DeY5jo+BYPo=; b=bNlI4Wq/oqG39Nnepv/QxDDZNZE/nxquiP5DnLU/keOmF14KQtnK0aBue4fbZZDF0c BZzVWJ0VW5rFiWCYcFcIxOa/cvMwyVgtMRWNsWFtfp3ALhULE8S+yM7DqbaHsM0a+SBh XP4Ze4SII0SAAlA1FVavZNMlSCcLnVzavhfww= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xuj1tMI7l/hNCQgKN3CoJYui8FbTMlr/DeY5jo+BYPo=; b=KH0bh/ZyoWexuywl10Z6pVc3HvVyueIpqoJnztdlPHmRkxfdcc3hG8osbYVQRYBqYY cVyZAJuIz2fIykHoMdasDdqRCts/sGmxRaXPCZvDF0dx2qnFxWqPDRaPMit/EfyeCDPy l3/nrBe1Y4sWCyGR4OfM1tybFvobNFMWNvAtEcVe4NSwUtVdeCj2h6PPxHhjWXAUGaSW 2ZPOTZy+C2/hSeJmcA6UUmMLVlz/kcepJS7mK4P1SwUOATM7A2lmoi9Kn9ZyANugxRh6 /R8Pj+CiHwlgIsVCPyOuiwFCJnfrvwc47ty7idLlwAEfjhd5MQCzEqtXat4f76WWBokv ZrTQ== X-Gm-Message-State: AA6/9RmdMWSGQ//gKkPqfkll3Dk8dYCkNhnWrPV7RDHmbdg5/20MmkqLL9TltYyEsnD4Vwfm X-Received: by 10.46.5.2 with SMTP id 2mr7307904ljf.73.1475487524554; Mon, 03 Oct 2016 02:38:44 -0700 (PDT) Received: from linuslaptop.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id c186sm5483364lfc.46.2016.10.03.02.38.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Oct 2016 02:38:44 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org, Alexandre Courbot Cc: Linus Walleij Subject: [PATCH] gpio: add missing static inline Date: Mon, 3 Oct 2016 11:38:41 +0200 Message-Id: <1475487521-3342-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org of_get_named_gpiod_flags() was missing a static inline version when compiling without OF_GPIO. Add this. Reported-by: kbuild test robot Signed-off-by: Linus Walleij --- drivers/gpio/gpiolib.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h index ba1e383079a3..7599796d32e1 100644 --- a/drivers/gpio/gpiolib.h +++ b/drivers/gpio/gpiolib.h @@ -92,6 +92,8 @@ struct gpio_desc *of_find_gpio(struct device *dev, const char *con_id, unsigned int idx, enum gpio_lookup_flags *flags); +struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np, + const char *list_name, int index, enum of_gpio_flags *flags); int of_gpiochip_add(struct gpio_chip *gc); void of_gpiochip_remove(struct gpio_chip *gc); #else @@ -102,6 +104,11 @@ static inline struct gpio_desc *of_find_gpio(struct device *dev, { return ERR_PTR(-ENOENT); } +static inline struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np, + const char *list_name, int index, enum of_gpio_flags *flags) +{ + return ERR_PTR(-ENOENT); +} static inline int of_gpiochip_add(struct gpio_chip *gc) { return 0; } static inline void of_gpiochip_remove(struct gpio_chip *gc) { } #endif /* CONFIG_OF_GPIO */ @@ -160,9 +167,6 @@ static inline bool acpi_can_fallback_to_crs(struct acpi_device *adev, } #endif -struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np, - const char *list_name, int index, enum of_gpio_flags *flags); - struct gpio_desc *gpiochip_get_desc(struct gpio_chip *chip, u16 hwnum); void gpiod_set_array_value_complex(bool raw, bool can_sleep, unsigned int array_size,