Re: [PATCH 2.6.12-rc5-mm1 3/3] i2c: modify sensors drivers to use sysfs class 'hwmon'

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

 



On Fri, Jun 03, 2005 at 02:59:33PM -0400, Yani Ioannou wrote:
> > > I just come back to my previous line of thought that we really should
> > > be using class_device_attributes for hwmon class sensor attributes
> > > rather than assuming that every hwmon class_device has an associated
> > > device...
> > 
> > No, every hwmon class_device should have a struct device associated with
> > it.  If not, it needs to be fixed :)
> 
> Well even assuming that every hwmon class_device does have a device
> associated with it, it still makes sense to me to be using
> class_device_attributes.

It does, over time.  I can see the sensor files moving to be class
attributes instead of device attributes.  But we need to do that so we
don't break all of the userspace code at the same time :)

thanks,

greg k-h




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

  Powered by Linux