HID: thingm: factor out duplicated code to thingm_init_led
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 17 Apr 2016 20:46:59 +0000 (22:46 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 18 Apr 2016 11:01:38 +0000 (13:01 +0200)
commit91540ccc9c4554c8bbb8b8a1be0b255a378b6475
tree948908cf1400610464cfd5b2a7aafe3c87605707
parent1c74a7f812b135d3df41d7c3671b647aed6467bf
HID: thingm: factor out duplicated code to thingm_init_led

Simplify thingm_init_rgb by factoring out duplicated code
to thingm_init_led.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-thingm.c