Re: [PATCH RFT] gpio: tpic2810: Make sure cached buffer has consistent status with h/w status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 23, 2016 at 12: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.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>

Patch applied with Alexandre's review tag.

Yours,
Linus Walleij
--
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



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux