[PATCH v4 01/10] regmap: Introduce regmap_get_max_register.

Mark Brown broonie at kernel.org
Mon May 4 05:05:37 PDT 2015


On Mon, Mar 30, 2015 at 10:56:27PM +0100, Srinivas Kandagatla wrote:

> +int regmap_get_max_register(struct regmap *map)
> +{
> +	return map->max_register ? : -EINVAL;
> +}

Please don't abuse the ternery operator like this, write a proper if
statement that people can read.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150504/cbfdd60e/attachment.sig>


More information about the linux-arm-kernel mailing list