#ifndef __LINUX_MFD_TPS65090_H
#define __LINUX_MFD_TPS65090_H
#include <linux/irq.h>
#include <linux/regmap.h>
enum { … };
enum { … };
#define TPS65090_REG_INTR_STS …
#define TPS65090_REG_INTR_STS2 …
#define TPS65090_REG_INTR_MASK …
#define TPS65090_REG_INTR_MASK2 …
#define TPS65090_REG_CG_CTRL0 …
#define TPS65090_REG_CG_CTRL1 …
#define TPS65090_REG_CG_CTRL2 …
#define TPS65090_REG_CG_CTRL3 …
#define TPS65090_REG_CG_CTRL4 …
#define TPS65090_REG_CG_CTRL5 …
#define TPS65090_REG_CG_STATUS1 …
#define TPS65090_REG_CG_STATUS2 …
#define TPS65090_REG_AD_OUT1 …
#define TPS65090_REG_AD_OUT2 …
#define TPS65090_MAX_REG …
#define TPS65090_NUM_REGS …
struct gpio_desc;
struct tps65090 { … };
struct tps65090_regulator_plat_data { … };
struct tps65090_platform_data { … };
static inline int tps65090_write(struct device *dev, int reg, uint8_t val)
{ … }
static inline int tps65090_read(struct device *dev, int reg, uint8_t *val)
{ … }
static inline int tps65090_set_bits(struct device *dev, int reg,
uint8_t bit_num)
{ … }
static inline int tps65090_clr_bits(struct device *dev, int reg,
uint8_t bit_num)
{ … }
#endif