On Tue, 3 Jul 2007, Segher Boessenkool wrote:

> Just use "compatible" exactly the way it is meant to be
> used and your life will be so much simpler.  And don't
> even think about using a very generic property like "model"
> for a purpose totally different from its intended purpose.

AFAIU, the only way currently to attach an i2c device to a driver is to 
match against driver's name. Let's take the rtc-rs5c372.c example. It 
services rs5c372a, rs5c372b, rv5c386, rv5c387a. And it registers itself 
with the name "rtc-rs5c372". We want to just specify in our dts, e.g., 
'compatible = "rs5c372b";', right? And ask the i2c layer to find a 
suitable driver for us. Which means a pretty big change to i2c core. Is 
this what you think is the proper solution? I could try to think about it 
/ discuss on i2c and eventually cook up a patch, just want to make sure I 
understand you right.

Thanks
Guennadi
---
Guennadi Liakhovetski
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to