diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2018-05-25 14:50:37 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-05-25 18:36:00 +0100 |
commit | cbdd39ca498f6b2b221614d9c1d105f2948f1dbb (patch) | |
tree | e2dbc9c7199616803f2098448db3d2e9260fe280 /drivers/base/regmap | |
parent | ed24d568bd9190cee046ae64df5890494dea2ca4 (diff) | |
download | linux-cbdd39ca498f6b2b221614d9c1d105f2948f1dbb.tar.gz linux-cbdd39ca498f6b2b221614d9c1d105f2948f1dbb.tar.bz2 linux-cbdd39ca498f6b2b221614d9c1d105f2948f1dbb.zip |
regmap: slimbus: allow register offsets up to 16 bits
As per SLIMBus specs Value Elements and Information Elements
address map ranges from 0x000 - 0xFFF.
So allow register addresses up to 16 bits
Fixes: 7d6f7fb053ad ("regmap: add SLIMbus support")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r-- | drivers/base/regmap/regmap-slimbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap-slimbus.c b/drivers/base/regmap/regmap-slimbus.c index c90bee81d954..91d501eda8a9 100644 --- a/drivers/base/regmap/regmap-slimbus.c +++ b/drivers/base/regmap/regmap-slimbus.c @@ -41,7 +41,7 @@ static struct regmap_bus regmap_slimbus_bus = { static const struct regmap_bus *regmap_get_slimbus(struct slim_device *slim, const struct regmap_config *config) { - if (config->val_bits == 8 && config->reg_bits == 8) + if (config->val_bits == 8 && config->reg_bits == 16) return ®map_slimbus_bus; return ERR_PTR(-ENOTSUPP); |