diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-02-15 06:26:14 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-26 03:44:00 +0100 |
commit | e6ef243fa4660f3206137bd5f3e69b13a9b7c28a (patch) | |
tree | fc62be10cd4b988c1b3f15a286e437a0a9ee182c /drivers/base/regmap | |
parent | regmap: add regmap_field_force_xxx() macros (diff) | |
download | linux-e6ef243fa4660f3206137bd5f3e69b13a9b7c28a.tar.xz linux-e6ef243fa4660f3206137bd5f3e69b13a9b7c28a.zip |
regmap: add regmap_fields_force_xxx() macros
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r-- | drivers/base/regmap/regmap.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 79d7f51019d7..c7d4a636778d 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -1748,18 +1748,6 @@ int regmap_fields_update_bits_base(struct regmap_field *field, unsigned int id, } EXPORT_SYMBOL_GPL(regmap_fields_update_bits_base); -int regmap_fields_force_write(struct regmap_field *field, unsigned int id, - unsigned int val) -{ - if (id >= field->id_size) - return -EINVAL; - - return regmap_write_bits(field->regmap, - field->reg + (field->id_offset * id), - field->mask, val << field->shift); -} -EXPORT_SYMBOL_GPL(regmap_fields_force_write); - /* * regmap_bulk_write(): Write multiple registers to the device * |