From patchwork Thu Sep 5 09:37:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 173126 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp468096ilq; Thu, 5 Sep 2019 02:37:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIfF+fOfzbRdHF9T8xeCZEMFI8OYbM9aEGObF0ASnpTO48cwTEbrfLDyTaK+kwVAee6v4Z X-Received: by 2002:a17:90a:cb88:: with SMTP id a8mr2764046pju.111.1567676228885; Thu, 05 Sep 2019 02:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567676228; cv=none; d=google.com; s=arc-20160816; b=chjbenZAPWIdONM8bZX98Xjqf5Ymow+6V+NDZexQ5K8NXdcJj+vSVehp7uov5+YO8e Y5C5rirNtrncuVpAGfiRamSSzjYWDDse/SYqS5HUmcSaKrqisERRHjzh1Dg63tasT6+n lCcZ/R+RUUq8zAvgCp2Uf2b304rkejH02YBWbGO8jmj+6QVB62XvB72AEvDy+94zyG+k 3Xjx40VdB73nO4H56svkb72iV2eWtIjeoWaCYgFqvrz4Zq3qklT4O/jyIDws/nxtQ4II 7cLs9lHFsbcwqjc/e/T6yde4dYySZPGladu1wShkBdhO+qOycWb5hW0/r66sf4lDhE05 WZzg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=HWok8ESvn5oUHq6DzXKB4zSS6zdB8hO20Hir6TileN0=; b=hGVpeWTyVLYedFkkQ2HVh3YZAvAGUHhb90xPG55LoNWcpfXgYMuc/Bi0CdHpVUccpx OoVwsvq+KmxkR9pShnSkHuJSog3alI+XIMLaJ/FK27fLKXGjJbsG+yT+18zhntWV48Gh Ef1SnuHXW1dvTn1Eu2SaKsRZdUuoOjrwXaYNWYom8/uNrrSYg4z88y2vhNvSW/yt4PgE p61FzBXs5lAUQbtoGmaTuIdEiWPlJxCvSfrog/7yVTP1GIQXJ2FhxiNrM9an/y1Gqz/z ZSpXV892kb5mJTRbroy2HpB+yhMKnN4GJFusp+qCOp+p1WU7yiCa6YrjIg/ik9hZqPje 3LvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MZ52O5mt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e17si1321756pgv.503.2019.09.05.02.37.08; Thu, 05 Sep 2019 02:37:08 -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=pass header.i=@linaro.org header.s=google header.b=MZ52O5mt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730973AbfIEJhI (ORCPT + 5 others); Thu, 5 Sep 2019 05:37:08 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:33291 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730872AbfIEJhI (ORCPT ); Thu, 5 Sep 2019 05:37:08 -0400 Received: by mail-lj1-f195.google.com with SMTP id a22so1751641ljd.0 for ; Thu, 05 Sep 2019 02:37:06 -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:mime-version :content-transfer-encoding; bh=HWok8ESvn5oUHq6DzXKB4zSS6zdB8hO20Hir6TileN0=; b=MZ52O5mt1xvE4vL7dbHocbpjJxocnJxNULhtx0+H4DKNuuq4qsZ+uQpDzdhoSCbY+s 55tHaZ6JFcurGXVIEsGiYPyYjaAwo4r6CpowvqhqB7kEAhlmuvU6XEXyd622eIz44L2l KUQIqgCewHjB1Cc1NWuPVr9EmQabmyPAtUkOjb2rflNrohdAn2aMdN1c5sWwEGvCsoB+ FuU/N2VDC7ZyLbfD76bKY/bg3iqVD2mUS+MzpNnSOihhzEtdMpo0y6smCkOGfBuXVW9x AXi0U9S1Mv2WoiGml8IMkL+G9SyTS1lJ9r0D38idA7QnHtoVgfStk93eaY5caiS62e6R FKOg== 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=HWok8ESvn5oUHq6DzXKB4zSS6zdB8hO20Hir6TileN0=; b=CLi65ru6dTVz/lQ3oZ0bG83EX+uFzZnzhOxskhV1WMpL1dCkbLdpTlBEZtQTkoDUCR Q2jqR4r3cH6FrBPIKE0glVF7cC5fhpUOmBt6RBpB51humc+IIM8aWL5KAkA8+6ij4vJl HGMPbr/ce+vRz+2JEFebY7Ct1nHEhyDWf1Tu9RkMmfQVOqE9XUJH0W0aQi2vOhVThenm SLdTEIo6I/1GXqtIO83dJGDKI9jBAoDVF+yMgbfNNTLnrT3D57VUnscDcLIXxrwgm2Vi WqAnl5KIuJ6Y7OqOeWsQ5QSvNovmtH2mlnlhHBMXo4G5OaNEKUH5wcBI4nKTwj4HCJOO APLg== X-Gm-Message-State: APjAAAVUoYvytYCNfFhx8yU401bOrccdakCAhs55lRn+tWLe4eZ9fNs9 w/2Emu4ulIS+tUoC1Bwo41fgMHWOw9A= X-Received: by 2002:a2e:8591:: with SMTP id b17mr1373230lji.200.1567676225838; Thu, 05 Sep 2019 02:37:05 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id u8sm361352lfb.36.2019.09.05.02.37.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2019 02:37:04 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Bartosz Golaszewski , Linus Walleij , YueHaibing , Masahiro Yamada , kbuild test robot Subject: [PATCH] gpio: Fix up merge collision in include file Date: Thu, 5 Sep 2019 11:37:03 +0200 Message-Id: <20190905093703.8958-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The merge of two different patch sets cleaning around in the main driver include file collided making the function declarations for gpiochip_[un]lock_as_irq() be defined twice when gpiolib was unselected. Fix it up. Cc: YueHaibing Cc: Masahiro Yamada Reported-by: kbuild test robot Signed-off-by: Linus Walleij --- include/linux/gpio/driver.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.21.0 diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index b74a3bee85e5..c667ad0c099d 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -702,11 +702,12 @@ void gpiochip_free_own_desc(struct gpio_desc *desc); void devprop_gpiochip_set_names(struct gpio_chip *chip, const struct fwnode_handle *fwnode); +#ifdef CONFIG_GPIOLIB + /* lock/unlock as IRQ */ int gpiochip_lock_as_irq(struct gpio_chip *chip, unsigned int offset); void gpiochip_unlock_as_irq(struct gpio_chip *chip, unsigned int offset); -#ifdef CONFIG_GPIOLIB struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc);