All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David Härdeman" <david@hardeman.nu>
To: linux-input@vger.kernel.org
Subject: [PATCH] Add EV_IR bit
Date: Thu, 13 Aug 2009 00:33:27 +0200	[thread overview]
Message-ID: <20090812223327.GA6827@hardeman.nu> (raw)

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 <david@hardeman.nu>


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)
  
--
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

             reply	other threads:[~2009-08-12 22:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-12 22:33 David Härdeman [this message]
2009-08-13  6:49 ` [PATCH] Add EV_IR bit Dmitry Torokhov
2009-08-13  8:32   ` David Härdeman
2009-08-13 15:57     ` Dmitry Torokhov
2009-08-13 20:21       ` David Härdeman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090812223327.GA6827@hardeman.nu \
    --to=david@hardeman.nu \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.