regmap: Add missing little endian functions
authorTony Lindgren <tony@atomide.com>
Thu, 15 Sep 2016 20:56:11 +0000 (13:56 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 16 Sep 2016 11:06:27 +0000 (12:06 +0100)
commit55562449032c43b84f839e2fbb84bf1d351d6603
tree0abc946447244b9f316e5b440bc9f3e1e6da4b89
parentf50e38c9966076465bc8d9dd0bc582c268a0031e
regmap: Add missing little endian functions

This with the longer read and write masks allow supporting more
exotic devices. For example a little endian SPI device:

static const struct regmap_config foo_regmap_config = {
.reg_bits = 16,
.reg_stride = 4,
.val_bits = 16,
.write_flag_mask = 0x8000,
.reg_format_endian = REGMAP_ENDIAN_LITTLE,
.val_format_endian = REGMAP_ENDIAN_LITTLE,
...
};

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c