[lm-sensors] [PATCH] Add virtual hwmon device support to libsensors
Jean Delvare
khali at linux-fr.org
Mon Apr 14 17:36:24 CEST 2008
On Wed, 9 Apr 2008 15:23:30 +0200, Jean Delvare wrote:
> Hi all,
>
> As Zhang Rui is adding hwmon support to the generic thermal zone driver
> [1], we need to add support for virtual hwmon devices to libsensors.
> The hwmon devices created by Rui's code do not have any parent device,
> they are purely virtual, and libsensors doesn't expect this. There's a
> bug reported in Red Hat's bugzilla already [2].
>
> [1] http://lists.lm-sensors.org/pipermail/lm-sensors/2008-April/022791.html
> [2] https://bugzilla.redhat.com/show_bug.cgi?id=437637
>
> Here's a proposed implementation for virtual devices support:
>
> ---
> doc/libsensors-API.txt | 14 ++++++++++++++
> lib/access.c | 2 ++
> lib/data.c | 5 +++++
> lib/sensors.h | 3 ++-
> lib/sysfs.c | 32 +++++++++++++++++++++++---------
> 5 files changed, 46 insertions(+), 10 deletions(-)
> (...)
This patch is now applied to SVN.
--
Jean Delvare
More information about the lm-sensors
mailing list