We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b402dfe commit 427ceacCopy full SHA for 427ceac
drivers/regulator/tps6286x-regulator.c
@@ -19,13 +19,22 @@
19
#define TPS6286X_CONTROL_FPWM BIT(4)
20
#define TPS6286X_CONTROL_SWEN BIT(5)
21
22
+#define TPS6286X_STATUS 0x05
23
+
24
#define TPS6286X_MIN_MV 400
25
#define TPS6286X_MAX_MV 1675
26
#define TPS6286X_STEP_MV 5
27
28
+static bool tps6287x_volatile_reg(struct device *dev, unsigned int reg)
29
+{
30
+ return reg == TPS6286X_STATUS;
31
+}
32
33
static const struct regmap_config tps6286x_regmap_config = {
34
.reg_bits = 8,
35
.val_bits = 8,
36
+ .cache_type = REGCACHE_MAPLE,
37
+ .volatile_reg = tps6287x_volatile_reg,
38
};
39
40
static int tps6286x_set_mode(struct regulator_dev *rdev, unsigned int mode)
0 commit comments