Thread (24 messages) flat view 24 messages, 4 authors, 2007-12-10

Re: [i2c] [PATCH 0/4] Series to add device tree naming to i2c

From: Jon Smirl <hidden>
Date: 2007-12-10 18:52:51

On 12/10/07, Scott Wood [off-list ref] wrote:
Jon Smirl wrote:
quoted
I can't see an easy way to do this. The basic problem is that the i2c
 drivers are assumed to be cross platform.
It'd be a small binding-specific portion, similar to an of_platform stub
on a generic driver.  It could probably wait until an actual need
arises, though.
quoted
I would need to add a path through the i2c core for getting a void
pointer from the bus to the device But then when the device code gets
this pointer it has no way of knowing what it was.
It'd need to know which binding/name combination it matched against
(similar to how of_platform does it).
quoted
Another way that would work cross platform would be for the module to
 have module parameters for the extra attributes.
Ick.  Module parameters are a PITA, and have to be duplicated with
command line parameters if you want to support non-modular builds.
You don't have to duplicate module parameters in non-modular builds
(you needed to a couple of years ago). Even if the module is linked in
you can still set the parameters from the kernel command line without
doing anything special. Just use module.param = value.
-Scott

-- 
Jon Smirl
jonsmirl@gmail.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help