Skip to content

gpio: Allow compile test of GPIO consumers if !GPIOLIB

Geert Uytterhoeven dri-devel linux-fbdev linux-gpio linux-i2c linux-iio linux-input linux-leds linux-media linux-mtd linux-pm linux-serial linux-spi linux-watchdog lkml lm-sensors netdev 1 version Applied

Status from this message: Applied to -next.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest27 patches 19 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/27drm/bridge: ptn3460: #include <linux/gpio/consumer.h>, depend on GPIOLIBdrivers/gpu/drm/bridge/Kconfig drivers/gpu/drm/bridge/ptn3460.c+3 -22 replies
2/27drm/bridge: ps8622: #include <linux/gpio/consumer.h>, depend on GPIOLIBdrivers/gpu/drm/bridge/Kconfig drivers/gpu/drm/bridge/ps8622.c+3 -21 reply
3/27tpm: Allow compile test of GPIO consumers if !GPIOLIBdrivers/char/tpm/st33zp24/Kconfig+1 -11 reply
4/27extcon: Allow compile test of GPIO consumers if !GPIOLIBdrivers/extcon/Kconfig drivers/extcon/extcon-usb-gpio.c+3 -21 reply
5/27hwmon: Allow compile test of GPIO consumers if !GPIOLIBdrivers/hwmon/Kconfig+2 -21 reply
6/27i2c: Allow compile test of GPIO consumers if !GPIOLIBdrivers/i2c/busses/Kconfig drivers/i2c/muxes/Kconfig+5 -41 reply
7/27iio: Allow compile test of GPIO consumers if !GPIOLIBdrivers/iio/humidity/Kconfig drivers/iio/magnetometer/Kconfig+3 -31 reply
8/27input: Allow compile test of GPIO consumers if !GPIOLIBdrivers/input/keyboard/Kconfig drivers/input/misc/Kconfig drivers/input/mouse/Kconfig +1 more+13 -120 replies
9/27leds: Allow compile test of GPIO consumers if !GPIOLIBdrivers/leds/Kconfig drivers/leds/trigger/Kconfig+2 -23 replies
10/27wl128x: Allow compile test of GPIO consumers if !GPIOLIBdrivers/media/radio/wl128x/Kconfig+2 -20 replies
11/27mfd: Allow compile test of GPIO consumers if !GPIOLIBdrivers/mfd/Kconfig+4 -21 reply
12/27misc: ti-st: Allow compile test of GPIO consumers if !GPIOLIBdrivers/misc/ti-st/Kconfig+2 -10 replies
13/27mtd: Allow compile test of GPIO consumers if !GPIOLIBdrivers/mtd/maps/Kconfig drivers/mtd/nand/Kconfig+2 -21 reply
14/27net: phy: Allow compile test of GPIO consumers if !GPIOLIBdrivers/net/phy/Kconfig+2 -10 replies
15/27power: Allow compile test of GPIO consumers if !GPIOLIBdrivers/power/Kconfig+5 -30 replies
16/27regulator: Allow compile test of GPIO consumers if !GPIOLIBdrivers/regulator/Kconfig+1 -11 reply
17/27spi: Allow compile test of GPIO consumers if !GPIOLIBdrivers/spi/Kconfig+2 -21 reply
18/27staging: android: Allow compile test of GPIO consumers if !GPIOLIBdrivers/staging/android/Kconfig+2 -10 replies
19/27staging: fbtft: Allow compile test of GPIO consumers if !GPIOLIBdrivers/staging/fbtft/Kconfig+2 -10 replies
20/27Staging: iio: Allow compile test of GPIO consumers if !GPIOLIBdrivers/staging/iio/accel/Kconfig drivers/staging/iio/adc/Kconfig drivers/staging/iio/addac/Kconfig +1 more+7 -71 reply
21/27serial: Allow compile test of GPIO consumers if !GPIOLIBdrivers/tty/serial/Kconfig+2 -10 replies
22/27usb: phy: Allow compile test of GPIO consumers if !GPIOLIBdrivers/usb/phy/Kconfig+1 -10 replies
23/27backlight: Allow compile test of GPIO consumers if !GPIOLIBdrivers/video/backlight/Kconfig+5 -31 reply
24/27fbdev: Allow compile test of GPIO consumers if !GPIOLIBdrivers/video/fbdev/Kconfig+1 -10 replies
25/27w1: Allow compile test of GPIO consumers if !GPIOLIBdrivers/w1/masters/Kconfig+1 -10 replies
26/27watchdog: Allow compile test of GPIO consumers if !GPIOLIBdrivers/watchdog/Kconfig+1 -11 reply
27/27net: rfkill: Allow compile test of GPIO consumers if !GPIOLIBnet/rfkill/Kconfig+2 -10 replies

Reviews trailers per patch

3 of 27 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGuenter RoeckPeter HueweJacek AnaszewskiLinus Walleij
SeriesA-b
1/27
2/27
3/27A-b
4/27
5/27
6/27
7/27
8/27
9/27A-b
10/27
11/27
12/27
13/27
14/27
15/27
16/27
17/27
18/27
19/27
20/27
21/27
22/27
23/27
24/27
25/27
26/27R-b
27/27

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 00/27] gpio: Allow compile test of GPIO consumers if !GPIOLIB

Hi all,

The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer functionality only, can still be compiled if GPIOLIB is not enabled.

This patch series relaxes the dependencies on GPIOLIB if COMPILE_TEST is enabled, where appropriate:
- Patches 1-2 add missing dependencies on GPIOLIB || COMPILE_TEST,
- Patches 3-27 relax existing dependencies on GPIOLIB.
In some cases (patches 1,2, and 4), this required adding a missing include (<linux/gpio/consumer.h>), as this may not be included if asm-generic/gpio.h is not used.

There are a few more drivers that depend on GPIOLIB and that may be eligible for COMPILE_TEST. These I didn't handle yet, as I couldn't enable them with m68k/all{mod,yes}config due to other dependencies.

This series is against v4.1-rc2 and next-20150505 with the exception of patch 21, which has an additional dependency (mentioned in the patch itself, incl. resolution instructions if the dependency isn't satisified).

Thanks!

Geert Uytterhoeven (27):
drm/bridge: ptn3460: #include <linux/gpio/consumer.h>, depend on
GPIOLIB
drm/bridge: ps8622: #include <linux/gpio/consumer.h>, depend on
GPIOLIB
tpm: Allow compile test of GPIO consumers if !GPIOLIB
extcon: Allow compile test of GPIO consumers if !GPIOLIB
hwmon: Allow compile test of GPIO consumers if !GPIOLIB
i2c: Allow compile test of GPIO consumers if !GPIOLIB
iio: Allow compile test of GPIO consumers if !GPIOLIB
input: Allow compile test of GPIO consumers if !GPIOLIB
leds: Allow compile test of GPIO consumers if !GPIOLIB [media] wl128x: Allow compile test of GPIO consumers if !GPIOLIB
mfd: Allow compile test of GPIO consumers if !GPIOLIB
misc: ti-st: Allow compile test of GPIO consumers if !GPIOLIB
mtd: Allow compile test of GPIO consumers if !GPIOLIB
net: phy: Allow compile test of GPIO consumers if !GPIOLIB
power: Allow compile test of GPIO consumers if !GPIOLIB
regulator: Allow compile test of GPIO consumers if !GPIOLIB
spi: Allow compile test of GPIO consumers if !GPIOLIB
staging: android: Allow compile test of GPIO consumers if !GPIOLIB
staging: fbtft: Allow compile test of GPIO consumers if !GPIOLIB
Staging: iio: Allow compile test of GPIO consumers if !GPIOLIB
serial: Allow compile test of GPIO consumers if !GPIOLIB
usb: phy: Allow compile test of GPIO consumers if !GPIOLIB
backlight: Allow compile test of GPIO consumers if !GPIOLIB
fbdev: Allow compile test of GPIO consumers if !GPIOLIB
w1: Allow compile test of GPIO consumers if !GPIOLIB
watchdog: Allow compile test of GPIO consumers if !GPIOLIB
net: rfkill: Allow compile test of GPIO consumers if !GPIOLIB

 drivers/char/tpm/st33zp24/Kconfig    |  2 +-
 drivers/extcon/Kconfig               |  4 ++--
 drivers/extcon/extcon-usb-gpio.c     |  1 +
 drivers/gpu/drm/bridge/Kconfig       |  8 ++++----
 drivers/gpu/drm/bridge/ps8622.c      |  1 +
 drivers/gpu/drm/bridge/ptn3460.c     |  1 +
 drivers/hwmon/Kconfig                |  4 ++--
 drivers/i2c/busses/Kconfig           |  4 ++--
 drivers/i2c/muxes/Kconfig            |  5 +++--
 drivers/iio/humidity/Kconfig         |  2 +-
 drivers/iio/magnetometer/Kconfig     |  4 ++--
 drivers/input/keyboard/Kconfig       |  4 ++--
 drivers/input/misc/Kconfig           | 11 ++++++-----
 drivers/input/mouse/Kconfig          |  2 +-
 drivers/input/touchscreen/Kconfig    |  8 ++++----
 drivers/leds/Kconfig                 |  2 +-
 drivers/leds/trigger/Kconfig         |  2 +-
 drivers/media/radio/wl128x/Kconfig   |  4 ++--
 drivers/mfd/Kconfig                  |  6 ++++--
 drivers/misc/ti-st/Kconfig           |  3 ++-
 drivers/mtd/maps/Kconfig             |  2 +-
 drivers/mtd/nand/Kconfig             |  2 +-
 drivers/net/phy/Kconfig              |  3 ++-
 drivers/power/Kconfig                |  8 +++++---
 drivers/regulator/Kconfig            |  2 +-
 drivers/spi/Kconfig                  |  4 ++--
 drivers/staging/android/Kconfig      |  3 ++-
 drivers/staging/fbtft/Kconfig        |  3 ++-
 drivers/staging/iio/accel/Kconfig    |  2 +-
 drivers/staging/iio/adc/Kconfig      |  6 +++---
 drivers/staging/iio/addac/Kconfig    |  2 +-
 drivers/staging/iio/resolver/Kconfig |  4 ++--
 drivers/tty/serial/Kconfig           |  3 ++-
 drivers/usb/phy/Kconfig              |  2 +-
 drivers/video/backlight/Kconfig      |  8 +++++---
 drivers/video/fbdev/Kconfig          |  2 +-
 drivers/w1/masters/Kconfig           |  2 +-
 drivers/watchdog/Kconfig             |  2 +-
 net/rfkill/Kconfig                   |  3 ++-
 39 files changed, 79 insertions(+), 62 deletions(-)
Signature · 12 lines
1.9.1

Gr{oetje,eeting}s,

					    Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							-- Linus Torvalds