From: Igor Grinberg <grinberg@compulab.co.il>
To: Timo Kokkonen <timo.t.kokkonen@iki.fi>
Cc: linux-omap@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: [PATCH 1/2] media: rc: Introduce RX51 IR transmitter driver
Date: Thu, 09 Aug 2012 16:20:58 +0300 [thread overview]
Message-ID: <5023B93A.8050707@compulab.co.il> (raw)
In-Reply-To: <1344516086-24615-2-git-send-email-timo.t.kokkonen@iki.fi>
On 08/09/12 15:41, Timo Kokkonen wrote:
> This is the driver for the IR transmitter diode found on the Nokia
> N900 (also known as RX51) device. The driver is mostly the same as
> found in the original 2.6.28 based kernel that comes with the device.
>
> The following modifications have been made compared to the original
> driver version:
>
> - Adopt to the changes that has happen in the kernel during the past
> five years, such as the change in the include paths
>
> - The OMAP DM-timers require much more care nowadays. The timers need
> to be enabled and disabled or otherwise many actions fail. Timers
> must not be freed without first stopping them or otherwise the timer
> cannot be requested again.
>
> The code has been tested with sending IR codes with N900 device
> running Debian userland. The device receiving the codes was Anysee
> DVB-C USB receiver.
>
> Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
> ---
> drivers/media/rc/Kconfig | 10 +
> drivers/media/rc/Makefile | 1 +
> drivers/media/rc/ir-rx51.c | 496 ++++++++++++++++++++++++++++++++++++++++++++
> drivers/media/rc/ir-rx51.h | 10 +
I think the file ir-rx51.h should be placed in include/media instead.
[...]
> 4 files changed, 517 insertions(+), 0 deletions(-)
> create mode 100644 drivers/media/rc/ir-rx51.c
> create mode 100644 drivers/media/rc/ir-rx51.h
[...]
> diff --git a/drivers/media/rc/ir-rx51.h b/drivers/media/rc/ir-rx51.h
> new file mode 100644
> index 0000000..104aa89
> --- /dev/null
> +++ b/drivers/media/rc/ir-rx51.h
> @@ -0,0 +1,10 @@
> +#ifndef _LIRC_RX51_H
> +#define _LIRC_RX51_H
> +
> +struct lirc_rx51_platform_data {
> + int pwm_timer;
> +
> + int(*set_max_mpu_wakeup_lat)(struct device *dev, long t);
> +};
> +
> +#endif
--
Regards,
Igor.
next prev parent reply other threads:[~2012-08-09 13:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-09 12:41 [PATCH 0/2] Add Nokia N900 (RX51) IR diode support Timo Kokkonen
2012-08-09 12:41 ` [PATCH 1/2] media: rc: Introduce RX51 IR transmitter driver Timo Kokkonen
2012-08-09 13:20 ` Igor Grinberg [this message]
2012-08-09 12:41 ` [PATCH 2/2] ARM: mach-omap2: board-rx51-peripherals: Add lirc-rx51 data Timo Kokkonen
2012-08-09 13:19 ` Igor Grinberg
2012-08-09 14:09 ` Timo Kokkonen
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=5023B93A.8050707@compulab.co.il \
--to=grinberg@compulab.co.il \
--cc=linux-media@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=timo.t.kokkonen@iki.fi \
/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;
as well as URLs for NNTP newsgroup(s).