Skip to content
Commit 827f6d01 authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

gpio: pcal9535a: use i2c_poll_transfer() for register read



The newly introduced i2c_poll_transfer() is now used for register
read for PCAL9535A GPIO driver. The old write then read does not
work because every read or write ends with STOP. However,
the chip requires RESTART after writing the register address.
So the new generic transfer function is perfect for this.

Change-Id: I56d7ebe08f68cb04731c72138d60645ef124f65e
Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 01796ecf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment