]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rc-core: set mode for winbond-cir
authorDavid Härdeman <david@hardeman.nu>
Sun, 8 Apr 2012 09:13:04 +0000 (06:13 -0300)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:13:57 +0000 (13:13 +0100)
commit d9b786955f80fb306471fdb9ea24c6d03af6ca36 upstream.

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.

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/media/rc/winbond-cir.c

index 13f54b51194a02e360e09661fdfc5c50eeacf274..a7e7d6f35cef38cf472ccdcd54ee8d703f2e3f18 100644 (file)
@@ -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";