gpio: Allow compile test of GPIO consumers if !GPIOLIB
Subsystems (33)
cover 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 TorvaldsPATCH 1/27 drm/bridge: ptn3460: #include <linux/gpio/consumer.h>, depend on GPIOLIB
If GPIOLIB=n and asm-generic/gpio.h is not used:
drivers/gpu/drm/bridge/ptn3460.c: In function ‘ptn3460_pre_enable’:
drivers/gpu/drm/bridge/ptn3460.c:135: error: implicit declaration of function ‘gpiod_set_value’ drivers/gpu/drm/bridge/ptn3460.c: In function ‘ptn3460_probe’:
drivers/gpu/drm/bridge/ptn3460.c:333: error: implicit declaration of function ‘devm_gpiod_get’ drivers/gpu/drm/bridge/ptn3460.c:333: warning: assignment makes pointer from integer without a cast drivers/gpu/drm/bridge/ptn3460.c:340: error: implicit declaration of function ‘gpiod_direction_output’ drivers/gpu/drm/bridge/ptn3460.c:346: warning: assignment makes pointer from integer without a cast
Add the missing #include <linux/gpio/consumer.h> to fix this.
As the resulting driver won't work with GPIOLIB=n anyway, make DRM_PTN3460 depend on GPIOLIB || COMPILE_TEST.
--- drivers/gpu/drm/bridge/Kconfig | 4 ++-- drivers/gpu/drm/bridge/ptn3460.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/bridge/Kconfig +2 -2
@@ -5,8 +5,8 @@ config DRM_DW_HDMI config DRM_PTN3460 tristate "PTN3460 DP/LVDS bridge" - depends on DRM - depends on OF + depends on DRM && OF + depends on GPIOLIB || COMPILE_TEST select DRM_KMS_HELPER select DRM_PANEL ---help---
drivers/gpu/drm/bridge/ptn3460.c +1 -0
@@ -15,6 +15,7 @@#include <linux/delay.h> #include <linux/gpio.h> +#include <linux/gpio/consumer.h> #include <linux/i2c.h> #include <linux/module.h> #include <linux/of.h>
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/27 drm/bridge: ps8622: #include <linux/gpio/consumer.h>, depend on GPIOLIB
If GPIOLIB=n and asm-generic/gpio.h is not used:
drivers/gpu/drm/bridge/ps8622.c: In function ‘ps8622_pre_enable’:
drivers/gpu/drm/bridge/ps8622.c:368: error: implicit declaration of function ‘gpiod_set_value’ drivers/gpu/drm/bridge/ps8622.c: In function ‘ps8622_probe’:
drivers/gpu/drm/bridge/ps8622.c:584: error: implicit declaration of function ‘devm_gpiod_get’ drivers/gpu/drm/bridge/ps8622.c:584: warning: assignment makes pointer from integer without a cast drivers/gpu/drm/bridge/ps8622.c:590: error: implicit declaration of function ‘gpiod_direction_output’ drivers/gpu/drm/bridge/ps8622.c:596: warning: assignment makes pointer from integer without a cast
Add the missing #include <linux/gpio/consumer.h> to fix this.
As the resulting driver won't work with GPIOLIB=n anyway, make DRM_PS8622 depend on GPIOLIB || COMPILE_TEST.
--- drivers/gpu/drm/bridge/Kconfig | 4 ++-- drivers/gpu/drm/bridge/ps8622.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/bridge/Kconfig +2 -2
@@ -14,8 +14,8 @@ config DRM_PTN3460 config DRM_PS8622 tristate "Parade eDP/LVDS bridge" - depends on DRM - depends on OF + depends on DRM && OF + depends on GPIOLIB || COMPILE_TEST select DRM_PANEL select DRM_KMS_HELPER select BACKLIGHT_LCD_SUPPORT
drivers/gpu/drm/bridge/ps8622.c +1 -0
@@ -18,6 +18,7 @@#include <linux/err.h> #include <linux/fb.h> #include <linux/gpio.h> +#include <linux/gpio/consumer.h> #include <linux/i2c.h> #include <linux/module.h> #include <linux/of.h>
Signature · 1 line
1.9.1
PATCH 5/27 hwmon: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/hwmon/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/hwmon/Kconfig +2 -2
@@ -509,7 +509,7 @@ config SENSORS_G762 config SENSORS_GPIO_FAN tristate "GPIO fan" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST depends on THERMAL || THERMAL=n help If you say yes here you get support for fans connected to GPIO lines.
@@ -1186,7 +1186,7 @@ config SENSORS_PWM_FAN config SENSORS_SHT15 tristate "Sensiron humidity and temperature sensors. SHT15 and compat." - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help If you say yes here you get support for the Sensiron SHT10, SHT11, SHT15, SHT71, SHT75 humidity and temperature sensors.
Signature · 7 lines
1.9.1 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
PATCH 6/27 i2c: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/i2c/busses/Kconfig | 4 ++-- drivers/i2c/muxes/Kconfig | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-)
drivers/i2c/busses/Kconfig +2 -2
@@ -419,7 +419,7 @@ config I2C_CADENCE config I2C_CBUS_GPIO tristate "CBUS I2C driver" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Support for CBUS access using I2C API. Mostly relevant for Nokia Internet Tablets (770, N800 and N810).
@@ -525,7 +525,7 @@ config I2C_EXYNOS5 config I2C_GPIO tristate "GPIO-based bitbanging I2C" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST select I2C_ALGOBIT help This is a very simple bitbanging I2C driver utilizing the
drivers/i2c/muxes/Kconfig +3 -2
@@ -7,7 +7,8 @@ menu "Multiplexer I2C Chip support" config I2C_ARB_GPIO_CHALLENGE tristate "GPIO-based I2C arbitration" - depends on GPIOLIB && OF + depends on GPIOLIB || COMPILE_TEST + depends on OF help If you say yes to this option, support will be included for an I2C multimaster arbitration scheme using GPIOs and a challenge &
@@ -40,7 +41,7 @@ config I2C_MUX_PCA9541 config I2C_MUX_PCA954x tristate "Philips PCA954x I2C Mux/switches" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help If you say yes here you get support for the Philips PCA954x I2C mux/switch devices.
Signature · 1 line
1.9.1
PATCH 7/27 iio: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/iio/humidity/Kconfig | 2 +- drivers/iio/magnetometer/Kconfig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/iio/humidity/Kconfig +1 -1
@@ -5,7 +5,7 @@ menu "Humidity sensors" config DHT11 tristate "DHT11 (and compatible sensors) driver" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help This driver supports reading data via a single interrupt generating GPIO line. Currently tested are DHT11 and DHT22.
drivers/iio/magnetometer/Kconfig +2 -2
@@ -8,7 +8,7 @@ menu "Magnetometer sensors" config AK8975 tristate "Asahi Kasei AK 3-Axis Magnetometer" depends on I2C - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say yes here to build support for Asahi Kasei AK8975, AK8963, AK09911 or AK09912 3-Axis Magnetometer.
@@ -19,7 +19,7 @@ config AK8975 config AK09911 tristate "Asahi Kasei AK09911 3-axis Compass" depends on I2C - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST select AK8975 help Deprecated: AK09911 is now supported by AK8975 driver.
Signature · 1 line
1.9.1
PATCH 8/27 input: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/input/keyboard/Kconfig | 4 ++-- drivers/input/misc/Kconfig | 11 ++++++----- drivers/input/mouse/Kconfig | 2 +- drivers/input/touchscreen/Kconfig | 8 ++++---- 4 files changed, 13 insertions(+), 12 deletions(-)
drivers/input/keyboard/Kconfig +2 -2
@@ -187,7 +187,7 @@ config KEYBOARD_EP93XX config KEYBOARD_GPIO tristate "GPIO Buttons" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help This driver implements support for buttons connected to GPIO pins of various CPUs (and some other chips).
@@ -253,7 +253,7 @@ config KEYBOARD_TCA8418 config KEYBOARD_MATRIX tristate "GPIO driven matrix keypad support" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST select INPUT_MATRIXKMAP help Enable support for GPIO driven matrix keypad.
drivers/input/misc/Kconfig +6 -5
@@ -259,7 +259,7 @@ config INPUT_APANEL config INPUT_GP2A tristate "Sharp GP2AP002A00F I2C Proximity/Opto sensor driver" depends on I2C - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say Y here if you have a Sharp GP2AP002A00F proximity/als combo-chip hooked to an I2C bus.
@@ -269,7 +269,7 @@ config INPUT_GP2A config INPUT_GPIO_BEEPER tristate "Generic GPIO Beeper support" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say Y here if you have a beeper connected to a GPIO pin.
@@ -278,7 +278,7 @@ config INPUT_GPIO_BEEPER config INPUT_GPIO_TILT_POLLED tristate "Polled GPIO tilt switch" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST select INPUT_POLLDEV help This driver implements support for tilt switches connected
@@ -569,7 +569,7 @@ config INPUT_PWM_BEEPER config INPUT_GPIO_ROTARY_ENCODER tristate "Rotary encoders connected to GPIO pins" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say Y here to add support for rotary encoders connected to GPIO lines. Check file:Documentation/input/rotary-encoder.txt for more
@@ -766,7 +766,8 @@ config INPUT_SOC_BUTTON_ARRAY config INPUT_DRV260X_HAPTICS tristate "TI DRV260X haptics support" - depends on INPUT && I2C && GPIOLIB + depends on INPUT && I2C + depends on GPIOLIB || COMPILE_TEST select INPUT_FF_MEMLESS select REGMAP_I2C help
drivers/input/mouse/Kconfig +1 -1
@@ -341,7 +341,7 @@ config MOUSE_VSXXXAA config MOUSE_GPIO tristate "GPIO mouse" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST select INPUT_POLLDEV help This driver simulates a mouse on GPIO lines of various CPUs (and some
drivers/input/touchscreen/Kconfig +4 -4
@@ -118,7 +118,7 @@ config TOUCHSCREEN_ATMEL_MXT config TOUCHSCREEN_AUO_PIXCIR tristate "AUO in-cell touchscreen using Pixcir ICs" depends on I2C - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say Y here if you have a AUO display with in-cell touchscreen using Pixcir ICs.
@@ -142,7 +142,7 @@ config TOUCHSCREEN_BU21013 config TOUCHSCREEN_CHIPONE_ICN8318 tristate "chipone icn8318 touchscreen controller" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST depends on I2C depends on OF help
@@ -156,7 +156,7 @@ config TOUCHSCREEN_CHIPONE_ICN8318 config TOUCHSCREEN_CY8CTMG110 tristate "cy8ctmg110 touchscreen" depends on I2C - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say Y here if you have a cy8ctmg110 capacitive touchscreen on an AAVA device.
@@ -1016,7 +1016,7 @@ config TOUCHSCREEN_TPS6507X config TOUCHSCREEN_ZFORCE tristate "Neonode zForce infrared touchscreens" depends on I2C - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say Y here if you have a touchscreen using the zforce infraread technology from Neonode.
Signature · 1 line
1.9.1
PATCH 9/27 leds: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/leds/Kconfig | 2 +- drivers/leds/trigger/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/leds/Kconfig +1 -1
@@ -395,7 +395,7 @@ config LEDS_INTEL_SS4200 config LEDS_LT3593 tristate "LED driver for LT3593 controllers" depends on LEDS_CLASS - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help This option enables support for LEDs driven by a Linear Technology LT3593 controller. This controller uses a special one-wire pulse
drivers/leds/trigger/Kconfig +1 -1
@@ -72,7 +72,7 @@ config LEDS_TRIGGER_CPU config LEDS_TRIGGER_GPIO tristate "LED GPIO Trigger" depends on LEDS_TRIGGERS - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help This allows LEDs to be controlled by gpio events. It's good when using gpios as switches and triggering the needed LEDs
Signature · 1 line
1.9.1
PATCH 10/27 wl128x: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/media/radio/wl128x/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/radio/wl128x/Kconfig +2 -2
@@ -4,8 +4,8 @@ menu "Texas Instruments WL128x FM driver (ST based)" config RADIO_WL128X tristate "Texas Instruments WL128x FM Radio" - depends on VIDEO_V4L2 && RFKILL && GPIOLIB && TTY - depends on TI_ST + depends on VIDEO_V4L2 && RFKILL && TTY && TI_ST + depends on GPIOLIB || COMPILE_TEST help Choose Y here if you have this FM radio chip.
Signature · 1 line
1.9.1
PATCH 12/27 misc: ti-st: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/misc/ti-st/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/misc/ti-st/Kconfig +2 -1
@@ -5,7 +5,8 @@ menu "Texas Instruments shared transport line discipline" config TI_ST tristate "Shared transport core driver" - depends on NET && GPIOLIB && TTY + depends on NET && TTY + depends on GPIOLIB || COMPILE_TEST select FW_LOADER help This enables the shared transport core driver for TI
Signature · 1 line
1.9.1
PATCH 13/27 mtd: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/mtd/maps/Kconfig | 2 +- drivers/mtd/nand/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/maps/Kconfig +1 -1
@@ -326,7 +326,7 @@ config MTD_BFIN_ASYNC config MTD_GPIO_ADDR tristate "GPIO-assisted Flash Chip Support" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST depends on MTD_COMPLEX_MAPPINGS help Map driver which allows flashes to be partially physically addressed
drivers/mtd/nand/Kconfig +1 -1
@@ -76,7 +76,7 @@ config MTD_NAND_DENALI_SCRATCH_REG_ADDR config MTD_NAND_GPIO tristate "GPIO assisted NAND Flash driver" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help This enables a NAND flash driver where control signals are connected to GPIO pins, and commands and data are communicated
Signature · 1 line
1.9.1
PATCH 14/27 net: phy: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/net/phy/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/phy/Kconfig +2 -1
@@ -138,7 +138,8 @@ config MDIO_BITBANG config MDIO_GPIO tristate "Support for GPIO lib-based bitbanged MDIO buses" - depends on MDIO_BITBANG && GPIOLIB + depends on MDIO_BITBANG + depends on GPIOLIB || COMPILE_TEST ---help--- Supports GPIO lib-based MDIO busses.
Signature · 1 line
1.9.1
PATCH 15/27 power: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/power/Kconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/power/Kconfig +5 -3
@@ -326,7 +326,7 @@ config CHARGER_LP8788 config CHARGER_GPIO tristate "GPIO charger" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say Y to include support for chargers which report their online status through a GPIO pin.
@@ -384,13 +384,15 @@ config CHARGER_BQ2415X config CHARGER_BQ24190 tristate "TI BQ24190 battery charger driver" - depends on I2C && GPIOLIB + depends on I2C + depends on GPIOLIB || COMPILE_TEST help Say Y to enable support for the TI BQ24190 battery charger. config CHARGER_BQ24735 tristate "TI BQ24735 battery charger support" - depends on I2C && GPIOLIB + depends on I2C + depends on GPIOLIB || COMPILE_TEST help Say Y to enable support for the TI BQ24735 battery charger.
Signature · 1 line
1.9.1
PATCH 17/27 spi: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/spi/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/Kconfig +2 -2
@@ -221,7 +221,7 @@ config SPI_FALCON config SPI_GPIO tristate "GPIO-based bitbanging SPI Master" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST select SPI_BITBANG help This simple GPIO bitbanging SPI master uses the arch-neutral GPIO
@@ -333,7 +333,7 @@ config SPI_OCSIMPLE config SPI_OC_TINY tristate "OpenCores tiny SPI" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST select SPI_BITBANG help This is the driver for OpenCores tiny SPI master controller.
Signature · 6 lines
1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 18/27 staging: android: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/staging/android/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/android/Kconfig +2 -1
@@ -20,7 +20,8 @@ config ANDROID_TIMED_OUTPUT config ANDROID_TIMED_GPIO tristate "Android timed gpio driver" - depends on GPIOLIB && ANDROID_TIMED_OUTPUT + depends on GPIOLIB || COMPILE_TEST + depends on ANDROID_TIMED_OUTPUT default n config ANDROID_LOW_MEMORY_KILLER
Signature · 1 line
1.9.1
PATCH 19/27 staging: fbtft: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/staging/fbtft/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/fbtft/Kconfig +2 -1
@@ -1,6 +1,7 @@ menuconfig FB_TFT tristate "Support for small TFT LCD display modules" - depends on FB && SPI && GPIOLIB + depends on FB && SPI + depends on GPIOLIB || COMPILE_TEST select FB_SYS_FILLRECT select FB_SYS_COPYAREA select FB_SYS_IMAGEBLIT
Signature · 6 lines
1.9.1 _______________________________________________ devel mailing list [email protected] http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
PATCH 20/27 Staging: iio: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/staging/iio/accel/Kconfig | 2 +- drivers/staging/iio/adc/Kconfig | 6 +++--- drivers/staging/iio/addac/Kconfig | 2 +- drivers/staging/iio/resolver/Kconfig | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-)
drivers/staging/iio/accel/Kconfig +1 -1
@@ -79,7 +79,7 @@ config LIS3L02DQ depends on SPI select IIO_TRIGGER if IIO_BUFFER depends on !IIO_BUFFER || IIO_KFIFO_BUF - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say Y here to build SPI support for the ST microelectronics accelerometer. The driver supplies direct access via sysfs files
drivers/staging/iio/adc/Kconfig +3 -3
@@ -5,7 +5,7 @@ menu "Analog to digital converters" config AD7606 tristate "Analog Devices AD7606 ADC driver" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST select IIO_BUFFER select IIO_TRIGGERED_BUFFER help
@@ -39,7 +39,7 @@ config AD7606_IFACE_SPI config AD7780 tristate "Analog Devices AD7780 and similar ADCs driver" depends on SPI - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST select AD_SIGMA_DELTA help Say yes here to build support for Analog Devices AD7170, AD7171,
@@ -52,7 +52,7 @@ config AD7780 config AD7816 tristate "Analog Devices AD7816/7/8 temperature sensor and ADC driver" depends on SPI - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say yes here to build support for Analog Devices AD7816/7/8 temperature sensors and ADC.
drivers/staging/iio/addac/Kconfig +1 -1
@@ -5,7 +5,7 @@ menu "Analog digital bi-direction converters" config ADT7316 tristate "Analog Devices ADT7316/7/8 ADT7516/7/9 temperature sensor, ADC and DAC driver" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say yes here to build support for Analog Devices ADT7316, ADT7317, ADT7318 and ADT7516, ADT7517, ADT7519 temperature sensors, ADC and DAC.
drivers/staging/iio/resolver/Kconfig +2 -2
@@ -16,7 +16,7 @@ config AD2S90 config AD2S1200 tristate "Analog Devices ad2s1200/ad2s1205 driver" depends on SPI - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say yes here to build support for Analog Devices spi resolver to digital converters, ad2s1200 and ad2s1205, provides direct access
@@ -28,7 +28,7 @@ config AD2S1200 config AD2S1210 tristate "Analog Devices ad2s1210 driver" depends on SPI - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say yes here to build support for Analog Devices spi resolver to digital converters, ad2s1210, provides direct access via sysfs.
Signature · 1 line
1.9.1
PATCH 21/27 serial: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
---
This depends on "serial: SERIAL_IFX6X60 should depend on HAS_DMA". Without that patch, just drop " && HAS_DMA".
--- drivers/tty/serial/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/tty/serial/Kconfig +2 -1
@@ -1349,7 +1349,8 @@ config SERIAL_ALTERA_UART_CONSOLE config SERIAL_IFX6X60 tristate "SPI protocol driver for Infineon 6x60 modem (EXPERIMENTAL)" - depends on GPIOLIB && SPI && HAS_DMA + depends on GPIOLIB || COMPILE_TEST + depends on SPI && HAS_DMA help Support for the IFX6x60 modem devices on Intel MID platforms.
Signature · 1 line
1.9.1
PATCH 23/27 backlight: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/video/backlight/Kconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/video/backlight/Kconfig +5 -3
@@ -36,14 +36,16 @@ config LCD_CORGI config LCD_L4F00242T03 tristate "Epson L4F00242T03 LCD" - depends on SPI_MASTER && GPIOLIB + depends on SPI_MASTER + depends on GPIOLIB || COMPILE_TEST help SPI driver for Epson L4F00242T03. This provides basic support for init and powering the LCD up/down through a sysfs interface. config LCD_LMS283GF05 tristate "Samsung LMS283GF05 LCD" - depends on SPI_MASTER && GPIOLIB + depends on SPI_MASTER + depends on GPIOLIB || COMPILE_TEST help SPI driver for Samsung LMS283GF05. This provides basic support for powering the LCD up/down through a sysfs interface.
@@ -434,7 +436,7 @@ config BACKLIGHT_AS3711 config BACKLIGHT_GPIO tristate "Generic GPIO based Backlight Driver" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help If you have a LCD backlight adjustable by GPIO, say Y to enable this driver.
Signature · 1 line
1.9.1
PATCH 24/27 fbdev: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/video/fbdev/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/Kconfig +1 -1
@@ -2471,7 +2471,7 @@ config FB_SSD1307 tristate "Solomon SSD1307 framebuffer support" depends on FB && I2C depends on OF - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST select FB_SYS_FOPS select FB_SYS_FILLRECT select FB_SYS_COPYAREA
Signature · 1 line
1.9.1
PATCH 25/27 w1: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/w1/masters/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/w1/masters/Kconfig +1 -1
@@ -49,7 +49,7 @@ config W1_MASTER_DS1WM config W1_MASTER_GPIO tristate "GPIO 1-wire busmaster" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say Y here if you want to communicate with your 1-wire devices using GPIO pins. This driver uses the GPIO API to control the wire.
Signature · 1 line
1.9.1
PATCH 26/27 watchdog: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/Kconfig +1 -1
@@ -1343,7 +1343,7 @@ config BOOKE_WDT_DEFAULT_TIMEOUT config MEN_A21_WDT tristate "MEN A21 VME CPU Carrier Board Watchdog Timer" select WATCHDOG_CORE - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Watchdog driver for MEN A21 VMEbus CPU Carrier Boards.
Signature · 1 line
1.9.1
PATCH 27/27 net: rfkill: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- net/rfkill/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/rfkill/Kconfig +2 -1
@@ -36,7 +36,8 @@ config RFKILL_REGULATOR config RFKILL_GPIO tristate "GPIO RFKILL driver" - depends on RFKILL && GPIOLIB + depends on RFKILL + depends on GPIOLIB || COMPILE_TEST default n help If you say yes here you get support of a generic gpio RFKILL
Signature · 1 line
1.9.1
PATCH 4/27 extcon: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
If GPIOLIB=n and asm-generic/gpio.h is not used:
drivers/extcon/extcon-usb-gpio.c: In function ‘usb_extcon_detect_cable’:
drivers/extcon/extcon-usb-gpio.c:63: error: implicit declaration of function ‘gpiod_get_value_cansleep’ drivers/extcon/extcon-usb-gpio.c: In function ‘usb_extcon_probe’:
drivers/extcon/extcon-usb-gpio.c:116: error: implicit declaration of function ‘devm_gpiod_get’ drivers/extcon/extcon-usb-gpio.c:116: warning: assignment makes pointer from integer without a cast drivers/extcon/extcon-usb-gpio.c:122: error: implicit declaration of function ‘gpiod_set_debounce’ drivers/extcon/extcon-usb-gpio.c:129: error: implicit declaration of function ‘gpiod_to_irq’
Add the missing #include <linux/gpio/consumer.h> to fix this.
--- drivers/extcon/Kconfig | 4 ++-- drivers/extcon/extcon-usb-gpio.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/extcon/Kconfig +2 -2
@@ -30,7 +30,7 @@ config EXTCON_ARIZONA config EXTCON_GPIO tristate "GPIO extcon support" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say Y here to enable GPIO based extcon support. Note that GPIO extcon supports single state per extcon instance.
@@ -105,7 +105,7 @@ config EXTCON_SM5502 config EXTCON_USB_GPIO tristate "USB GPIO extcon support" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say Y here to enable GPIO based USB cable detection extcon support. Used typically if GPIO is used for USB ID pin detection.
drivers/extcon/extcon-usb-gpio.c +1 -0
@@ -15,6 +15,7 @@*/ #include <linux/extcon.h> +#include <linux/gpio/consumer.h> #include <linux/init.h> #include <linux/interrupt.h> #include <linux/irq.h>
Signature · 6 lines
1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 3/27 tpm: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/char/tpm/st33zp24/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/tpm/st33zp24/Kconfig +1 -1
@@ -1,6 +1,6 @@ config TCG_TIS_ST33ZP24 tristate "STMicroelectronics TPM Interface Specification 1.2 Interface" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST ---help--- STMicroelectronics ST33ZP24 core driver. It implements the core TPM1.2 logic and hooks into the TPM kernel APIs. Physical layers will
Signature · 1 line
1.9.1
PATCH 11/27 mfd: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/mfd/Kconfig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/mfd/Kconfig +4 -2
@@ -52,7 +52,8 @@ config PMIC_ADP5520 config MFD_AAT2870_CORE bool "AnalogicTech AAT2870" select MFD_CORE - depends on I2C=y && GPIOLIB + depends on I2C=y + depends on GPIOLIB || COMPILE_TEST help If you say yes here you get support for the AAT2870. This driver provides common support for accessing the device,
@@ -1115,7 +1116,8 @@ config MFD_TPS6586X config MFD_TPS65910 bool "TI TPS65910 Power Management chip" - depends on I2C=y && GPIOLIB + depends on I2C=y + depends on GPIOLIB || COMPILE_TEST select MFD_CORE select REGMAP_I2C select REGMAP_IRQ
Signature · 1 line
1.9.1
PATCH 22/27 usb: phy: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/usb/phy/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/phy/Kconfig +1 -1
@@ -91,7 +91,7 @@ config TWL6030_USB config USB_GPIO_VBUS tristate "GPIO based peripheral-only VBUS sensing 'transceiver'" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST select USB_PHY help Provides simple GPIO VBUS sensing for controllers with an
Signature · 1 line
1.9.1
PATCH 16/27 regulator: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenThe 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.
Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate.
--- drivers/regulator/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/Kconfig +1 -1
@@ -233,7 +233,7 @@ config REGULATOR_FAN53555 config REGULATOR_GPIO tristate "GPIO regulator support" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help This driver provides support for regulators that can be controlled via gpios.
Signature · 1 line
1.9.1
Re: [PATCH 05/27] hwmon: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenQuoted 11 lines · Geert Uytterhoeven
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.
Relax the dependency on GPIOLIB if
COMPILE_TESTis enabled, where appropriate.Signed-off-by Geert Uytterhoeven <[email protected]>Cc Jean Delvare <[email protected]>Cc Guenter Roeck <[email protected]>
Applied to -next.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [PATCH 26/27] watchdog: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenQuoted 10 lines · Geert Uytterhoeven
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.
Relax the dependency on GPIOLIB if
COMPILE_TESTis enabled, where appropriate.Signed-off-by Geert Uytterhoeven <[email protected]>Cc Wim Van Sebroeck <[email protected]>
Re: [PATCH 03/27] tpm: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenAm Dienstag, 5. Mai 2015, 18:32:19 schrieb Geert Uytterhoeven:
Quoted 11 lines
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.
Relax the dependency on GPIOLIB if
COMPILE_TESTis enabled, where appropriate.Signed-off-by Geert Uytterhoeven <[email protected]>Cc Peter Huewe <[email protected]>Cc Marcel Selhorst <[email protected]>
Re: [PATCH 04/27] extcon: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenHi Geert,
Quoted 19 lines · Geert Uytterhoeven
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.
Relax the dependency on GPIOLIB if
COMPILE_TESTis enabled, where appropriate.If GPIOLIB=n and
asm-generic/gpio.his not used:
drivers/extcon/extcon-usb-gpio.c: In function ‘usb_extcon_detect_cable’:
drivers/extcon/extcon-usb-gpio.c:63: error: implicit declaration of function ‘gpiod_get_value_cansleep’drivers/extcon/extcon-usb-gpio.c: In function ‘usb_extcon_probe’:
drivers/extcon/extcon-usb-gpio.c:116: error: implicit declaration of function ‘devm_gpiod_get’drivers/extcon/extcon-usb-gpio.c:116: warning: assignment makes pointer from integer without a castdrivers/extcon/extcon-usb-gpio.c:122: error: implicit declaration of function ‘gpiod_set_debounce’drivers/extcon/extcon-usb-gpio.c:129: error: implicit declaration of function ‘gpiod_to_irq’Add the missing #include <
linux/gpio/consumer.h> to fix this.
Quoted 7 lines
Signed-off-by Geert Uytterhoeven <[email protected]>Cc MyungJoo Ham <[email protected]>Cc Chanwoo Choi <[email protected]>--- drivers/extcon/Kconfig | 4 ++-- drivers/extcon/extcon-usb-gpio.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
Applied it on -next branch.
Thanks,
Chanwoo Choi
Re: [PATCH 09/27] leds: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenHi Geert,
Why don't you apply the same modification to all LED Kconfig entries with GPIOLIB dependency?
Quoted 43 lines · Geert Uytterhoeven
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.
Relax the dependency on GPIOLIB if
COMPILE_TESTis enabled, where appropriate.Signed-off-by Geert Uytterhoeven <[email protected]>Cc Bryan Wu <[email protected]>Cc Richard Purdie <[email protected]>--- drivers/leds/Kconfig | 2 +- drivers/leds/trigger/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/leds/Kconfig +1
-1@@ -395,7 +395,7 @@ config LEDS_INTEL_SS4200 config LEDS_LT3593 tristate "LED driver for LT3593 controllers" depends on LEDS_CLASS - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help This option enables support for LEDs driven by a Linear Technology LT3593 controller. This controller uses a special one-wire pulsedrivers/leds/trigger/Kconfig +1
-1@@ -72,7 +72,7 @@ config LEDS_TRIGGER_CPU config LEDS_TRIGGER_GPIO tristate "LED GPIO Trigger" depends on LEDS_TRIGGERS - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help This allows LEDs to be controlled by gpio events. It's good when using gpios as switches and triggering the needed LEDs
Signature · 2 lines
Best Regards, Jacek Anaszewski
Re: [PATCH 09/27] leds: Allow compile test of GPIO consumers if !GPIOLIB
Hi Jacek,
Quoted 2 lines · Jacek Anaszewski
Why don't you apply the same modification to all LED
Kconfigentries with GPIOLIB dependency?
LEDS_PCA9532_GPIO is a GPIO provider, not a consumer. There are no dummies for GPIO providers.LEDS_GPIO doesn't compile if !GPIOLIB, but I missed that it's just due to a missing dummy for devm_get_gpiod_from_child() and a missing include. Will fix.
Thanks!
Quoted 7 lines · Geert Uytterhoeven
Quoted 6 lines
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.
Relax the dependency on GPIOLIB if
COMPILE_TESTis enabled, where appropriate.
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
Re: [PATCH 16/27] regulator: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenQuoted 3 lines · Geert Uytterhoeven
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.
Applied, thanks.
Re: [PATCH 17/27] spi: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenQuoted 3 lines · Geert Uytterhoeven
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.
Applied, thanks.
Re: [PATCH 23/27] backlight: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenQuoted 13 lines · Geert Uytterhoeven
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.
Relax the dependency on GPIOLIB if
COMPILE_TESTis enabled, where appropriate.Signed-off-by Geert Uytterhoeven <[email protected]>Cc Jingoo Han <[email protected]>Cc Lee Jones <[email protected]>Cc Jean-Christophe Plagniol-Villard <[email protected]>Cc Tomi Valkeinen <[email protected]>
Quoted 3 lines
--- drivers/video/backlight/Kconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
Looks good. Applied, thanks.
Quoted 32 lines
drivers/video/backlight/Kconfig +5
-3@@ -36,14 +36,16 @@ config LCD_CORGI config LCD_L4F00242T03 tristate "Epson L4F00242T03 LCD" - depends on SPI_MASTER && GPIOLIB + depends on SPI_MASTER + depends on GPIOLIB || COMPILE_TEST help SPI driver for Epson L4F00242T03. This provides basic support for init and powering the LCD up/down through a sysfs interface. config LCD_LMS283GF05 tristate "Samsung LMS283GF05 LCD" - depends on SPI_MASTER && GPIOLIB + depends on SPI_MASTER + depends on GPIOLIB || COMPILE_TEST help SPI driver for Samsung LMS283GF05. This provides basic support for powering the LCD up/down through a sysfs interface.@@ -434,7 +436,7 @@ config BACKLIGHT_AS3711 config BACKLIGHT_GPIO tristate "Generic GPIO based Backlight Driver" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help If you have a LCD backlight adjustable by GPIO, say Y to enable this driver.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Lee Jones
AppliedRe: [PATCH 11/27] mfd: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenQuoted 7 lines · Geert Uytterhoeven
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.
Relax the dependency on GPIOLIB if
COMPILE_TESTis enabled, where appropriate.
Quoted 6 lines
Signed-off-by Geert Uytterhoeven <[email protected]>Cc Samuel Ortiz <[email protected]>Cc Lee Jones <[email protected]>--- drivers/mfd/Kconfig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Applied, thanks.
Quoted 24 lines
drivers/mfd/Kconfig +4
-2@@ -52,7 +52,8 @@ config PMIC_ADP5520 config MFD_AAT2870_CORE bool "AnalogicTech AAT2870" select MFD_CORE - depends on I2C=y && GPIOLIB + depends on I2C=y + depends on GPIOLIB || COMPILE_TEST help If you say yes here you get support for the AAT2870. This driver provides common support for accessing the device,@@ -1115,7 +1116,8 @@ config MFD_TPS6586X config MFD_TPS65910 bool "TI TPS65910 Power Management chip" - depends on I2C=y && GPIOLIB + depends on I2C=y + depends on GPIOLIB || COMPILE_TEST select MFD_CORE select REGMAP_I2C select REGMAP_IRQ
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH 07/27] iio: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenQuoted 10 lines · Geert Uytterhoeven
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.
Relax the dependency on GPIOLIB if
COMPILE_TESTis enabled, where appropriate.Signed-off-by Geert Uytterhoeven <[email protected]>Cc Jonathan Cameron <[email protected]>
Not entirely convinced that the extra build coverage from this is going to be that extensive, but it does no harm, so why not?
Applied to the togreg branch of iio.git, will sometime be pushed out as testing, for the autobuilders to play with it, as I am travelling.
Jonathan
Quoted 41 lines
--- drivers/iio/humidity/Kconfig | 2 +- drivers/iio/magnetometer/Kconfig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)drivers/iio/humidity/Kconfig +1
-1@@ -5,7 +5,7 @@ menu "Humidity sensors" config DHT11 tristate "DHT11 (and compatible sensors) driver" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help This driver supports reading data via a single interrupt generating GPIO line. Currently tested are DHT11 and DHT22.drivers/iio/magnetometer/Kconfig +2
-2@@ -8,7 +8,7 @@ menu "Magnetometer sensors" config AK8975 tristate "Asahi Kasei AK 3-Axis Magnetometer" depends on I2C - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say yes here to build support for Asahi Kasei AK8975, AK8963, AK09911 or AK09912 3-Axis Magnetometer.@@ -19,7 +19,7 @@ config AK8975 config AK09911 tristate "Asahi Kasei AK09911 3-axis Compass" depends on I2C - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST select AK8975 help Deprecated: AK09911 is now supported by AK8975 driver.
Jonathan Cameron
maintainerRe: [PATCH 20/27] Staging: iio: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenQuoted 11 lines · Geert Uytterhoeven
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.
Relax the dependency on GPIOLIB if
COMPILE_TESTis enabled, where appropriate.Signed-off-by Geert Uytterhoeven <[email protected]>Cc Jonathan Cameron <[email protected]>
Applied to the togreg branch of iio.git - to be pushed out as testing 'soonish'.
Quoted 87 lines
--- drivers/staging/iio/accel/Kconfig | 2 +- drivers/staging/iio/adc/Kconfig | 6 +++--- drivers/staging/iio/addac/Kconfig | 2 +- drivers/staging/iio/resolver/Kconfig | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-)drivers/staging/iio/accel/Kconfig +1
-1@@ -79,7 +79,7 @@ config LIS3L02DQ depends on SPI select IIO_TRIGGER if IIO_BUFFER depends on !IIO_BUFFER || IIO_KFIFO_BUF - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say Y here to build SPI support for the ST microelectronics accelerometer. The driver supplies direct access via sysfs filesdrivers/staging/iio/adc/Kconfig +3
-3@@ -5,7 +5,7 @@ menu "Analog to digital converters" config AD7606 tristate "Analog Devices AD7606 ADC driver" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST select IIO_BUFFER select IIO_TRIGGERED_BUFFER help@@ -39,7 +39,7 @@ config AD7606_IFACE_SPI config AD7780 tristate "Analog Devices AD7780 and similar ADCs driver" depends on SPI - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST select AD_SIGMA_DELTA help Say yes here to build support for Analog Devices AD7170, AD7171,@@ -52,7 +52,7 @@ config AD7780 config AD7816 tristate "Analog Devices AD7816/7/8 temperature sensor and ADC driver" depends on SPI - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say yes here to build support for Analog Devices AD7816/7/8 temperature sensors and ADC.drivers/staging/iio/addac/Kconfig +1
-1@@ -5,7 +5,7 @@ menu "Analog digital bi-direction converters" config ADT7316 tristate "Analog Devices ADT7316/7/8 ADT7516/7/9 temperature sensor, ADC and DAC driver" - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say yes here to build support for Analog Devices ADT7316, ADT7317, ADT7318 and ADT7516, ADT7517, ADT7519 temperature sensors, ADC and DAC.drivers/staging/iio/resolver/Kconfig +2
-2@@ -16,7 +16,7 @@ config AD2S90 config AD2S1200 tristate "Analog Devices ad2s1200/ad2s1205 driver" depends on SPI - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say yes here to build support for Analog Devices spi resolver to digital converters, ad2s1200 and ad2s1205, provides direct access@@ -28,7 +28,7 @@ config AD2S1200 config AD2S1210 tristate "Analog Devices ad2s1210 driver" depends on SPI - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help Say yes here to build support for Analog Devices spi resolver to digital converters, ad2s1210, provides direct access via sysfs.
Re: [PATCH 09/27] leds: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenQuoted 35 lines · Geert Uytterhoeven
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.
Relax the dependency on GPIOLIB if
COMPILE_TESTis enabled, where appropriate.Signed-off-by Geert Uytterhoeven <[email protected]>Cc Bryan Wu <[email protected]>Cc Richard Purdie <[email protected]>--- drivers/leds/Kconfig | 2 +- drivers/leds/trigger/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/leds/Kconfig +1
-1@@ -395,7 +395,7 @@ config LEDS_INTEL_SS4200 config LEDS_LT3593 tristate "LED driver for LT3593 controllers" depends on LEDS_CLASS - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help This option enables support for LEDs driven by a Linear Technology LT3593 controller. This controller uses a special one-wire pulsedrivers/leds/trigger/Kconfig +0
-0
drivers/leds/trigger/Kconfig config LEDS_TRIGGER_CPU · line 78
Quoted 8 lines
drivers/leds/trigger/Kconfig +1
-1@@ -72,7 +72,7 @@ config LEDS_TRIGGER_CPU config LEDS_TRIGGER_GPIO tristate "LED GPIO Trigger" depends on LEDS_TRIGGERS - depends on GPIOLIB + depends on GPIOLIB || COMPILE_TEST help This allows LEDs to be controlled by gpio events. It's good when using gpios as switches and triggering the needed LEDs
Signature · 2 lines
Best Regards, Jacek Anaszewski
Quoted 14 lines · Geert Uytterhoeven
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_TESTis 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 ifasm-generic/gpio.his not used.
Quoted 8 lines
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).
FWIW: the series:
Yours,
Linus Walleij
[email protected]
AppliedRe: [PATCH 06/27] i2c: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenQuoted 10 lines · Geert Uytterhoeven
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.
Relax the dependency on GPIOLIB if
COMPILE_TESTis enabled, where appropriate.Signed-off-by Geert Uytterhoeven <[email protected]>Cc Wolfram Sang <[email protected]>
Applied to for-next, thanks!
Brian Norris
AppliedRe: [PATCH 13/27] mtd: Allow compile test of GPIO consumers if !GPIOLIB
In reply to Geert UytterhoevenQuoted 11 lines · Geert Uytterhoeven
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.
Relax the dependency on GPIOLIB if
COMPILE_TESTis enabled, where appropriate.Signed-off-by Geert Uytterhoeven <[email protected]>Cc David Woodhouse <[email protected]>Cc Brian Norris <[email protected]>
Pushed to l2-mtd.git.
Brian
Re: [PATCH 01/27] drm/bridge: ptn3460: #include <linux/gpio/consumer.h>, depend on GPIOLIB
In reply to Geert UytterhoevenQuoted 15 lines · Geert Uytterhoeven
If GPIOLIB=n and
asm-generic/gpio.his not used:
drivers/gpu/drm/bridge/ptn3460.c: In function ‘ptn3460_pre_enable’:
drivers/gpu/drm/bridge/ptn3460.c:135: error: implicit declaration of function ‘gpiod_set_value’drivers/gpu/drm/bridge/ptn3460.c: In function ‘ptn3460_probe’:
drivers/gpu/drm/bridge/ptn3460.c:333: error: implicit declaration of function ‘devm_gpiod_get’drivers/gpu/drm/bridge/ptn3460.c:333: warning: assignment makes pointer from integer without a castdrivers/gpu/drm/bridge/ptn3460.c:340: error: implicit declaration of function ‘gpiod_direction_output’drivers/gpu/drm/bridge/ptn3460.c:346: warning: assignment makes pointer from integer without a castAdd the missing #include <
linux/gpio/consumer.h> to fix this.As the resulting driver won't work with GPIOLIB=n anyway, make
DRM_PTN3460depend on GPIOLIB ||COMPILE_TEST.
Quoted 7 lines
Signed-off-by Geert Uytterhoeven <[email protected]>Cc David Airlie <[email protected]>--- drivers/gpu/drm/bridge/Kconfig | 4 ++-- drivers/gpu/drm/bridge/ptn3460.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
Applied, thanks. Note that I dropped the part about adding the GPIOLIB dependency because that had been attempted previously to fix this, but it causes recursive dependencies on PowerPC (ppc64_defconfig). I don't know of a way to untangle those (I tried and failed miserably), so I think adding the include is really as good as it'll get.
Thierry
Thierry Reding
AppliedRe: [PATCH 02/27] drm/bridge: ps8622: #include <linux/gpio/consumer.h>, depend on GPIOLIB
In reply to Geert UytterhoevenQuoted 15 lines · Geert Uytterhoeven
If GPIOLIB=n and
asm-generic/gpio.his not used:
drivers/gpu/drm/bridge/ps8622.c: In function ‘ps8622_pre_enable’:
drivers/gpu/drm/bridge/ps8622.c:368: error: implicit declaration of function ‘gpiod_set_value’drivers/gpu/drm/bridge/ps8622.c: In function ‘ps8622_probe’:
drivers/gpu/drm/bridge/ps8622.c:584: error: implicit declaration of function ‘devm_gpiod_get’drivers/gpu/drm/bridge/ps8622.c:584: warning: assignment makes pointer from integer without a castdrivers/gpu/drm/bridge/ps8622.c:590: error: implicit declaration of function ‘gpiod_direction_output’drivers/gpu/drm/bridge/ps8622.c:596: warning: assignment makes pointer from integer without a castAdd the missing #include <
linux/gpio/consumer.h> to fix this.As the resulting driver won't work with GPIOLIB=n anyway, make
DRM_PS8622depend on GPIOLIB ||COMPILE_TEST.
Quoted 7 lines
Signed-off-by Geert Uytterhoeven <[email protected]>Cc David Airlie <[email protected]>--- drivers/gpu/drm/bridge/Kconfig | 4 ++-- drivers/gpu/drm/bridge/ps8622.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
Applied, thanks. With the same modifications as patch 1/27. I wonder if there's any reason to keep the linux/gpio.h include, since consumer.h seems to expose all the API that the drivers need.
Thierry
Re: [PATCH 01/27] drm/bridge: ptn3460: #include <linux/gpio/consumer.h>, depend on GPIOLIB
In reply to Thierry RedingHi Thierry,
Quoted 24 lines · Thierry Reding
Quoted 15 lines · Geert Uytterhoeven
If GPIOLIB=n and
asm-generic/gpio.his not used:
drivers/gpu/drm/bridge/ptn3460.c: In function ‘ptn3460_pre_enable’:
drivers/gpu/drm/bridge/ptn3460.c:135: error: implicit declaration of function ‘gpiod_set_value’drivers/gpu/drm/bridge/ptn3460.c: In function ‘ptn3460_probe’:
drivers/gpu/drm/bridge/ptn3460.c:333: error: implicit declaration of function ‘devm_gpiod_get’drivers/gpu/drm/bridge/ptn3460.c:333: warning: assignment makes pointer from integer without a castdrivers/gpu/drm/bridge/ptn3460.c:340: error: implicit declaration of function ‘gpiod_direction_output’drivers/gpu/drm/bridge/ptn3460.c:346: warning: assignment makes pointer from integer without a castAdd the missing #include <
linux/gpio/consumer.h> to fix this.As the resulting driver won't work with GPIOLIB=n anyway, make
DRM_PTN3460depend on GPIOLIB ||COMPILE_TEST.Quoted 7 lines
Signed-off-by Geert Uytterhoeven <[email protected]>Cc David Airlie <[email protected]>--- drivers/gpu/drm/bridge/Kconfig | 4 ++-- drivers/gpu/drm/bridge/ptn3460.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
Quoted 5 lines
Applied, thanks. Note that I dropped the part about adding the GPIOLIB dependency because that had been attempted previously to fix this, but it causes recursive dependencies on PowerPC (
ppc64_defconfig). I don't know of a way to untangle those (I tried and failed miserably), so I think adding the include is really as good as it'll get.
Thanks!
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
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html