10 Oct, 2007
40 commits
-
Signed-off-by: Mark M. Hoffman
-
Fix a bug in the code examples, make them comply with CodingStyle,
and indent them for a better redability.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
Here is a patch adding some text to the sysfs interface documentation on how
settings written to sysfs attributes should be handled, focussing mainly on
error handling. This version incorperates Jean's latest comments.Signed-off-by: Hans de Goede
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
type_name was used before being set. See why I don't like play-it-safe
variable initializations: they prevent the compiler from warning you
about such mistakes. So fix that as well.Signed-off-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
Signed-off-by: Jean Delvare
Acked-by: Krzysztof Helt
Signed-off-by: Mark M. Hoffman -
Add individual alarm files to the lm87 driver. The new libsensors
needs this.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
Missing parentheses in the definition of FAN_FROM_REG cause a division
by zero for a specific register value.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
Add individual alarm files to the lm78 driver, these are needed by
the next version of libsensors.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
Now that we have standard sysfs names to export temperature offset
values, add this feature to the lm90 driver. All supported chips
except the MAX6657, MAX6658 and MAX6659 support it.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
* Drop HWMON from the dependency list of ABITUGURU3 and LM93: this is
now handled at menu level.
* Make the Abit, Asus and FSC chip drivers depend on X86. These are
custom chips which can only be found on their respective manufacturer's
systems, and these manufacturers only do x86 hardware AFAIK.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
This patch converts the driver to individual alarm files
as required by the new lmsensors library.Signed-off-by: Krzysztof Helt
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
This is conversion of the driver to the dynamic sysfs callbacks.
Signed-off-by: Krzysztof Helt
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
This patch make use the interrupt status register instead
of the interrupt status mirror register. Reading of the mirror
register does not clear alarms.Signed-off-by: Krzysztof Helt
Signed-off-by: Mark M. Hoffman -
Add support for the IT8716F and IT8718F fan4 and fan5. The late
revisions of the IT8712F have these too but support is harder to add
and nobody asked for it yet, so I didn't include it.Signed-off-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
Add new sysfs alarm methodology to w83791d driver
Signed-off-by: Charles Spirakis
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
Signed-off-by: Auke Kok
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
The lm93 driver doesn't follow the standard naming convention for its
vid files. Fix this so that libsensors will pick them.Signed-off-by: Jean Delvare
Acked-by: Hans J. Koch
Signed-off-by: Mark M. Hoffman -
Trying to set the fan min limit to 0 currently writes 0 to the
register, which is an invalid value. It's read back as -1 and the
alarm flag is raised. Instead we should write 0xffff (maximum
value), which reads back as 0 and no alarm flag is raised.Signed-off-by: Jean Delvare
Acked-by: Juerg Haefliger
Signed-off-by: Mark M. Hoffman -
The way the lm85 driver currently handles the additional resolution
bits some chips have for the voltage and temperature measurements is
quite complex. This is my attempt to make it simpler.Signed-off-by: Jean Delvare
Acked-by: Juerg Haefliger
Signed-off-by: Mark M. Hoffman -
The future libsensors needs these individual alarm and fault files.
Also delete old and unused alarm defines.
Signed-off-by: Jean Delvare
Acked-by: Juerg Haefliger
Signed-off-by: Mark M. Hoffman -
The SMSC EMC6D100 supports 3 additional voltage channels. The lm85
driver reads the register values for these, but doesn't create the
corresponding sysfs files, so the user can't read the values nor write
the limits. Create the missing sysfs files.Signed-off-by: Jean Delvare
Acked-by: Juerg Haefliger
Signed-off-by: Mark M. Hoffman -
This lets us get rid of macro-generated functions and shrinks the
driver size by about 10%. I used a new style suggested by Mark M.
Hoffman to retrieve the channel number. Instead of:struct sensor_device_attribute *sda = to_sensor_dev_attr(attr);
int nr = sda->index;I do:
int nr = to_sensor_dev_attr(attr)->index;
This looks better, and even allows the compiler to do some minor
optimizations.Signed-off-by: Jean Delvare
Acked-by: Krzysztof Helt
Signed-off-by: Mark M. Hoffman -
Convert from class_device to device for hwmon_device_register/unregister
Signed-off-by: Tony Jones
Signed-off-by: Greg Kroah-Hartman
Signed-off-by: Kay Sievers
Signed-off-by: Mark M. Hoffman -
The CPU hotplug notifier_block coretemp_cpu_notifier is already defined
inside an #ifdef HOTPLUG_CPU, therefore marking it as __cpuinitdata is
quite a pointless thing to do.Also, remove duplicate prototype of function coretemp_update_device()
at the top of this file (another one already exists barely 10 lines
above this one :-)Signed-off-by: Satyam Sharma
Acked-by: Rudolf Marek
Signed-off-by: Mark M. Hoffman -
Add support for Fintek F75375S/SP and F75373.
Signed-off-by: Riku Voipio
Signed-off-by: Mark M. Hoffman -
* Document the name attribute.
* Document the *_label attributes.
* Drop "typical usage" lists, they no longer match the reality.
* Drop non hardware-monitoring related entries.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
It's confusing to display debugging messages for fan3 and pwm3 for
chips which don't have them.Signed-off-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
Add a name attribute to the lm70 devices. This is required for
libsensors to recognize them.Also drop the "+" before the temperature value, even though it did
not cause problems to libsensors, other hardware monitoring drivers
don't print it, so it's more consistent that way.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Acked-by: Kaiwan
Signed-off-by: Mark M. Hoffman -
* Drop documentation of generic module parameters.
* Drop redundant section "Driver Description".
* Drop sample configuration section, it belongs to sensors.conf.eg.
* Random spelling and punctuation fixes.Signed-off-by: Jean Delvare
Acked-by: Hans J. Koch
Signed-off-by: Mark M. Hoffman -
Deprecate the use of thermistor beta values as thermal sensor types.
No driver supports changing the beta value anyway.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
- replace differing temperature variable types by long
- use strtol() instead of strtoul() for conversionSigned-off-by: Christian Hohnstaedt
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
This patch adds individual alarm and fault files to
the thmc50 driver. These sysfs entries are required
for a new libsensors library.Signed-off-by: Krzysztof Helt
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
New driver to expose temperature and fan controls attached to Analog
Devices ADT7470 hwmon chips.Signed-off-by: Darrick J. Wong
Signed-off-by: Mark M. Hoffman -
Signed-off-by: Mark M. Hoffman
-
This is the second version of a new driver for the hardware monitoring features
of the Fintek F71882FG and F71883FG Super-I/O chips. This version has several
small fixes for flaws discovered during the review of the first version.This version of the driver does not support the pwm part of these chips (yet).
I'll first design a sysfs api for this and post that for discussion, and then
implement pwm support as an incremental patch over this one.This driver supports all sensors of this chip, except for the vid inputs. The
vid inputs are somewhat documented in the datasheet, but I know nothing about
vid/vrm stuff. Help with this would be much appreciated.Signed-off-by: Hans de Goede
Acked-by: Darrick J. Wong
Signed-off-by: Mark M. Hoffman -
The Fintek F71806F/FG is compatible with the F71872F/FG, so it is
already supported by the f71805f hardware monitoring driver. In fact,
both chips have the same chip ID, so the driver can't even
differentiate between them.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede
Signed-off-by: Mark M. Hoffman -
w83792d: add individual alarm files for the new libsensors.
Signed-off-by: Gong Jun
Signed-off-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
This patch provides some coding standard cleanups and general code improvements
(more debug info, signed values for temperatures, changed names of ADM1023
regs, removed read/write_value functions).Signed-off-by: Krzysztof Helt
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
[MIPS] Au1000: set the PCI controller IO base
[MIPS] Alchemy: Fix USB initialization.
[MIPS] IP32: Fix fatal typo in address computation.