- New upstream release 3.0.3

- Add a patch to support drivers with an ACPI "bus" (new Asus atk0110 drv)
This commit is contained in:
Hans de Goede 2009-01-02 08:24:07 +00:00
parent 674bf25597
commit cb86577da6
4 changed files with 74 additions and 3 deletions

View File

@ -1 +1 @@
lm_sensors-3.0.2.tar.bz2 lm_sensors-3.0.3.tar.bz2

View File

@ -0,0 +1,64 @@
Index: lib/access.c
===================================================================
--- lib/access.c (revision 5577)
+++ lib/access.c (working copy)
@@ -349,6 +349,8 @@
return "SPI adapter";
case SENSORS_BUS_TYPE_VIRTUAL:
return "Virtual device";
+ case SENSORS_BUS_TYPE_ACPI:
+ return "ACPI interface";
}
/* bus types with several instances */
Index: lib/sensors.h
===================================================================
--- lib/sensors.h (revision 5577)
+++ lib/sensors.h (working copy)
@@ -42,6 +42,7 @@
#define SENSORS_BUS_TYPE_PCI 2
#define SENSORS_BUS_TYPE_SPI 3
#define SENSORS_BUS_TYPE_VIRTUAL 4
+#define SENSORS_BUS_TYPE_ACPI 5
#define SENSORS_BUS_NR_ANY (-1)
#define SENSORS_BUS_NR_IGNORE (-2)
Index: lib/sysfs.c
===================================================================
--- lib/sysfs.c (revision 5577)
+++ lib/sysfs.c (working copy)
@@ -596,6 +596,11 @@
entry.chip.addr = 0;
entry.chip.bus.type = SENSORS_BUS_TYPE_ISA;
entry.chip.bus.nr = 0;
+ } else if (subsys && !strcmp(subsys, "acpi")) {
+ entry.chip.bus.type = SENSORS_BUS_TYPE_ACPI;
+ /* For now we assume that acpi devices are unique */
+ entry.chip.bus.nr = 0;
+ entry.chip.addr = 0;
} else {
/* Ignore unknown device */
err = 0;
Index: lib/data.c
===================================================================
--- lib/data.c (revision 5577)
+++ lib/data.c (working copy)
@@ -111,6 +111,8 @@
res->bus.type = SENSORS_BUS_TYPE_SPI;
else if (!strncmp(name, "virtual", dash - name))
res->bus.type = SENSORS_BUS_TYPE_VIRTUAL;
+ else if (!strncmp(name, "acpi", dash - name))
+ res->bus.type = SENSORS_BUS_TYPE_ACPI;
else
goto ERROR;
name = dash + 1;
@@ -174,6 +176,9 @@
case SENSORS_BUS_TYPE_VIRTUAL:
return snprintf(str, size, "%s-virtual-%x", chip->prefix,
chip->addr);
+ case SENSORS_BUS_TYPE_ACPI:
+ return snprintf(str, size, "%s-acpi-%x", chip->prefix,
+ chip->addr);
}
return -SENSORS_ERR_CHIP_NAME;

View File

@ -1,5 +1,5 @@
Name: lm_sensors Name: lm_sensors
Version: 3.0.2 Version: 3.0.3
Release: 1%{?dist} Release: 1%{?dist}
URL: http://www.lm-sensors.org/ URL: http://www.lm-sensors.org/
Source: http://dl.lm-sensors.org/lm-sensors/releases/%{name}-%{version}.tar.bz2 Source: http://dl.lm-sensors.org/lm-sensors/releases/%{name}-%{version}.tar.bz2
@ -7,6 +7,8 @@ Source1: lm_sensors.sysconfig
# these 2 were taken from PLD-linux, Thanks! # these 2 were taken from PLD-linux, Thanks!
Source2: sensord.sysconfig Source2: sensord.sysconfig
Source3: sensord.init Source3: sensord.init
# submitted to upstream mailinglist
Patch0: lm_sensors-3.0.3-acpi-bus.patch
Summary: Hardware monitoring tools Summary: Hardware monitoring tools
Group: Applications/System Group: Applications/System
License: GPLv2+ License: GPLv2+
@ -48,6 +50,7 @@ database, and warns of sensor alarms.
%prep %prep
%setup -q %setup -q
%patch0 -p0
mv prog/init/README prog/init/README.initscripts mv prog/init/README prog/init/README.initscripts
chmod -x prog/init/fancontrol.init chmod -x prog/init/fancontrol.init
@ -161,6 +164,10 @@ fi
%changelog %changelog
* Thu Jan 1 2009 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.3-1
- New upstream release 3.0.3
- Add a patch to support drivers with an ACPI "bus" (new Asus atk0110 drv)
* Tue Jul 1 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.2-1 * Tue Jul 1 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.2-1
- New upstream release 3.0.2 - New upstream release 3.0.2
- This release contains various important fixes to sensors-detect, which made - This release contains various important fixes to sensors-detect, which made

View File

@ -1 +1 @@
5b210ba9cc01f00161c438fd618484e5 lm_sensors-3.0.2.tar.bz2 e88b236228ac2a50821217015b8fd0fa lm_sensors-3.0.3.tar.bz2