From patchwork Tue Apr 5 10:07:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?RGF2aWQgSMODwqRyZGVtYW4=?= X-Patchwork-Id: 686421 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p35A84KO003063 for ; Tue, 5 Apr 2011 10:08:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752596Ab1DEKIB (ORCPT ); Tue, 5 Apr 2011 06:08:01 -0400 Received: from 1-1-12-13a.han.sth.bostream.se ([82.182.30.168]:57675 "EHLO palpatine.hardeman.nu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751883Ab1DEKIA (ORCPT ); Tue, 5 Apr 2011 06:08:00 -0400 Received: from felix.hardeman.nu (unknown [46.115.20.116]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by palpatine.hardeman.nu (Postfix) with ESMTPSA id 00750C74; Tue, 5 Apr 2011 12:07:58 +0200 (CEST) Received: by felix.hardeman.nu (Postfix, from userid 1000) id BC64A4011A; Tue, 5 Apr 2011 12:07:27 +0200 (CEST) Subject: [PATCH] rc-core: set mode and default keymap for winbond-cir To: linux-media@vger.kernel.org From: David =?utf-8?b?SMOkcmRlbWFu?= Cc: mchehab@redhat.com, skandalfo@gmail.com Date: Tue, 05 Apr 2011 12:07:27 +0200 Message-ID: <20110405100727.5054.61603.stgit@felix.hardeman.nu> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 05 Apr 2011 10:08:04 +0000 (UTC) Not having the correct mode and a default keymap is not very user-friendly (and rc-core won't allow it). Signed-off-by: David Härdeman --- drivers/media/rc/winbond-cir.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) -- 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 diff --git a/drivers/media/rc/winbond-cir.c b/drivers/media/rc/winbond-cir.c index 16f4178..b0a5fdc 100644 --- a/drivers/media/rc/winbond-cir.c +++ b/drivers/media/rc/winbond-cir.c @@ -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;