Thread (154 messages) 154 messages, 15 authors, 2015-06-24

Re: [PATCH v3 1/9] regmap: Introduce regmap_get_max_register.

From: Mark Brown <broonie@kernel.org>
Date: 2015-03-24 22:36:30
Also in: linux-api, linux-arm-kernel, linux-arm-msm, lkml

On Tue, Mar 24, 2015 at 10:29:39PM +0000, Srinivas Kandagatla wrote:
This patch introduces regmap_get_max_register() function which would be
used by the infrastructures like eeprom framework built on top of
regmap.
In what way would it be used?
+int regmap_get_max_register(struct regmap *map)
+{
+	return map->max_register ? : -EINVAL;
+}
Please write the logic out properly, don't abuse the ternery operator.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help