diff options
Diffstat (limited to 'include/linux/mfd/max8998-private.h')
-rw-r--r-- | include/linux/mfd/max8998-private.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/mfd/max8998-private.h b/include/linux/mfd/max8998-private.h index 3bd2371a05f7..170f665c7cdd 100644 --- a/include/linux/mfd/max8998-private.h +++ b/include/linux/mfd/max8998-private.h | |||
@@ -126,7 +126,8 @@ enum { | |||
126 | /** | 126 | /** |
127 | * struct max8998_dev - max8998 master device for sub-drivers | 127 | * struct max8998_dev - max8998 master device for sub-drivers |
128 | * @dev: master device of the chip (can be used to access platform data) | 128 | * @dev: master device of the chip (can be used to access platform data) |
129 | * @i2c: i2c client private data | 129 | * @i2c: i2c client private data for regulator |
130 | * @rtc: i2c client private data for rtc | ||
130 | * @iolock: mutex for serializing io access | 131 | * @iolock: mutex for serializing io access |
131 | * @irqlock: mutex for buslock | 132 | * @irqlock: mutex for buslock |
132 | * @irq_base: base IRQ number for max8998, required for IRQs | 133 | * @irq_base: base IRQ number for max8998, required for IRQs |
@@ -138,6 +139,7 @@ enum { | |||
138 | struct max8998_dev { | 139 | struct max8998_dev { |
139 | struct device *dev; | 140 | struct device *dev; |
140 | struct i2c_client *i2c; | 141 | struct i2c_client *i2c; |
142 | struct i2c_client *rtc; | ||
141 | struct mutex iolock; | 143 | struct mutex iolock; |
142 | struct mutex irqlock; | 144 | struct mutex irqlock; |
143 | 145 | ||
@@ -155,6 +157,8 @@ extern int max8998_read_reg(struct i2c_client *i2c, u8 reg, u8 *dest); | |||
155 | extern int max8998_bulk_read(struct i2c_client *i2c, u8 reg, int count, | 157 | extern int max8998_bulk_read(struct i2c_client *i2c, u8 reg, int count, |
156 | u8 *buf); | 158 | u8 *buf); |
157 | extern int max8998_write_reg(struct i2c_client *i2c, u8 reg, u8 value); | 159 | extern int max8998_write_reg(struct i2c_client *i2c, u8 reg, u8 value); |
160 | extern int max8998_bulk_write(struct i2c_client *i2c, u8 reg, int count, | ||
161 | u8 *buf); | ||
158 | extern int max8998_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask); | 162 | extern int max8998_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask); |
159 | 163 | ||
160 | #endif /* __LINUX_MFD_MAX8998_PRIV_H */ | 164 | #endif /* __LINUX_MFD_MAX8998_PRIV_H */ |