On 6/28/07, Uwe Hermann uwe@hermann-uwe.de wrote:
Is this done because every board needs this function but this one doesn't use it?
The LX code as written requires this function. It's not a great situation but a read of the code reveals it's going to be a long bit of work to resolve that.
+int smbus_read_byte(unsigned device, unsigned address)
Yeah, will change. I'll need to change it everywhere though. You'll see a patch in a few minutes.
We want an ARRAY_SIZE macro in some header file for this, it's even recommnended by the coding guidelines.
There ought to be nelem or some such, but I did not see it.
ron