On Wed, Mar 23, 2016 at 8:49 PM, Axel Lin <axel.lin@xxxxxxxxxx> wrote: > i2c_smbus_write_byte_data() can fail. To ensure the cached buffer has > consistent status with h/w status, don't update the cached gpio->buffer > if write fails. > Also refactor the code a bit by adding a tpic2810_set_mask_bits() helper > and use it to simplify the code. Looks pretty good! Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html