From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Jean Delvare <khali@linux-fr.org>
Cc: Linux I2C <linux-i2c@vger.kernel.org>,
LMML <linux-media@vger.kernel.org>
Subject: Re: [PATCH 2/2] V4L/DVB: Use custom I2C probing function mechanism
Date: Tue, 06 Apr 2010 02:34:46 -0300 [thread overview]
Message-ID: <4BBAC7F6.5030807@redhat.com> (raw)
In-Reply-To: <20100405230616.443792ac@hyperion.delvare>
Jean Delvare wrote:
> Hi Mauro,
>
> On Mon, 05 Apr 2010 15:26:32 -0300, Mauro Carvalho Chehab wrote:
>> Jean Delvare wrote:
>>> Now that i2c-core offers the possibility to provide custom probing
>>> function for I2C devices, let's make use of it.
>>>
>>> Signed-off-by: Jean Delvare <khali@linux-fr.org>
>>> ---
>>> I wasn't too sure where to put the custom probe function: in each driver,
>>> in the ir-common module or in the v4l2-common module. I went for the
>>> second option as a middle ground, but am ready to discuss it if anyone
>>> objects.
>> Please, don't add new things at ir-common module. It basically contains the
>> decoding functions for RC5 and pulse/distance, plus several IR keymaps. With
>> the IR rework I'm doing, this module will go away, after having all the current
>> IR decoders implemented via ir-raw-input binding.
>>
>> The keymaps were already removed from it, on my experimental tree
>> (http://git.linuxtv.org/mchehab/ir.git), and rc5 decoder is already written
>> (but still needs a few fixes).
>>
>> The new ir-core is creating an abstract way to deal with Remote Controllers,
>> meant to be used not only by IR's, but also for other types of RC, like,
>> bluetooth and USB HID. It will also export a raw event interface, for use
>> with lirc. As this is the core of the RC subsystem, a i2c-specific binding
>> method also doesn't seem to belong there. SO, IMO, the better place is to add
>> it as a static inline function at ir-kbd-i2c.h.
>
> Ever tried to pass the address of an inline function as another
> function's parameter? :)
:) Never tried... maybe gcc would to the hard thing, de-inlining it ;)
Well, we need to put this code somewhere. Where are the other probing codes? Probably
the better is to put them together.
--
Cheers,
Mauro
next prev parent reply other threads:[~2010-04-06 5:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-04 14:14 [PATCH 2/2] V4L/DVB: Use custom I2C probing function mechanism Jean Delvare
2010-04-05 1:54 ` Andy Walls
2010-04-05 8:30 ` Jean Delvare
2010-04-05 18:26 ` Mauro Carvalho Chehab
2010-04-05 21:06 ` Jean Delvare
2010-04-06 5:34 ` Mauro Carvalho Chehab [this message]
2010-04-06 16:25 ` Jean Delvare
2010-04-09 4:09 ` Mauro Carvalho Chehab
2010-04-09 7:12 ` Jean Delvare
-- strict thread matches above, loose matches on Subject: below --
2010-06-08 8:01 Jean Delvare
2010-06-09 15:05 ` Wolfram Sang
2010-06-09 17:39 ` Jean Delvare
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=4BBAC7F6.5030807@redhat.com \
--to=mchehab@redhat.com \
--cc=khali@linux-fr.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-media@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