ads7828.c (310ec79210d754afe51e2e4a983e846b60179abd) ads7828.c (c3813d6af177fab19e322f3114b1f64fbcf08d71)
1/*
2 ads7828.c - lm_sensors driver for ads7828 12-bit 8-channel ADC
3 (C) 2007 EADS Astrium
4
5 This driver is based on the lm75 and other lm_sensors/hwmon drivers
6
7 Written by Steve Hardy <steve@linuxrealtime.co.uk>
8

--- 169 unchanged lines hidden (view full) ---

178 .class = I2C_CLASS_HWMON,
179 .driver = {
180 .name = "ads7828",
181 },
182 .probe = ads7828_probe,
183 .remove = ads7828_remove,
184 .id_table = ads7828_id,
185 .detect = ads7828_detect,
1/*
2 ads7828.c - lm_sensors driver for ads7828 12-bit 8-channel ADC
3 (C) 2007 EADS Astrium
4
5 This driver is based on the lm75 and other lm_sensors/hwmon drivers
6
7 Written by Steve Hardy <steve@linuxrealtime.co.uk>
8

--- 169 unchanged lines hidden (view full) ---

178 .class = I2C_CLASS_HWMON,
179 .driver = {
180 .name = "ads7828",
181 },
182 .probe = ads7828_probe,
183 .remove = ads7828_remove,
184 .id_table = ads7828_id,
185 .detect = ads7828_detect,
186 .address_data = &addr_data,
186 .address_list = normal_i2c,
187};
188
189/* Return 0 if detection is successful, -ENODEV otherwise */
190static int ads7828_detect(struct i2c_client *client,
191 struct i2c_board_info *info)
192{
193 struct i2c_adapter *adapter = client->adapter;
194 int ch;

--- 88 unchanged lines hidden ---
187};
188
189/* Return 0 if detection is successful, -ENODEV otherwise */
190static int ads7828_detect(struct i2c_client *client,
191 struct i2c_board_info *info)
192{
193 struct i2c_adapter *adapter = client->adapter;
194 int ch;

--- 88 unchanged lines hidden ---