]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: i2c-gpio: Remove redundant dm_gpio_set_value() call
authorAxel Lin <axel.lin@ingics.com>
Sun, 26 Apr 2015 03:05:38 +0000 (11:05 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 6 May 2015 02:58:41 +0000 (20:58 -0600)
commit76382aa2ce811d4bb53f8c617590fb36681ce169
tree448f8ee1ad30dcd875bc0474ba1a91e1bc3b4517
parent4772511475ce9221a040142eb808fa963024598f
dm: i2c-gpio: Remove redundant dm_gpio_set_value() call

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@ingics.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/i2c/i2c-gpio.c