From: Peter Rosin Subject: Re: [PATCH 1/7] eeprom: at24: don't explicitely include header files which are implicitely included Date: Thu, 30 Nov 2017 16:56:53 +0100 Message-ID: References: <5fd1ad39-db94-e774-b77c-8081bfed7817@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mail-db5eur01on0118.outbound.protection.outlook.com ([104.47.2.118]:58848 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751936AbdK3P5A (ORCPT ); Thu, 30 Nov 2017 10:57:00 -0500 In-Reply-To: <5fd1ad39-db94-e774-b77c-8081bfed7817@gmail.com> Content-Language: en-US Sender: linux-i2c-owner@vger.kernel.org List-Id: linux-i2c@vger.kernel.org To: Heiner Kallweit , Bartosz Golaszewski Cc: "linux-i2c@vger.kernel.org" On 2017-11-30 07:48, Heiner Kallweit wrote: > Don't explicitely include header files which are implicitely included. That's backwards. It hinders future header rearrangement. Things that are used directly (e.g. the BIT macro) should have its respective include specified (bitops.h in that case). It's not a competition for the shortest file, the goal is easy maintenance. Cheers, Peter > Signed-off-by: Heiner Kallweit > --- > drivers/misc/eeprom/at24.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c > index cd87f1b21..c75bb9b45 100644 > --- a/drivers/misc/eeprom/at24.c > +++ b/drivers/misc/eeprom/at24.c > @@ -10,15 +10,10 @@ > * (at your option) any later version. > */ > #include > -#include > #include > #include > #include > #include > -#include > -#include > -#include > -#include > #include > #include > #include >