Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8299d628 authored by Anton Blanchard's avatar Anton Blanchard Committed by Mauro Carvalho Chehab
Browse files

[media] winbond-cir: Initialise timeout, driver_type and allowed_protos



We need to set a timeout so we can go idle on no activity.

Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Acked-by: default avatarDavid Härdeman <david@hardeman.nu>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 57f4422f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1032,6 +1032,8 @@ wbcir_probe(struct pnp_dev *device, const struct pnp_device_id *dev_id)
	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->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",