mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-23 20:11:42 +00:00
LM75 driver finished
Well, it should work. But until we have implemented the remaining parts of piix4.o, we won't be able to test it. Anybody? git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@29 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
857a44f757
commit
b2f89aee3f
9 files changed
+729
-8
No files matched your search
+3
-2
@@ -442,7 +442,7 @@ int lm78_detect_smbus(struct i2c_adapter *adapter)
|
||||
/* Later on, we will keep a list of registered addresses for each
|
||||
adapter, and check whether they are used here */
|
||||
|
||||
if (smbus_read_byte_data(adapter,address,1) == 0xff)
|
||||
if (smbus_read_byte_data(adapter,address,LM78_REG_CONFIG) == 0xff)
|
||||
continue;
|
||||
|
||||
/* Real detection code goes here */
|
||||
@@ -465,7 +465,8 @@ int lm78_detect_smbus(struct i2c_adapter *adapter)
|
||||
continue;
|
||||
|
||||
|
||||
/* Allocate space for a new client structure */
|
||||
/* Allocate space for a new client structure. To counter memory
|
||||
ragmentation somewhat, we only do one kmalloc. */
|
||||
if (! (new_client = kmalloc(sizeof(struct i2c_client) +
|
||||
sizeof(struct lm78_data),
|
||||
GFP_KERNEL))) {
|
||||
|
||||
Reference in new issue
Block a user