]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
regmap: allow busses to request formatting with specific endianness
authorStephen Warren <swarren@nvidia.com>
Thu, 24 May 2012 16:47:26 +0000 (10:47 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 3 Jun 2012 12:11:43 +0000 (13:11 +0100)
commit141eba2e006dd8145bed2e49fae3de5af65ab9b0
treed8891499689971466ac978719c45c33d408fd5c5
parentf8f5701bdaf9134b1f90e5044a82c66324d2073f
regmap: allow busses to request formatting with specific endianness

Add a field to struct regmap_bus that allows bus drivers to request that
register addresses and values be formatted with a specific endianness.

The default endianness is unchanged from current operation: Big.

Implement native endian formatting/parsing for 16- and 32-bit values.
This will be enough to support regmap-mmio.c.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap.c
include/linux/regmap.h