Re: [PATCH 1/2] regmap: irq: add support for configuration of trigger type

From: Laxman Dewangan
Date: Wed Jan 06 2016 - 00:59:01 EST



On Tuesday 05 January 2016 11:11 PM, Mark Brown wrote:
* PGP Signed by an unknown key

On Tue, Dec 22, 2015 at 06:25:26PM +0530, Laxman Dewangan wrote:

+ d->type_reg_stride = chip->type_reg_stride ? : 1;
+
Please don't abuse the ternery operator, especially not the GCC
extension - that's much less clear than just writing the if statement.


Sure, I will not use this in my future coding.
Thanks for correcting this before applying.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/