Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752069AbdHASy5 (ORCPT ); Tue, 1 Aug 2017 14:54:57 -0400 Received: from mga04.intel.com ([192.55.52.120]:23705 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751877AbdHASyy (ORCPT ); Tue, 1 Aug 2017 14:54:54 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,306,1498546800"; d="scan'208";a="114398563" Reply-To: thor.thayer@linux.intel.com Subject: Re: [PATCH] gpio: drop unnecessary includes from include/linux/gpio/driver.h To: Masahiro Yamada , linux-gpio@vger.kernel.org Cc: Grygorii Strashko , Linus Walleij , Andy Shevchenko , William Breathitt Gray , Ray Jui , =?UTF-8?Q?S=c3=b6ren_Brinkmann?= , David Cohen , Scott Branden , linux-acpi@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Florian Fainelli , Thierry Reding , Jonathan Hunter , Alexander Shiyan , Michal Simek , Kevin Hilman , linux-tegra@vger.kernel.org, Joel Stanley , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mika Westerberg , patches@opensource.cirrus.com, Alban Bedel , linux-kernel@vger.kernel.org, Santosh Shilimkar , Tien Hock Loh References: <1499140415-31677-1-git-send-email-yamada.masahiro@socionext.com> From: Thor Thayer Message-ID: Date: Tue, 1 Aug 2017 13:57:59 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1499140415-31677-1-git-send-email-yamada.masahiro@socionext.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 825 Lines: 22 On 07/03/2017 10:53 PM, Masahiro Yamada wrote: > Some of include directives in include/linux/gpio/driver.h are > unneeded because the header does not need to know the content of > struct device, irq_chip, etc. Just declare they are structures. > > On the other hand, and > turned out to be necessary for irq_flow_handler_t and spinlock_t, > respectively. > > Each driver should include what it needs without relying on what is > implicitly included from . This will cut down > unnecessary header parsing. > > Signed-off-by: Masahiro Yamada > --- > > drivers/gpio/gpio-altera-a10sr.c | 2 ++ > drivers/gpio/gpio-altera.c | 3 +++ For the Altera GPIO files: Acked-by: Thor Thayer