Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1378128
| From | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v1 2/3] regmap: add dummy regmap_can_raw_write() to header |
| Date | 2016-04-13 19:40 +0200 |
| Message-ID | <rnwVJ-4Qk-17@gated-at.bofh.it> (permalink) |
| References | <rnwVJ-4Qk-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch adds dummy function for regmap_can_raw_write() in the header
file, so that the code can be atleast compiled without regmap enabled.
This kind of setup is mostly tested using randomconfig or zero
day-testing.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
include/linux/regmap.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index be3da4c..c060b9b 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -1052,6 +1052,12 @@ static inline bool regmap_can_raw_read(struct regmap *map)
return false;
}
+static inline bool regmap_can_raw_write(struct regmap *map)
+{
+ WARN_ONCE(1, "regmap API is disabled");
+ return false;
+}
+
static inline int regmap_register_patch(struct regmap *map,
const struct reg_sequence *regs,
int num_regs)
--
2.5.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v1 2/3] regmap: add dummy regmap_can_raw_write() to header Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-04-13 19:40 +0200 Re: [PATCH v1 2/3] regmap: add dummy regmap_can_raw_write() to header Mark Brown <broonie@kernel.org> - 2016-04-14 08:50 +0200
csiph-web