Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp94056rdb; Sun, 17 Dec 2023 23:16:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwjOI4xo6amxzJGGzz7C4Dp8GQmGViwOnn3M3NdvQmHYN+66MM5iYxwxRPmuh2ZvGP/yEB X-Received: by 2002:a05:6358:430c:b0:172:da2c:8753 with SMTP id r12-20020a056358430c00b00172da2c8753mr421445rwc.26.1702883800155; Sun, 17 Dec 2023 23:16:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702883800; cv=none; d=google.com; s=arc-20160816; b=WnU1ok2faNwZy33DdkntF3Dwrt/ws6LgbjJOrKK00RHPOvWPCzK8MelOpHc8bflIpa xBKogj90hvlV5eJ8CsA+OYXB/+TJ0qNbrz2tbf6KNG7xMtj1ZE/KIQHdg6qjs+8+JjY/ OGR2suyIcLSurLPkYtvH1CzABFbvNliZEFnNUpFXXkmpEbn4lVHd6/XIuazTsjB4GF52 cNAWoSLLFH7aNyHBWRffyZuHgWFvonMcATqDschtfQiCE10PNk9+wxA1rU2fGSslSykG F1/0Ub6DlOkkkgZaNfpEuBPHuoUoujsy1NJp4pVkumbBmR0VZ8J9wJWOKx8WF5DH7iK/ rPUQ== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3089-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s9-20020a056a00194900b006ce11380ce4si17498812pfk.20.2023.12.17.23.16.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 23:16:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3089-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3089-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3089-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 96A12B2115B for ; Mon, 18 Dec 2023 07:16:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D78C879F1; Mon, 18 Dec 2023 07:16:28 +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-Type: text/plain; charset="us-ascii" Content-Disposition: inline X-ClientProxiedBy: wuxshcsitd00603.xfusion.com (10.32.134.231) To wuxshcsitd00600.xfusion.com (10.32.133.213) 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) -- 2.40.0