Files
qemu/hw
Peter Crosthwaite 056fca7b51 i2c: Factor our send() and recv() common logic
Most of the control flow logic between send and recv (error checking
etc) is the same. Factor this out into a common send_recv() API.
This is then usable by clients, where the control logic for send
and receive differs only by a boolean. E.g.

if (send)
   i2c_send(...):
else
   i2c_recv(...);

becomes:

i2c_send_recv(... , send);

Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Message-id: 1465833014-21982-4-git-send-email-fred.konrad@greensocs.com
Changes from FK:
  * Rebased on master.
  * Rebased on my i2c broadcast patch.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2016-06-14 15:59:14 +01:00
..
2016-06-07 18:19:25 +03:00
2016-06-06 18:57:06 +02:00
2016-05-19 16:42:27 +02:00
2016-05-29 09:11:10 +02:00
2016-06-07 18:19:24 +03:00
2016-06-14 15:59:14 +01:00
2016-06-14 15:59:13 +01:00
2016-06-13 13:24:41 +02:00
2016-05-19 16:42:29 +02:00
2016-05-18 15:04:27 +03:00
2016-06-07 18:02:48 +03:00
2016-06-07 18:19:23 +03:00
2016-05-29 09:11:10 +02:00
2016-06-07 15:39:28 +03:00
2016-06-14 15:59:14 +01:00
2016-06-07 18:19:25 +03:00
2016-06-07 18:19:23 +03:00
2016-01-29 15:07:25 +00:00
2016-06-14 15:59:14 +01:00
2016-05-19 16:42:29 +02:00
2016-06-07 18:19:23 +03:00
2016-05-23 13:30:03 +02:00
2015-12-22 18:39:19 +02:00