Skip to contentSkip to conversation

hid: cp2112: select GPIOLIB_IRQCHIP instead of depending on it

PATCH Applied Bartosz Golaszewski 3 participants 3 messages Mar 12, 2017 – Mar 21, 2017 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hid: cp2112: select GPIOLIB_IRQCHIP instead of depending on it

GPIOLIB_IRQCHIP is not visible to user, so we can't depend on it.

Depend on GPIOLIB but select GPIOLIB_IRQCHIP.

---
 drivers/hid/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/hid/Kconfig +2 -1
index 1aeb80e..00e2809 100644
@@ -214,7 +214,8 @@ config HID_CMEDIA
 
 config HID_CP2112
 	tristate "Silicon Labs CP2112 HID USB-to-SMBus Bridge support"
-	depends on USB_HID && I2C && GPIOLIB && GPIOLIB_IRQCHIP
+	depends on USB_HID && I2C && GPIOLIB
+	select GPIOLIB_IRQCHIP
 	---help---
 	Support for Silicon Labs CP2112 HID USB to SMBus Master Bridge.
 	This is a HID device driver which registers as an i2c adapter
Signature · 1 line
2.9.3
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Bartosz Golaszewski

GPIOLIB_IRQCHIP is not visible to user, so we can't depend on it.

Depend on GPIOLIB but select GPIOLIB_IRQCHIP.

---

Makes sense. Good catch

Quoted 20 lines
 drivers/hid/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/hid/Kconfig +2 -1
index 1aeb80e..00e2809 100644
@@ -214,7 +214,8 @@ config HID_CMEDIA
 
 config HID_CP2112
 	tristate "Silicon Labs CP2112 HID USB-to-SMBus Bridge support"
-	depends on USB_HID && I2C && GPIOLIB && GPIOLIB_IRQCHIP
+	depends on USB_HID && I2C && GPIOLIB
+	select GPIOLIB_IRQCHIP
 	---help---
 	Support for Silicon Labs CP2112 HID USB to SMBus Master Bridge.
 	This is a HID device driver which registers as an i2c adapter
Signature · 1 line
2.9.3
maintainer Applied
#2 lore raw
In reply to Bartosz Golaszewski
Quoted 14 lines · Bartosz Golaszewski

GPIOLIB_IRQCHIP is not visible to user, so we can't depend on it.

Depend on GPIOLIB but select GPIOLIB_IRQCHIP.

---
 drivers/hid/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/hid/Kconfig +0 -0
index 1aeb80e..00e2809 100644

drivers/hid/Kconfig config HID_CMEDIA · line 221

Quoted 9 lines
drivers/hid/Kconfig +2 -1
@@ -214,7 +214,8 @@ config HID_CMEDIA
 
 config HID_CP2112
 	tristate "Silicon Labs CP2112 HID USB-to-SMBus Bridge support"
-	depends on USB_HID && I2C && GPIOLIB && GPIOLIB_IRQCHIP
+	depends on USB_HID && I2C && GPIOLIB
+	select GPIOLIB_IRQCHIP
 	---help---
 	Support for Silicon Labs CP2112 HID USB to SMBus Master Bridge.
 	This is a HID device driver which registers as an i2c adapter

Applied, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs