[RFC PATCH 2.6.12-rc3] dynamic driver sysfs callbacks and RFC on bmcsensor rewrite

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

 



> My question is, please show me how you propagate this out to the driver
> core code, so that the drivers that use the DEVICE_ATTRIBUTE() stuff can
> take advantage of this.
> 
> thanks,
> 
> greg k-h
> 

Well bmcsensors (before this patch) was creating device attributes
like the other chip drivers, just not explicitly using the
DEVICE_ATTRIBUTE macro, however I can easily modify one of the other
sensor chip drivers to show you how they might take advantage of this
if that what you are looking for? I'll probably have to do it tonight
after I get home though :-).

I was thinking of modifying the DEVICE_ATTRIBUTE macro to set the void
* pointer too, but decided against it for the moment...

Yani



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

  Powered by Linux