Re: Stuck creating sysfs hooks for a driver..

From: Greg KH
Date: Wed Feb 15 2006 - 17:10:51 EST


On Wed, Feb 15, 2006 at 01:24:28PM +0530, Kaiwan N Billimoria wrote:
> Hello All,
>
> I am in the process of porting a 2.4 temperature sensor device driver (the
> National Semiconductor LM70CILD-3 temperature sensor eval board) to the 2.6
> Linux kernel (specifically to v 2.6.15.3 <http://2.6.15.3>), with the
> intention of submitting it for inclusion. All ok, except this: am stuck on
> inserting an entry in /sys instead of /proc for the
> driver (as that is suggested as the new "correct" interface to userspace).

Have you read Documentation/hwmon/sysfs-interface? I think that,
combined with using the hwmon class code is what you want to use here.

Hope this helps,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/