Skip to content

Commit

Permalink
regmap: Add support for 24 bit wide register addresses
Browse files Browse the repository at this point in the history
Since regmap already has support for formatting 24 bit wide values, so adding
support for 24 bit wide registers is pretty much straight forward.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Jan 12, 2013
1 parent 9931fac commit 237019e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/base/regmap/regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,12 @@ struct regmap *regmap_init(struct device *dev,
}
break;

case 24:
if (reg_endian != REGMAP_ENDIAN_BIG)
goto err_map;
map->format.format_reg = regmap_format_24;
break;

case 32:
switch (reg_endian) {
case REGMAP_ENDIAN_BIG:
Expand Down

0 comments on commit 237019e

Please sign in to comment.