ASoC: tlv312aic23: unbreak resume
[zen-stable.git] / drivers / staging / iio / addac / adt7316.h
blobd34bd679bb4e599ec4d8d37757df4a3dbe4fead2
1 /*
2 * ADT7316 digital temperature sensor driver supporting ADT7316/7/8 ADT7516/7/9
4 * Copyright 2010 Analog Devices Inc.
6 * Licensed under the GPL-2 or later.
7 */
9 #ifndef _ADT7316_H_
10 #define _ADT7316_H_
12 #include <linux/types.h>
14 #define ADT7316_REG_MAX_ADDR 0x3F
16 struct adt7316_bus {
17 void *client;
18 int irq;
19 int irq_flags;
20 int (*read) (void *client, u8 reg, u8 *data);
21 int (*write) (void *client, u8 reg, u8 val);
22 int (*multi_read) (void *client, u8 first_reg, u8 count, u8 *data);
23 int (*multi_write) (void *client, u8 first_reg, u8 count, u8 *data);
26 #ifdef CONFIG_PM
27 int adt7316_disable(struct device *dev);
28 int adt7316_enable(struct device *dev);
29 #endif
30 int adt7316_probe(struct device *dev, struct adt7316_bus *bus, const char *name);
31 int adt7316_remove(struct device *dev);
33 #endif