On 08/02/2015 02:38 AM, Pavel Machek wrote:

+#define INVALID_REG_ADDR       0xff

+static u8 bq27000_regs[] = {
+       0x00,   /* CONTROL      */
+       0x06,   /* TEMP         */
+       0xff,   /* INT TEMP - NA*/

I'd use the INVALID_REG_ADDR macro here.. Makes it more clear what is
going on (and you may change it to -1 in future, for example).


That works, I'll do that.

Thanks,
--
Andrew F. Davis
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to