1 #ifndef __LINUX_MFD_TPS6586X_H
2 #define __LINUX_MFD_TPS6586X_H
30 TPS6586X_INT_COMP_DET
,
38 TPS6586X_INT_RTC_ALM1
,
39 TPS6586X_INT_ACUSB_OVP
,
43 TPS6586X_INT_CHG_STAT
,
44 TPS6586X_INT_CHG_TEMP
,
48 TPS6586X_INT_RTC_ALM2
,
51 struct tps6586x_subdev_info
{
57 struct tps6586x_platform_data
{
59 struct tps6586x_subdev_info
*subdevs
;
66 * NOTE: the functions below are not intended for use outside
67 * of the TPS6586X sub-device drivers
69 extern int tps6586x_write(struct device
*dev
, int reg
, uint8_t val
);
70 extern int tps6586x_writes(struct device
*dev
, int reg
, int len
, uint8_t *val
);
71 extern int tps6586x_read(struct device
*dev
, int reg
, uint8_t *val
);
72 extern int tps6586x_reads(struct device
*dev
, int reg
, int len
, uint8_t *val
);
73 extern int tps6586x_set_bits(struct device
*dev
, int reg
, uint8_t bit_mask
);
74 extern int tps6586x_clr_bits(struct device
*dev
, int reg
, uint8_t bit_mask
);
75 extern int tps6586x_update(struct device
*dev
, int reg
, uint8_t val
,
78 #endif /*__LINUX_MFD_TPS6586X_H */