aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/atxp1.c
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
commitada47b5fe13d89735805b566185f4885f5a3f750 (patch)
tree644b88f8a71896307d71438e9b3af49126ffb22b /drivers/hwmon/atxp1.c
parent43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff)
parent3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff)
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/hwmon/atxp1.c')
-rw-r--r--drivers/hwmon/atxp1.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/hwmon/atxp1.c b/drivers/hwmon/atxp1.c
index d6b490d3e36f..33cc143b2069 100644
--- a/drivers/hwmon/atxp1.c
+++ b/drivers/hwmon/atxp1.c
@@ -28,6 +28,7 @@
28#include <linux/err.h> 28#include <linux/err.h>
29#include <linux/mutex.h> 29#include <linux/mutex.h>
30#include <linux/sysfs.h> 30#include <linux/sysfs.h>
31#include <linux/slab.h>
31 32
32MODULE_LICENSE("GPL"); 33MODULE_LICENSE("GPL");
33MODULE_DESCRIPTION("System voltages control via Attansic ATXP1"); 34MODULE_DESCRIPTION("System voltages control via Attansic ATXP1");
@@ -44,17 +45,14 @@ MODULE_AUTHOR("Sebastian Witt <se.witt@gmx.net>");
44 45
45static const unsigned short normal_i2c[] = { 0x37, 0x4e, I2C_CLIENT_END }; 46static const unsigned short normal_i2c[] = { 0x37, 0x4e, I2C_CLIENT_END };
46 47
47I2C_CLIENT_INSMOD_1(atxp1);
48
49static int atxp1_probe(struct i2c_client *client, 48static int atxp1_probe(struct i2c_client *client,
50 const struct i2c_device_id *id); 49 const struct i2c_device_id *id);
51static int atxp1_remove(struct i2c_client *client); 50static int atxp1_remove(struct i2c_client *client);
52static struct atxp1_data * atxp1_update_device(struct device *dev); 51static struct atxp1_data * atxp1_update_device(struct device *dev);
53static int atxp1_detect(struct i2c_client *client, int kind, 52static int atxp1_detect(struct i2c_client *client, struct i2c_board_info *info);
54 struct i2c_board_info *info);
55 53
56static const struct i2c_device_id atxp1_id[] = { 54static const struct i2c_device_id atxp1_id[] = {
57 { "atxp1", atxp1 }, 55 { "atxp1", 0 },
58 { } 56 { }
59}; 57};
60MODULE_DEVICE_TABLE(i2c, atxp1_id); 58MODULE_DEVICE_TABLE(i2c, atxp1_id);
@@ -68,7 +66,7 @@ static struct i2c_driver atxp1_driver = {
68 .remove = atxp1_remove, 66 .remove = atxp1_remove,
69 .id_table = atxp1_id, 67 .id_table = atxp1_id,
70 .detect = atxp1_detect, 68 .detect = atxp1_detect,
71 .address_data = &addr_data, 69 .address_list = normal_i2c,
72}; 70};
73 71
74struct atxp1_data { 72struct atxp1_data {
@@ -275,7 +273,7 @@ static const struct attribute_group atxp1_group = {
275 273
276 274
277/* Return 0 if detection is successful, -ENODEV otherwise */ 275/* Return 0 if detection is successful, -ENODEV otherwise */
278static int atxp1_detect(struct i2c_client *new_client, int kind, 276static int atxp1_detect(struct i2c_client *new_client,
279 struct i2c_board_info *info) 277 struct i2c_board_info *info)
280{ 278{
281 struct i2c_adapter *adapter = new_client->adapter; 279 struct i2c_adapter *adapter = new_client->adapter;