From patchwork Mon Jul 2 01:58:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Blanchard X-Patchwork-Id: 1145361 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id BEDB240AEE for ; Mon, 2 Jul 2012 01:58:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754272Ab2GBB6w (ORCPT ); Sun, 1 Jul 2012 21:58:52 -0400 Received: from ozlabs.org ([203.10.76.45]:51911 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752266Ab2GBB6v (ORCPT ); Sun, 1 Jul 2012 21:58:51 -0400 Received: from kryten (ppp121-45-170-72.lns20.syd6.internode.on.net [121.45.170.72]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPSA id 0965C2C01CA; Mon, 2 Jul 2012 11:58:50 +1000 (EST) Date: Mon, 2 Jul 2012 11:58:52 +1000 From: Anton Blanchard To: mchehab@infradead.org, david@hardeman.nu Cc: linux-media@vger.kernel.org Subject: [PATCH 2/3] [media] winbond-cir: Initialise timeout, driver_type and allowed_protos Message-ID: <20120702115852.6c0fe919@kryten> In-Reply-To: <20120702115800.1275f944@kryten> References: <20120702115800.1275f944@kryten> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org We need to set a timeout so we can go idle on no activity. We weren't setting driver_type and allowed_protos, so fix that up too. Signed-off-by: Anton Blanchard --- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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",