1. 15 9月, 2016 8 次提交
    • P
      gpio: don't include module.h in shared driver header · d47529b2
      Paul Gortmaker 提交于
      Most shared headers in include/linux don't need to know what the
      internals of a struct module are; all they care about is that it
      is a struct and hence they may require a pointer to one.
      
      The advantage in this is that module.h is including a lot of stuff
      itself, and an otherwise empty C file that just contains module.h
      will result in ~750kB from CPP (compared to say 12kB from init.h)
      
      So we have approximately 50 instances of "struct module;" in the
      various include/linux headers already that help us keep module.h
      out of other headers; here we do the same for gpio.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      d47529b2
    • P
      gpio: wcove: fix implicit assumption module.h is present · 39d80072
      Paul Gortmaker 提交于
      The Kconfig for this file is:
      
      drivers/gpio/Kconfig:config GPIO_WHISKEY_COVE
      drivers/gpio/Kconfig:   tristate "GPIO support for Whiskey Cove PMIC"
      
      ...but however it does not include module.h -- it in turn gets it from
      another header (gpio/driver.h) and we'd like to replace that with a
      forward delcaration of "struct module;" but if we do, this file will
      fail to compile.
      
      So we fix this first to avoid putting build failures into the bisect
      commit history.
      
      Cc: Ajay Thomas <ajay.thomas.david.rajamanickam@intel.com>
      Cc: Bin Gao <bin.gao@intel.com>
      Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
      Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      39d80072
    • P
      gpio: loongson1: fix implicit assumption module.h is present · 5f604506
      Paul Gortmaker 提交于
      The Kconfig for this file is:
      
      drivers/gpio/Kconfig:config GPIO_LOONGSON1
      drivers/gpio/Kconfig:   tristate "Loongson1 GPIO support"
      
      ...but however it does not include module.h -- it in turn gets it from
      another header (gpio/driver.h) and we'd like to replace that with a
      forward delcaration of "struct module;" but if we do, this file will
      fail to compile.
      
      So we fix this first to avoid putting build failures into the bisect
      commit history.
      
      Cc: Keguang Zhang <keguang.zhang@gmail.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: linux-mips@linux-mips.org
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      5f604506
    • P
      gpio: ath79: fix implicit assumption module.h is present · 2034b9dc
      Paul Gortmaker 提交于
      The Kconfig for this file is:
      
      drivers/gpio/Kconfig:config GPIO_ATH79
      drivers/gpio/Kconfig: tristate "Atheros AR71XX/AR724X/AR913X GPIO support"
      
      ...but however it does not include module.h -- it in turn gets it from
      another header (gpio/driver.h) and we'd like to replace that with a
      forward delcaration of "struct module;" but if we do, this file will
      fail to compile.
      
      So we fix this first to avoid putting build failures into the bisect
      commit history.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      2034b9dc
    • P
      gpio: altera: fix implicit assumption module.h is present · 7b5409ee
      Paul Gortmaker 提交于
      The Kconfig for this file is:
      
      drivers/gpio/Kconfig:config GPIO_ALTERA
      drivers/gpio/Kconfig:   tristate "Altera GPIO"
      
      ...but however it does not include module.h -- it in turn gets it from
      another header (gpio/driver.h) and we'd like to replace that with a
      forward delcaration of "struct module;" but if we do, this file will
      fail to compile.
      
      So we fix this first to avoid putting build failures into the bisect
      commit history.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      7b5409ee
    • P
      gpio: ts4800: fix implicit assumption module.h is present · 7de9a6c7
      Paul Gortmaker 提交于
      The Kconfig for this file is:
      
      drivers/gpio/Kconfig:config GPIO_TS4800
      drivers/gpio/Kconfig: tristate "TS-4800 DIO blocks and compatibles"
      
      ...but however it does not include module.h -- it in turn gets it from
      another header (gpio/driver.h) and we'd like to replace that with a
      forward delcaration of "struct module;" but if we do, this file will
      fail to compile.
      
      So we fix this first to avoid putting build failures into the bisect
      commit history.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      7de9a6c7
    • P
      gpio: sx150x: fix implicit assumption module.h is present · bb411e77
      Paul Gortmaker 提交于
      This file is currently getting module.h from a global gpio header
      and it will faii to build once we remove module.h from that.
      
      However, the driver is controlled with the following Kconfig:
      
      drivers/gpio/Kconfig:config GPIO_SX150X
      drivers/gpio/Kconfig:   bool "Semtech SX150x I2C GPIO expander"
      
      and hence the two lines of MODULE_DEVICE_TABLE are no-ops that
      can simply be deleted.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      bb411e77
    • P
      gpio: palmas: fix implicit assumption module.h is present · a86e87e8
      Paul Gortmaker 提交于
      This file is currently getting module.h from a global gpio header
      and it will fail to build once we remove module.h from that.
      
      However, the driver is controlled with the following Kconfig:
      
      drivers/gpio/Kconfig:config GPIO_PALMAS
      drivers/gpio/Kconfig:   bool "TI PALMAS series PMICs GPIO"
      
      and hence the line of MODULE_DEVICE_TABLE is a no-op that can simply
      be deleted.  In fact it should have been removed in an earlier commit
      that did demodularization, however the unseen include prevented my
      build testing from detecting it.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      a86e87e8
  2. 13 9月, 2016 7 次提交
  3. 12 9月, 2016 10 次提交
  4. 08 9月, 2016 2 次提交
  5. 07 9月, 2016 3 次提交
  6. 31 8月, 2016 3 次提交
  7. 24 8月, 2016 1 次提交
  8. 23 8月, 2016 4 次提交
    • P
      gpio: vf610: drop unused MODULE_ tags from non-modular code · adaaf63e
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/gpio/Kconfig:config GPIO_VF610
      drivers/gpio/Kconfig:   def_bool y
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the couple traces of modular infrastructure use, so that
      when reading the driver there is no doubt it is builtin-only.
      
      We delete the MODULE_LICENSE tag etc. since all that information
      is now contained at the top of the file in the comments.
      
      We don't replace module.h with init.h since the file already has that.
      
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: Stefan Agner <stefan@agner.ch>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      adaaf63e
    • P
      gpio: spear-spics: drop unused MODULE_ tags from non-modular code · b29c5dda
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/gpio/Kconfig:config GPIO_SPEAR_SPICS
      drivers/gpio/Kconfig:   bool "ST SPEAr13xx SPI Chip Select as GPIO support"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the couple traces of modular infrastructure use, so that
      when reading the driver there is no doubt it is builtin-only.
      
      We delete the MODULE_LICENSE tag etc. since all that information
      is now contained at the top of the file in the comments.
      
      Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: Shiraz Hashim <shiraz.linux.kernel@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      b29c5dda
    • P
      gpio: mxc: drop unused MODULE_ tags from non-modular code · 2c8d6c86
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/gpio/Kconfig:config GPIO_MXC
      drivers/gpio/Kconfig:   def_bool y
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the couple traces of modular infrastructure use, so that
      when reading the driver there is no doubt it is builtin-only.
      
      We delete the MODULE_LICENSE tag etc. since all that information
      was (or is now) contained at the top of the file in the comments.
      Note the original e-mail had a missing/typo'd @ symbol anyway.
      
      We don't replace module.h with init.h since the file already has that.
      
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: Daniel Mack <daniel@caiaq.de>
      Cc: Juergen Beisert <kernel@pengutronix.de>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      2c8d6c86
    • P
      gpio: msic: drop unused MODULE_ tags from non-modular code · 98102880
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/gpio/Kconfig:config GPIO_MSIC
      drivers/gpio/Kconfig:   bool "Intel MSIC mixed signal gpio support"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the couple traces of modular infrastructure use, so that
      when reading the driver there is no doubt it is builtin-only.
      
      We delete the MODULE_LICENSE tag etc. since all that information
      is already contained at the top of the file in the comments.
      
      We don't replace module.h with init.h since the file already has that.
      
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: Mathias Nyman <mathias.nyman@linux.intel.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      98102880
  9. 19 8月, 2016 2 次提交