forked from beagleboard/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hwmon-for-linus' of git://jdelvare.pck.nerim.net/jdelva…
…re-2.6 * 'hwmon-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6: hwmon: (ad7414) Make ad7414_update_device() static hwmon: (it87) Fix fan tachometer reading in IT8712F rev 0x7 (I) hwmon: (atxp1) Fix device detection logic
- Loading branch information
Showing
3 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
|
||
MODULE_LICENSE("GPL"); | ||
MODULE_DESCRIPTION("System voltages control via Attansic ATXP1"); | ||
MODULE_VERSION("0.6.2"); | ||
MODULE_VERSION("0.6.3"); | ||
MODULE_AUTHOR("Sebastian Witt <[email protected]>"); | ||
|
||
#define ATXP1_VID 0x00 | ||
|
@@ -289,16 +289,16 @@ static int atxp1_detect(struct i2c_client *new_client, int kind, | |
if (!((i2c_smbus_read_byte_data(new_client, 0x3e) == 0) && | ||
(i2c_smbus_read_byte_data(new_client, 0x3f) == 0) && | ||
(i2c_smbus_read_byte_data(new_client, 0xfe) == 0) && | ||
(i2c_smbus_read_byte_data(new_client, 0xff) == 0) )) { | ||
(i2c_smbus_read_byte_data(new_client, 0xff) == 0))) | ||
return -ENODEV; | ||
|
||
/* No vendor ID, now checking if registers 0x10,0x11 (non-existent) | ||
* showing the same as register 0x00 */ | ||
temp = i2c_smbus_read_byte_data(new_client, 0x00); | ||
/* No vendor ID, now checking if registers 0x10,0x11 (non-existent) | ||
* showing the same as register 0x00 */ | ||
temp = i2c_smbus_read_byte_data(new_client, 0x00); | ||
|
||
if (!((i2c_smbus_read_byte_data(new_client, 0x10) == temp) && | ||
(i2c_smbus_read_byte_data(new_client, 0x11) == temp) )) | ||
return -ENODEV; | ||
} | ||
if (!((i2c_smbus_read_byte_data(new_client, 0x10) == temp) && | ||
(i2c_smbus_read_byte_data(new_client, 0x11) == temp))) | ||
return -ENODEV; | ||
|
||
/* Get VRM */ | ||
temp = vid_which_vrm(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters