Skip to contentSkip to conversation

rc-core: set mode for winbond-cir

PATCH New David Härdeman 1 participant 1 message Apr 8, 2012

Subsystems (3)
lore
Share & tools
lore

David Härdeman

author maintainer
#0 lore raw

PATCH 1/1 rc-core: set mode for winbond-cir

Setting the correct mode is required by rc-core or scancodes won't be generated (which isn't very user-friendly).

This one-line fix should be suitable for 3.4-rc2.

---
 drivers/media/rc/winbond-cir.c |    1 +
 1 file changed, 1 insertion(+)
drivers/media/rc/winbond-cir.c +1 -0
index b09c5fa..af52658 100644
@@ -1046,6 +1046,7 @@ wbcir_probe(struct pnp_dev *device, const struct pnp_device_id *dev_id)
 		goto exit_unregister_led;
 	}
 
+	data->dev->driver_type = RC_DRIVER_IR_RAW;
 	data->dev->driver_name = WBCIR_NAME;
 	data->dev->input_name = WBCIR_NAME;
 	data->dev->input_phys = "wbcir/cir0";