Messages in this thread | | | Date | Sun, 09 Nov 2008 08:02:37 +1000 | From | Adam Nielsen <> | Subject | Re: hid class and sysfs/hwmon |
| |
> I don't know much about hwmon, but I would guess you should use hwmon_dev > for registering the attributes if you want it under /sys/class/hwmon/... > > Such as: > sysfs_create_group(&odin_psu->hwmon_dev->kobj, &odin_attr_group); > > No?
Oh, that worked! All the other hwmon drivers seem to have it the other way around, i.e. you attach sysfs to your original bus/class device kobj instead of the hwmon kobj.
Hopefully doing it this way won't have any side effects...
Thanks for your help Jiri!
Cheers, Adam.
| |