Skip to contentSkip to conversation

HID: remove ThingM blink(1) driver

PATCH Applied Heiner Kallweit 3 participants 6 messages Jun 21, 2016 – Jun 22, 2016 HID

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 HID: remove ThingM blink(1) driver

Now that support for ThingM blink(1) was merged into the hid-led driver the dedicated driver for this device can be removed.

---
 drivers/hid/Kconfig      |  10 --
 drivers/hid/Makefile     |   1 -
 drivers/hid/hid-thingm.c | 259 -----------------------------------------------
 3 files changed, 270 deletions(-)
 delete mode 100644 drivers/hid/hid-thingm.c
drivers/hid/Kconfig +0 -10
index ab22090..6b08a3b 100644
@@ -828,16 +828,6 @@ config HID_TOPSEED
 	Say Y if you have a TopSeed Cyberlink or BTC Emprex or Conceptronic
 	CLLRCMCE remote control.
 
-config HID_THINGM
-	tristate "ThingM blink(1) USB RGB LED"
-	depends on HID
-	depends on LEDS_CLASS
-	---help---
-	Support for the ThingM blink(1) USB RGB LED. This driver registers a
-	Linux LED class instance, plus additional sysfs attributes to control
-	RGB colors, fade time and playing. The device is exposed through hidraw
-	to access other functions.
-
 config HID_THRUSTMASTER
 	tristate "ThrustMaster devices support"
 	depends on HID
drivers/hid/Makefile +0 -1
index 85580ec..fc4b2aa 100644
@@ -91,7 +91,6 @@ obj-$(CONFIG_HID_SPEEDLINK)	+= hid-speedlink.o
 obj-$(CONFIG_HID_STEELSERIES)	+= hid-steelseries.o
 obj-$(CONFIG_HID_SUNPLUS)	+= hid-sunplus.o
 obj-$(CONFIG_HID_GREENASIA)	+= hid-gaff.o
-obj-$(CONFIG_HID_THINGM)	+= hid-thingm.o
 obj-$(CONFIG_HID_THRUSTMASTER)	+= hid-tmff.o
 obj-$(CONFIG_HID_TIVO)		+= hid-tivo.o
 obj-$(CONFIG_HID_TOPSEED)	+= hid-topseed.o
drivers/hid/hid-thingm.c deleted +0 -259

259 lines not on this page · raw message

Signature · 1 line
2.9.0
maintainer
#1 lore raw
Quoted 16 lines · Heiner Kallweit

Now that support for ThingM blink(1) was merged into the hid-led driver the dedicated driver for this device can be removed.

---
 drivers/hid/Kconfig      |  10 --
 drivers/hid/Makefile     |   1 -
 drivers/hid/hid-thingm.c | 259 -----------------------------------------------
 3 files changed, 270 deletions(-)
 delete mode 100644 drivers/hid/hid-thingm.c
drivers/hid/Kconfig +0 -0
index ab22090..6b08a3b 100644

drivers/hid/Kconfig config HID_TOPSEED · line 831

Quoted 4 lines
drivers/hid/Kconfig +0 -1
@@ -828,16 +828,6 @@ config HID_TOPSEED
 	Say Y if you have a TopSeed Cyberlink or BTC Emprex or Conceptronic
 	CLLRCMCE remote control.
 
-config HID_THINGM

Overall the patchset looks good to me. I'd suggest we keep CONFIG_HID_THINGM as a stub though, that'd just select CONFIG_HID_LED, so that we don't cause kernel config regressions for users who had CONFIG_HID_THINGM already turned on.

Also adding Vivien Didelot to CC, as the author of the original driver. Vivien, the full set can be found in linux-input archives (
http://marc.info/?l=linux-input&r=1&b=201606&w=2 )

Signature · 2 lines
Jiri Kosina
SUSE Labs
#2 lore raw

Hi,

Quoted 28 lines · Jiri Kosina
Quoted 16 lines · Heiner Kallweit

Now that support for ThingM blink(1) was merged into the hid-led driver the dedicated driver for this device can be removed.

---
 drivers/hid/Kconfig      |  10 --
 drivers/hid/Makefile     |   1 -
 drivers/hid/hid-thingm.c | 259 -----------------------------------------------
 3 files changed, 270 deletions(-)
 delete mode 100644 drivers/hid/hid-thingm.c
drivers/hid/Kconfig +0 -0
index ab22090..6b08a3b 100644

drivers/hid/Kconfig config HID_TOPSEED · line 831

Quoted 4 lines
drivers/hid/Kconfig +0 -1
@@ -828,16 +828,6 @@ config HID_TOPSEED
 	Say Y if you have a TopSeed Cyberlink or BTC Emprex or Conceptronic
 	CLLRCMCE remote control.
 
-config HID_THINGM

Overall the patchset looks good to me. I'd suggest we keep CONFIG_HID_THINGM as a stub though, that'd just select CONFIG_HID_LED, so that we don't cause kernel config regressions for users who had CONFIG_HID_THINGM already turned on.

Quoted 3 lines

Also adding Vivien Didelot to CC, as the author of the original driver. Vivien, the full set can be found in linux-input archives (
http://marc.info/?l=linux-input&r=1&b=201606&w=2 )

Thanks a lot for the follow-up Jiri.

If you guys decide to remove hid-thingm.c, you need to update the MAINTAINERS entry, checkpatch.pl should have warned about that.

I can hardly test the patchset now. Heiner, can you confirm me that with your patchset, we will still see 3 led_classdev in sysfs for the blink(1) mk1 (which has one RGB chip) and 6 for mk2 (which has 2 chips)?

Thanks,

Vivien

#3 lore raw

Am 22.06.2016 um 17:42 schrieb Vivien Didelot:

Quoted 32 lines

Hi,

Quoted 28 lines · Jiri Kosina
Quoted 16 lines · Heiner Kallweit

Now that support for ThingM blink(1) was merged into the hid-led driver the dedicated driver for this device can be removed.

---
 drivers/hid/Kconfig      |  10 --
 drivers/hid/Makefile     |   1 -
 drivers/hid/hid-thingm.c | 259 -----------------------------------------------
 3 files changed, 270 deletions(-)
 delete mode 100644 drivers/hid/hid-thingm.c
drivers/hid/Kconfig +0 -0
index ab22090..6b08a3b 100644

drivers/hid/Kconfig config HID_TOPSEED · line 831

Quoted 4 lines
drivers/hid/Kconfig +0 -1
@@ -828,16 +828,6 @@ config HID_TOPSEED
 	Say Y if you have a TopSeed Cyberlink or BTC Emprex or Conceptronic
 	CLLRCMCE remote control.
 
-config HID_THINGM

Overall the patchset looks good to me. I'd suggest we keep CONFIG_HID_THINGM as a stub though, that'd just select CONFIG_HID_LED, so that we don't cause kernel config regressions for users who had CONFIG_HID_THINGM already turned on.

Quoted 9 lines
Quoted 3 lines

Also adding Vivien Didelot to CC, as the author of the original driver. Vivien, the full set can be found in linux-input archives (
http://marc.info/?l=linux-input&r=1&b=201606&w=2 )

Thanks a lot for the follow-up Jiri.

If you guys decide to remove hid-thingm.c, you need to update the MAINTAINERS entry, checkpatch.pl should have warned about that.

Right, thanks for the hint.

Quoted 4 lines

I can hardly test the patchset now. Heiner, can you confirm me that with your patchset, we will still see 3 led_classdev in sysfs for the blink(1) mk1 (which has one RGB chip) and 6 for mk2 (which has 2 chips)?

Yes, this will still be the case.

Regards, Heiner

Quoted 4 lines

Thanks,

Vivien

#4 lore raw

Hi Heiner,

Quoted 9 lines · Heiner Kallweit
Quoted 9 lines
Quoted 3 lines

Also adding Vivien Didelot to CC, as the author of the original driver. Vivien, the full set can be found in linux-input archives (
http://marc.info/?l=linux-input&r=1&b=201606&w=2 )

Thanks a lot for the follow-up Jiri.

If you guys decide to remove hid-thingm.c, you need to update the MAINTAINERS entry, checkpatch.pl should have warned about that.

Quoted 7 lines

Right, thanks for the hint.

Quoted 4 lines

I can hardly test the patchset now. Heiner, can you confirm me that with your patchset, we will still see 3 led_classdev in sysfs for the blink(1) mk1 (which has one RGB chip) and 6 for mk2 (which has 2 chips)?

Yes, this will still be the case.

Looks good to me then! Please Cc' me in the v2 so I can hack the change.

Thanks,

Vivien

#5 lore raw
In reply to Jiri Kosina

Am 22.06.2016 um 15:25 schrieb Jiri Kosina:

Quoted 21 lines · Heiner Kallweit
Quoted 20 lines

Now that support for ThingM blink(1) was merged into the hid-led driver the dedicated driver for this device can be removed.

---
 drivers/hid/Kconfig      |  10 --
 drivers/hid/Makefile     |   1 -
 drivers/hid/hid-thingm.c | 259 -----------------------------------------------
 3 files changed, 270 deletions(-)
 delete mode 100644 drivers/hid/hid-thingm.c
drivers/hid/Kconfig +0 -0
index ab22090..6b08a3b 100644
@@ -828,16 +828,6 @@ config HID_TOPSEED
 	Say Y if you have a TopSeed Cyberlink or BTC Emprex or Conceptronic
 	CLLRCMCE remote control.
 
Quoted 7 lines

drivers/hid/Kconfig config HID_TOPSEED · line 831

Quoted 1 line
drivers/hid/Kconfig +0 -1
-config HID_THINGM

Overall the patchset looks good to me. I'd suggest we keep CONFIG_HID_THINGM as a stub though, that'd just select CONFIG_HID_LED, so that we don't cause kernel config regressions for users who had CONFIG_HID_THINGM already turned on.

OK
I'll add this and provide a v2 of the patch removing the old thingm driver.

Quoted 4 lines

Also adding Vivien Didelot to CC, as the author of the original driver. Vivien, the full set can be found in linux-input archives (
http://marc.info/?l=linux-input&r=1&b=201606&w=2 )

Sorry, forgot that.