summaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap/internal.h
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2013-01-12 12:54:12 -0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-14 08:04:01 +0900
commitad278406b3b8b8e454af23b63df3c3d63f6aee94 (patch)
treec5e936e0acf0b3ae7b9d88ba1601507a18c6769d /drivers/base/regmap/internal.h
parent9931faca02c604c22335f5a935a501bb2ace6e20 (diff)
downloadop-kernel-dev-ad278406b3b8b8e454af23b63df3c3d63f6aee94.zip
op-kernel-dev-ad278406b3b8b8e454af23b63df3c3d63f6aee94.tar.gz
regmap: Add provisions to have user-defined read operation
This commit is a preparatory commit to provide "no-bus" configuration option for regmap API. It adds necessary plumbing needed to have the ability to provide user define register read function. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base/regmap/internal.h')
-rw-r--r--drivers/base/regmap/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h
index 401d191..471eb90 100644
--- a/drivers/base/regmap/internal.h
+++ b/drivers/base/regmap/internal.h
@@ -74,6 +74,8 @@ struct regmap {
const struct regmap_access_table *volatile_table;
const struct regmap_access_table *precious_table;
+ int (*reg_read)(void *context, unsigned int reg, unsigned int *val);
+
u8 read_flag_mask;
u8 write_flag_mask;
OpenPOWER on IntegriCloud