[lkml]   [2008]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: 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!


     \ /
      Last update: 2008-11-08 23:05    [W:0.022 / U:0.616 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site