regmap: add SLIMbus support
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Dec 2017 23:43:02 +0000 (23:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2017 10:01:03 +0000 (11:01 +0100)
commit7d6f7fb053ad543da74119df3c4cd7bb46220471
tree61d3a30916655c7b0998a686f83b92d16b3a59e5
parent4b14e62ad3c9e6e6774517f4077e197c0537fb07
regmap: add SLIMbus support

This patch adds support to read/write SLIMbus value elements.
Currently it only supports byte read/write. Adding this support in
regmap would give codec drivers more flexibility when there are more
than 2 control interfaces like SLIMbus, i2c.

Without this patch each codec driver has to directly call SLIMbus value
element apis, and this could would get messy once we want to add i2c
interface to it.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviwed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/regmap/Kconfig
drivers/base/regmap/Makefile
drivers/base/regmap/regmap-slimbus.c [new file with mode: 0644]
include/linux/regmap.h