[RFC][2.6] Additional i2c adapter flags for i2c client isolation

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

 



> > How would we export the value though? Numerical, with user-space
> > headers to be included by user-space applications? Or converted to
> > some explicit text strings so that no headers are needed?
> 
> A text string would be simple enough to use.

I'm not sure.  What about a chip driver that would belong to more than
one class?  What about the eeprom driver which will belong to all
classes?  With a numeric value, a simple binary operation handles all
the cases.  With text strings we would end having to parse a possibly
multi-valued string, and do string comparisons, with at least one
exception to handle.  This is likely to require much more resources,
don't you think?

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux