|
@@ -691,6 +691,9 @@ int regmap_raw_read(struct regmap *map, unsigned int reg,
|
|
void *val, size_t val_len);
|
|
void *val, size_t val_len);
|
|
int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
|
|
int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
|
|
size_t val_count);
|
|
size_t val_count);
|
|
|
|
+int regmap_update_bits_base(struct regmap *map, unsigned int reg,
|
|
|
|
+ unsigned int mask, unsigned int val,
|
|
|
|
+ bool *change, bool async, bool force);
|
|
int regmap_update_bits(struct regmap *map, unsigned int reg,
|
|
int regmap_update_bits(struct regmap *map, unsigned int reg,
|
|
unsigned int mask, unsigned int val);
|
|
unsigned int mask, unsigned int val);
|
|
int regmap_write_bits(struct regmap *map, unsigned int reg,
|
|
int regmap_write_bits(struct regmap *map, unsigned int reg,
|
|
@@ -937,6 +940,14 @@ static inline int regmap_bulk_read(struct regmap *map, unsigned int reg,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline int regmap_update_bits_base(struct regmap *map, unsigned int reg,
|
|
|
|
+ unsigned int mask, unsigned int val,
|
|
|
|
+ bool *change, bool async, bool force)
|
|
|
|
+{
|
|
|
|
+ WARN_ONCE(1, "regmap API is disabled");
|
|
|
|
+ return -EINVAL;
|
|
|
|
+}
|
|
|
|
+
|
|
static inline int regmap_update_bits(struct regmap *map, unsigned int reg,
|
|
static inline int regmap_update_bits(struct regmap *map, unsigned int reg,
|
|
unsigned int mask, unsigned int val)
|
|
unsigned int mask, unsigned int val)
|
|
{
|
|
{
|