On Mon, Jul 02, 2012 at 11:58:52AM +1000, Anton Blanchard wrote:
>
>We need to set a timeout so we can go idle on no activity.

This change Acked-by: David Härdeman <[email protected]>

>We weren't setting driver_type and allowed_protos, so fix that
>up too.

driver_type is set in the upstream tree.

allowed_protos isn't used for RC_DRIVER_IR_RAW type drivers (IIRC).

>
>Signed-off-by: Anton Blanchard <[email protected]>
>---
>
>Index: linux/drivers/media/rc/winbond-cir.c
>===================================================================
>--- linux.orig/drivers/media/rc/winbond-cir.c  2012-06-18 10:32:54.436717423 
>+1000
>+++ linux/drivers/media/rc/winbond-cir.c       2012-06-18 10:33:00.192754858 
>+1000
>@@ -1032,6 +1032,9 @@ wbcir_probe(struct pnp_dev *device, cons
>       data->dev->tx_ir = wbcir_tx;
>       data->dev->priv = data;
>       data->dev->dev.parent = &device->dev;
>+      data->dev->timeout = MS_TO_NS(100);
>+      data->dev->driver_type = RC_DRIVER_IR_RAW;
>+      data->dev->allowed_protos = RC_TYPE_ALL;
> 
>       if (!request_region(data->wbase, WAKEUP_IOMEM_LEN, DRVNAME)) {
>               dev_err(dev, "Region 0x%lx-0x%lx already in use!\n",
>

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to