mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Jon Smirl <jonsmirl@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH V4 3/6] Configfs support for IR
Date: Wed, 5 Nov 2008 22:41:17 +0100	[thread overview]
Message-ID: <20081105214117.GB3966@elf.ucw.cz> (raw)
In-Reply-To: <20081105194742.19407.35855.stgit@localhost>

On Wed 2008-11-05 14:47:42, Jon Smirl wrote:
> Now uses configfs to build mappings from remote buttons to key strokes. When ir-core loads it creates /config/remotes. Make a directory for each remote you have; this will cause a new input devices to be created. Inside these directories make a directory for each key on the remote. In the key directory attributes fill in the protocol, device, command, keycode. Since this is configfs all of this can be easily scripted.
> 
> Now when a key is pressed on a remote, the configfs directories are searched for a match on protocol, device, command. If a matches is found, a key stroke corresponding to keycode is created and sent on the input device that was created when the directory for the remote was made.
> 
> The configfs directories are pretty flexible. You can use them to map multiple remotes to the same key stroke, or send a single button push to multiple apps.
> ---
>  drivers/input/ir/Makefile      |    2 
>  drivers/input/ir/ir-configfs.c |  333 ++++++++++++++++++++++++++++++++++++++++
>  drivers/input/ir/ir-core.c     |   15 +-
>  3 files changed, 339 insertions(+), 11 deletions(-)
>  create mode 100644 drivers/input/ir/ir-configfs.c
> 
> diff --git a/drivers/input/ir/Makefile b/drivers/input/ir/Makefile
> index 6acb665..2ccdda3 100644
> --- a/drivers/input/ir/Makefile
> +++ b/drivers/input/ir/Makefile
> @@ -4,5 +4,5 @@
>  # Each configuration option enables a list of files.
>  
>  obj-$(CONFIG_INPUT_IR)		+= ir.o
> -ir-objs := ir-core.o
> +ir-objs := ir-core.o ir-configfs.o
>  
> diff --git a/drivers/input/ir/ir-configfs.c b/drivers/input/ir/ir-configfs.c
> new file mode 100644
> index 0000000..0fec855
> --- /dev/null
> +++ b/drivers/input/ir/ir-configfs.c
> @@ -0,0 +1,333 @@
> +/*
> + * Configfs routines for IR support
> + *
> + *   configfs root
> + *   --remotes
> + *   ----specific remote
> + *   ------keymap
> + *   --------protocol
> + *   --------device
> + *   --------command
> + *   --------keycode
> + *   ------repeat keymaps
> + *   --------....
> + *   ----another remote
> + *   ------more keymaps
> + *   --------....
> + *
> + * Copyright (C) 2008 Jon Smirl <jonsmirl@gmail.com>

GPL?

Maybe those -s should be /s?

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2008-11-05 21:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-05 19:47 [RFC PATCH V4 0/6] In-kernel IR remote control support Jon Smirl
2008-11-05 19:47 ` [RFC PATCH V4 1/6] Minimal changes to the core input system Jon Smirl
2008-11-05 21:38   ` Pavel Machek
2008-11-05 21:51     ` Jon Smirl
2008-11-05 19:47 ` [RFC PATCH V4 2/6] Core IR module Jon Smirl
2008-11-05 19:47 ` [RFC PATCH V4 3/6] Configfs support for IR Jon Smirl
2008-11-05 21:41   ` Pavel Machek [this message]
2008-11-05 21:51     ` Jon Smirl
2008-11-05 19:47 ` [RFC PATCH V4 4/6] GPT driver for in-kernel IR support Jon Smirl
2008-11-05 19:47 ` [RFC PATCH V4 5/6] Example of PowerPC device tree support for GPT based IR Jon Smirl
2008-11-05 19:47 ` [RFC PATCH V4 6/6] Microsoft mceusb2 driver for in-kernel IR subsystem Jon Smirl
2008-11-05 19:59 ` [RFC PATCH V4 0/6] In-kernel IR remote control support J.R. Mauro
2008-11-05 20:07   ` Jon Smirl
2008-11-05 20:15     ` J.R. Mauro
2008-11-05 20:47       ` Jon Smirl

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=20081105214117.GB3966@elf.ucw.cz \
    --to=pavel@suse.cz \
    --cc=jonsmirl@gmail.com \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®