adt7462.c (310ec79210d754afe51e2e4a983e846b60179abd) adt7462.c (c3813d6af177fab19e322f3114b1f64fbcf08d71)
1/*
2 * A hwmon driver for the Analog Devices ADT7462
3 * Copyright (C) 2008 IBM
4 *
5 * Author: Darrick J. Wong <djwong@us.ibm.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

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

251 .class = I2C_CLASS_HWMON,
252 .driver = {
253 .name = "adt7462",
254 },
255 .probe = adt7462_probe,
256 .remove = adt7462_remove,
257 .id_table = adt7462_id,
258 .detect = adt7462_detect,
1/*
2 * A hwmon driver for the Analog Devices ADT7462
3 * Copyright (C) 2008 IBM
4 *
5 * Author: Darrick J. Wong <djwong@us.ibm.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

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

251 .class = I2C_CLASS_HWMON,
252 .driver = {
253 .name = "adt7462",
254 },
255 .probe = adt7462_probe,
256 .remove = adt7462_remove,
257 .id_table = adt7462_id,
258 .detect = adt7462_detect,
259 .address_data = &addr_data,
259 .address_list = normal_i2c,
260};
261
262/*
263 * 16-bit registers on the ADT7462 are low-byte first. The data sheet says
264 * that the low byte must be read before the high byte.
265 */
266static inline int adt7462_read_word_data(struct i2c_client *client, u8 reg)
267{

--- 1728 unchanged lines hidden ---
260};
261
262/*
263 * 16-bit registers on the ADT7462 are low-byte first. The data sheet says
264 * that the low byte must be read before the high byte.
265 */
266static inline int adt7462_read_word_data(struct i2c_client *client, u8 reg)
267{

--- 1728 unchanged lines hidden ---