File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 24
24
#define RT5739_REG_NSEL1 0x01
25
25
#define RT5739_REG_CNTL1 0x02
26
26
#define RT5739_REG_ID1 0x03
27
+ #define RT5739_REG_ID2 0x04
28
+ #define RT5739_REG_MON 0x05
27
29
#define RT5739_REG_CNTL2 0x06
28
30
#define RT5739_REG_CNTL4 0x08
29
31
@@ -236,11 +238,18 @@ static void rt5739_init_regulator_desc(struct regulator_desc *desc,
236
238
}
237
239
}
238
240
241
+ static bool rt5739_volatile_reg (struct device * dev , unsigned int reg )
242
+ {
243
+ return reg == RT5739_REG_MON ;
244
+ }
245
+
239
246
static const struct regmap_config rt5739_regmap_config = {
240
247
.name = "rt5739" ,
241
248
.reg_bits = 8 ,
242
249
.val_bits = 8 ,
243
250
.max_register = RT5739_REG_CNTL4 ,
251
+ .cache_type = REGCACHE_MAPLE ,
252
+ .volatile_reg = rt5739_volatile_reg ,
244
253
};
245
254
246
255
static int rt5739_probe (struct i2c_client * i2c )
You can’t perform that action at this time.
0 commit comments