[coreboot] Drivers vs. Objects

Myles Watson mylesgw at gmail.com
Wed Sep 23 20:46:08 CEST 2009


On Wed, Sep 23, 2009 at 12:42 PM, Peter Stuge <peter at stuge.se> wrote:

> Myles Watson wrote:
> > > > Should I2C devices use objects, since you can't scan for them?
>
> > Making it a driver seems easier to enforce/explain since it provides an
> > *_ops struct.
>
> On the other hand a phony ops struct is bad in so many ways. Less is
> more, no?
>
My impression was that the ops struct works fine, but you can't scan for it
because I2C is missing the equivalent of PCI vendor/device IDs.  In what way
is the ops struct phony?

Thanks,
Myles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090923/29763df7/attachment.html>


More information about the coreboot mailing list