Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752256AbdGDIbc (ORCPT ); Tue, 4 Jul 2017 04:31:32 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:52465 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751879AbdGDIb3 (ORCPT ); Tue, 4 Jul 2017 04:31:29 -0400 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Date: Tue, 4 Jul 2017 09:30:45 +0100 From: Charles Keepax To: Masahiro Yamada CC: , Grygorii Strashko , Linus Walleij , "Andy Shevchenko" , William Breathitt Gray , Ray Jui , =?iso-8859-1?Q?S=F6ren?= Brinkmann , David Cohen , Scott Branden , , , Florian Fainelli , Thierry Reding , Jonathan Hunter , Alexander Shiyan , Michal Simek , Kevin Hilman , , Joel Stanley , , , "Mika Westerberg" , , Alban Bedel , , Santosh Shilimkar , "Thor Thayer" , Tien Hock Loh Subject: Re: [PATCH] gpio: drop unnecessary includes from include/linux/gpio/driver.h Message-ID: <20170704083045.fqruqn6i5sxhfhu6@localhost.localdomain> References: <1499140415-31677-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1499140415-31677-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1707040147 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 867 Lines: 25 On Tue, Jul 04, 2017 at 12:53:34PM +0900, 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-wm831x.c | 1 + > drivers/gpio/gpio-wm8994.c | 1 + For the Wolfson Micro bits: Acked-by: Charles Keepax Thanks, Charles