summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2018-05-25 14:50:37 +0100
committerMark Brown <broonie@kernel.org>2018-05-25 18:36:00 +0100
commitcbdd39ca498f6b2b221614d9c1d105f2948f1dbb (patch)
treee2dbc9c7199616803f2098448db3d2e9260fe280
parented24d568bd9190cee046ae64df5890494dea2ca4 (diff)
downloadop-kernel-dev-cbdd39ca498f6b2b221614d9c1d105f2948f1dbb.zip
op-kernel-dev-cbdd39ca498f6b2b221614d9c1d105f2948f1dbb.tar.gz
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>
-rw-r--r--drivers/base/regmap/regmap-slimbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap-slimbus.c b/drivers/base/regmap/regmap-slimbus.c
index c90bee8..91d501e 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 &regmap_slimbus_bus;
return ERR_PTR(-ENOTSUPP);
OpenPOWER on IntegriCloud