I2C_CLASS_HWMON vs. I2C_CLASS_ALL for i2c adapter driver

Mark A. Greer mgreer at mvista.com
Tue Mar 29 22:21:29 CEST 2005


Chris Elston pointed out an oversight that I made in 
drivers/i2c/busses/i2c-mv64xxx.c.  I didn't set the adapter owner and 
class fields.  (The ctlr is a basic i2c ctlr residing on the 

My question is, should I set the class field to I2C_CLASS_HWMON or 
I2C_CLASS_ALL?  Theoretically [AFAIK], this ctlr can talk to any type of 
i2c client so I2C_CLASS_ALL seems like the right one to use.  However, 
no other driver uses it which worries me.

I searched the FAQ and googled for previous email threads.  There was a 
discussion around a year ago that touched on it but I couldn't find 
anything definitive.

What is the correct one to use?



More information about the lm-sensors mailing list