dm: i2c-gpio: rework gpio get/set functions
authorMichael Auchter <michael.auchter@ni.com>
Fri, 7 Feb 2020 16:55:31 +0000 (10:55 -0600)
committerHeiko Schocher <hs@denx.de>
Mon, 16 Mar 2020 06:48:15 +0000 (07:48 +0100)
commit7383edc2fbd56573819f9ca7401105366191b715
treee5bf5f272b437804362e1f8854a159b64681ac27
parent092d9ea26cde419141d340fd5de16c32f7273e00
dm: i2c-gpio: rework gpio get/set functions

This patch reworks i2c-gpio to make it easier to switch out the
implementation of the sda/scl get/set functions. This is in preparation
for a patch to conditionally implement clock stretching support.

Signed-off-by: Michael Auchter <michael.auchter@ni.com>
Cc: Heiko Schocher <hs@denx.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/i2c-gpio.c