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

i2c: dw: re-organize transfer related code



() Re-organize the steps involved in data transfer, according to
   the datasheet's flowchart.
() Extract the common code for transfer initialization and put
   it into its own function.
() i2c_write() and i2c_polling_write() are now using the common
   data sending function.

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