[U-Boot] [PATCH] dm: i2c-gpio: Remove redundant dm_gpio_set_value() call

Simon Glass sjg at chromium.org
Tue Apr 28 05:20:06 CEST 2015


On 25 April 2015 at 21:05, Axel Lin <axel.lin at ingics.com> wrote:
> dm_gpio_set_dir_flags() will also set gpio output value when switching to
> gpio output. So it's not necessary to call dm_gpio_set_value() after
> dm_gpio_set_dir_flags() call.
>
> Signed-off-by: Axel Lin <axel.lin at ingics.com>
> ---
>  drivers/i2c/i2c-gpio.c | 13 +++++++------
>  1 file changed, 7 insertions(+), 6 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list