Misc cleanups inspired from Linux 2.6.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2192 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2003-12-29 19:26:17 +00:00
1 parent 86b9b4a477
commit 1a665e49ed
2 files changed
+8 -8

No files matched your search

+3 -2
View File
@@ -79,7 +79,7 @@ SENSORS_INSMOD_1(lm83);
#define LM83_REG_W_TCRIT 0x5A
/*
* Conversions, initial values and various macros
* Conversions and various macros
* The LM83 uses signed 8-bit values.
*/
@@ -285,7 +285,7 @@ static int lm83_detect(struct i2c_adapter *adapter, int address, unsigned
& 0x41) != 0x00))
{
#ifdef DEBUG
printk("lm83.o: LM83 detection failed at 0x%02x.\n",
printk(KERN_DEBUG "lm83.o: Detection failed at 0x%02x.\n",
address);
#endif
goto ERROR1;
@@ -412,6 +412,7 @@ static void lm83_update_client(struct i2c_client *client)
data->alarms =
i2c_smbus_read_byte_data(client, LM83_REG_R_STATUS1) +
(i2c_smbus_read_byte_data(client, LM83_REG_R_STATUS2) << 8);
data->last_updated = jiffies;
data->valid = 1;
}