From patchwork Mon Dec 18 07:16:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Jinchao X-Patchwork-Id: 180174 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp1076592dyi; Sun, 17 Dec 2023 23:16:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGk9Ri//W7NbQ3Vi6je+iIFunZAIcv66Aibdp2OMJO4V9GXj6NTRS2m/7iPcI0HvpVN2EWD X-Received: by 2002:a05:622a:1103:b0:423:a073:8938 with SMTP id e3-20020a05622a110300b00423a0738938mr27394879qty.7.1702883803885; Sun, 17 Dec 2023 23:16:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702883803; cv=none; d=google.com; s=arc-20160816; b=ChsGpnIPLU0s+63ja9GBHMtj+jqhvde/8VhewyCOaoF+OK7U3lfEWZgNk9POZI+OHD aKDNr6hCfcWEjklQqTJ+aemwYtjDUdRV6F+lvi0fxOWCLlr+IMQQ3//S7Jcke7UEeTbW zol4vcG+xo9jF4sPgdoP2knISp2gfBUviZ3SlHMZM+ee5OgacSitnEbHGHDOQq8j4nwv sI46dbxJMcCSXB1CXmRu6vmRKmLcBGodj6URxS2s/RI6RudKZO/FP2of53J7j81cAg+R TkV0TB0w9NzMlTOhCM+5Gtha9Op1JxB3Wg9VnxTFbjlaCSZM+67eCqQGgixyeWyFv5n/ 8IvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date; bh=0tlvZrR1C+MDbj3VXXah/haALhbpTwBMKycI1BT2l3Y=; fh=vpsdTbTCUVuAUNp3tL+XYBDZe6gNwwSeSrZeNFmNj70=; b=WJ4XjEAVkKNWobfa36TxLs0j9k6nyvT5S6igm8tcEwYLn1fTfH9PuF6NyqjcLXRK03 wiWQMoF15aYJEJQ3+km7hLmT+f2xJe/EKBgNnEEF9X6NI5k+vdGPB2PDz8/qjgdN/+dd Guf5JCFE2xiV3H6ENEYfVCy6TbjL14Z4cD9xdBXCcoypPu1GvEWDw6O1idy9KlXXyxeW DAt4Oqpy/tpqiXvIx8SexTLHbcbWRmMko3xxX3ZxHQ4UUhk3uV7HcMtNsNeSuYV+aYeT ZlbEhZQUL+YNB1RTBoxy1JXMzKq9uBqYekFpsphcbmYSJVdoGvnEZg5ajDRSHwui6KkO 6SFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3089-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3089-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r10-20020a05622a034a00b00427588030b6si2880131qtw.442.2023.12.17.23.16.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 23:16:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3089-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3089-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3089-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AD76C1C20328 for ; Mon, 18 Dec 2023 07:16:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4A1FC8D8; Mon, 18 Dec 2023 07:16:29 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from wxsgout04.xfusion.com (wxsgout03.xfusion.com [36.139.52.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A3F579D9; Mon, 18 Dec 2023 07:16:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xfusion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xfusion.com Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4Strcz2sVgzB022w; Mon, 18 Dec 2023 15:12:51 +0800 (CST) Received: from localhost (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Mon, 18 Dec 2023 15:16:17 +0800 Date: Mon, 18 Dec 2023 15:16:16 +0800 From: Wang Jinchao To: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , , CC: , Subject: [PATCH v2] gpiolib: cleanup for duplicated including Message-ID: <202312181513+0800-wangjinchao@xfusion.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-ClientProxiedBy: wuxshcsitd00603.xfusion.com (10.32.134.231) To wuxshcsitd00600.xfusion.com (10.32.133.213) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785603087575221209 X-GMAIL-MSGID: 1785603087575221209 Remove second `#include `. Remove `#include `. As they are guaranteed by the global `err.h`. Signed-off-by: Wang Jinchao --- V2: Revise the comment per Andy's suggestion. V1: https://lore.kernel.org/all/202312151645+0800-wangjinchao@xfusion.com/ include/linux/gpio/driver.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 0aed62f0c633..df6857e579a1 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -701,7 +701,6 @@ int gpiochip_irqchip_add_domain(struct gpio_chip *gc, #else #include -#include static inline int gpiochip_irqchip_add_domain(struct gpio_chip *gc, struct irq_domain *domain) @@ -789,8 +788,6 @@ int gpio_device_get_base(struct gpio_device *gdev); #else /* CONFIG_GPIOLIB */ -#include - #include static inline struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc)