Skip to contentSkip to conversation

rc-core: set mode and default keymap for winbond-cir

PATCH New David Härdeman 1 participant 1 message Apr 5, 2011

Subsystems (3)
lore
Share & tools
lore

David Härdeman

author maintainer
#0 lore raw

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

Not having the correct mode and a default keymap is not very user-friendly (and rc-core won't allow it).

---
 drivers/media/rc/winbond-cir.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/media/rc/winbond-cir.c +2 -0
index 16f4178..b0a5fdc 100644
@@ -790,6 +790,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";
@@ -797,6 +798,7 @@ wbcir_probe(struct pnp_dev *device, const struct pnp_device_id *dev_id)
 	data->dev->input_id.vendor = PCI_VENDOR_ID_WINBOND;
 	data->dev->input_id.product = WBCIR_ID_FAMILY;
 	data->dev->input_id.version = WBCIR_ID_CHIP;
+	data->dev->map_name = RC_MAP_RC6_MCE;
 	data->dev->priv = data;
 	data->dev->dev.parent = &device->dev;