Re: [PATCH v2] i2c: core: make it possible to match a pure device tree driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 12, 2013 at 3:20 PM, Grant Likely <grant.likely@xxxxxxxxxx> wrote:
> On Fri, 7 Jun 2013 23:32:42 +0200, Wolfram Sang <wsa@xxxxxxxxxxxxx> wrote:

>> I guess your solution is the least intrusive one. Still, it could happen
>> that of_match_table is scanned three times (by driver core, i2c layer,
>> and i2c driver) which is IMO an indication to look for a more elegant
>> solution tp find out what really matched?
>
> It's what we do on platform_devices. It really isn't an expensive
> operation so I haven't pushed anyone to go optimize it.

I tried to think of something and it ended up with ideas like
decorating the device tree representation and it was just ...
ouch.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux