From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [PATCH 2/2] [media] firedtv: Port it to use rc_core
Date: Mon, 28 May 2012 16:01:32 +0200 [thread overview]
Message-ID: <20120528160132.2041d761@stein> (raw)
In-Reply-To: <1338210875-4620-2-git-send-email-mchehab@redhat.com>
On May 28 Mauro Carvalho Chehab wrote:
> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
> ---
> drivers/media/dvb/firewire/firedtv-rc.c | 152 ++-----------------------------
> drivers/media/dvb/firewire/firedtv.h | 2 +-
> 2 files changed, 11 insertions(+), 143 deletions(-)
Also in drivers/media/dvb/firewire/Kconfig, INPUT needs to be replaced by
RC_CORE, right?
> diff --git a/drivers/media/dvb/firewire/firedtv-rc.c b/drivers/media/dvb/firewire/firedtv-rc.c
> index f82d4a9..3c2c9b3 100644
> --- a/drivers/media/dvb/firewire/firedtv-rc.c
> +++ b/drivers/media/dvb/firewire/firedtv-rc.c
-#include <linux/input.h>
+#include <media/rc-core.h>
[...]
> int fdtv_register_rc(struct firedtv *fdtv, struct device *dev)
> {
> - struct input_dev *idev;
> + struct rc_dev *idev;
> int i, err;
>
> - idev = input_allocate_device();
> + idev = rc_allocate_device();
> if (!idev)
> return -ENOMEM;
>
> fdtv->remote_ctrl_dev = idev;
> idev->name = "FireDTV remote control";
> + idev->phys = "/ir0"; /* FIXME */
Something similar to drivers/media/dvb/dvb-usb/dvb-usb-remote.c::
usb_make_path(d->udev, d->rc_phys, sizeof(d->rc_phys));
strlcat(d->rc_phys, "/ir0", sizeof(d->rc_phys));
should be implemented for this, right?
Also, idev->name should be idev->input_name and idev->phys should be
idev->input_phys.
> --- a/drivers/media/dvb/firewire/firedtv.h
> +++ b/drivers/media/dvb/firewire/firedtv.h
-struct input_dev;
+struct struct rc_dev;
> @@ -91,7 +91,7 @@ struct firedtv {
> wait_queue_head_t avc_wait;
> bool avc_reply_received;
> struct work_struct remote_ctrl_work;
> - struct input_dev *remote_ctrl_dev;
> + struct rc_dev *remote_ctrl_dev;
>
> enum model_type type;
> char subunit;
(Do you want to reroll it or should I resubmit it myself after actually
trying it?)
--
Stefan Richter
-=====-===-- -=-= ===--
http://arcgraph.de/sr/
next prev parent reply other threads:[~2012-05-28 14:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-28 13:14 [PATCH 1/2] [media] Add a keymap for FireDTV board Mauro Carvalho Chehab
2012-05-28 13:14 ` [PATCH 2/2] [media] firedtv: Port it to use rc_core Mauro Carvalho Chehab
2012-05-28 14:01 ` Stefan Richter [this message]
2012-05-28 14:09 ` Mauro Carvalho Chehab
2012-05-28 14:09 ` Mauro Carvalho Chehab
2012-05-28 14:14 ` Stefan Richter
2012-05-28 14:41 ` Mauro Carvalho Chehab
2012-05-28 13:29 ` [PATCH 1/2] [media] Add a keymap for FireDTV board Stefan Richter
2012-05-28 13:32 ` Mauro Carvalho Chehab
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=20120528160132.2041d761@stein \
--to=stefanr@s5r6.in-berlin.de \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
/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