[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <49160C7D.7020507@shikadi.net>
Date: Sun, 09 Nov 2008 08:02:37 +1000
From: Adam Nielsen <a.nielsen@...kadi.net>
To: Jiri Slaby <jirislaby@...il.com>
CC: LKML Mailinglist <linux-kernel@...r.kernel.org>
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists