10 #include <linux/device.h>
11 #include <linux/kernel.h>
12 #include <linux/i2c.h>
14 #include <linux/module.h>
41 static int adt7316_i2c_write(
void *client,
u8 reg,
u8 data)
53 static int adt7316_i2c_multi_read(
void *client,
u8 reg,
u8 count,
u8 *data)
61 for (i = 0; i <
count; i++) {
62 ret = adt7316_i2c_read(cl, reg, &data[i]);
72 static int adt7316_i2c_multi_write(
void *client,
u8 reg,
u8 count,
u8 *data)
80 for (i = 0; i <
count; i++) {
81 ret = adt7316_i2c_write(cl, reg, data[i]);
102 .read = adt7316_i2c_read,
103 .write = adt7316_i2c_write,
104 .multi_read = adt7316_i2c_multi_read,
105 .multi_write = adt7316_i2c_multi_write,
134 .probe = adt7316_i2c_probe,
136 .id_table = adt7316_i2c_id,
142 "ADT7516/7/8 digital temperature sensor, ADC and DAC");