From patchwork Wed Aug 12 22:33:27 2009 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: 40955 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7CMXWvR018478 for ; Wed, 12 Aug 2009 22:33:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751896AbZHLWda (ORCPT ); Wed, 12 Aug 2009 18:33:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752008AbZHLWd3 (ORCPT ); Wed, 12 Aug 2009 18:33:29 -0400 Received: from 1-1-12-13a.han.sth.bostream.se ([82.182.30.168]:44047 "EHLO palpatine.hardeman.nu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751896AbZHLWd3 (ORCPT ); Wed, 12 Aug 2009 18:33:29 -0400 Received: from basil.haag.hardeman.nu (host-88-217-225-61.customer.m-online.net [88.217.225.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "basil.haag.hardeman.nu", Issuer "hardeman.nu CA" (verified OK)) by palpatine.hardeman.nu (Postfix) with ESMTPSA id E90ACE51 for ; Thu, 13 Aug 2009 00:33:29 +0200 (CEST) Received: by basil.haag.hardeman.nu (Postfix, from userid 1000) id 8E574A300EB; Thu, 13 Aug 2009 00:33:27 +0200 (CEST) Date: Thu, 13 Aug 2009 00:33:27 +0200 From: David =?iso-8859-1?Q?H=E4rdeman?= To: linux-input@vger.kernel.org Subject: [PATCH] Add EV_IR bit Message-ID: <20090812223327.GA6827@hardeman.nu> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org This patch adds an EV_IR bit to allow input drivers to let userspace know that the hardware is an infrared remote control transceiver. No dev->irbit is defined yet but I plan to add that later (which would be used to indicate whether the hardware supports RX, TX, etc). If the patch is accepted I'll send followup patches adding the appropriate input_set_capability call to the relevant drivers. Signed-off-by: David Härdeman --- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6/drivers/input/input.c =================================================================== --- linux-2.6.orig/drivers/input/input.c 2009-08-12 19:45:10.000000000 +0200 +++ linux-2.6/drivers/input/input.c 2009-08-12 19:54:56.000000000 +0200 @@ -1375,6 +1375,10 @@ /* do nothing */ break; + case EV_IR: + /* do nothing */ + break; + default: printk(KERN_ERR "input_set_capability: unknown type %u (code %u)\n", Index: linux-2.6/include/linux/input.h =================================================================== --- linux-2.6.orig/include/linux/input.h 2009-08-12 19:56:03.000000000 +0200 +++ linux-2.6/include/linux/input.h 2009-08-12 19:57:53.000000000 +0200 @@ -98,6 +98,7 @@ #define EV_FF 0x15 #define EV_PWR 0x16 #define EV_FF_STATUS 0x17 +#define EV_IR 0x18 #define EV_MAX 0x1f #define EV_CNT (EV_MAX+1)