From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiner Kallweit Subject: Re: [PATCH 1/7] eeprom: at24: don't explicitely include header files which are implicitely included Date: Thu, 30 Nov 2017 20:32:41 +0100 Message-ID: <172da7fb-40a5-ef36-cbc7-ee6aa5d62e5f@gmail.com> 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-wr0-f193.google.com ([209.85.128.193]:45556 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750796AbdK3Tcr (ORCPT ); Thu, 30 Nov 2017 14:32:47 -0500 Received: by mail-wr0-f193.google.com with SMTP id h1so7733955wre.12 for ; Thu, 30 Nov 2017 11:32:46 -0800 (PST) In-Reply-To: Sender: linux-i2c-owner@vger.kernel.org List-Id: linux-i2c@vger.kernel.org To: Peter Rosin , Bartosz Golaszewski Cc: "linux-i2c@vger.kernel.org" Am 30.11.2017 um 16:56 schrieb Peter Rosin: > 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. > Understood .. @Bartosz: then you can ignore this one. Rgds, Heiner > 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 >> > >