projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'nds32-for-linus-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git]
/
drivers
/
i2c
/
busses
/
i2c-gpio.c
diff --git
a/drivers/i2c/busses/i2c-gpio.c
b/drivers/i2c/busses/i2c-gpio.c
index
005e6e0
..
66f85bb
100644
(file)
--- a/
drivers/i2c/busses/i2c-gpio.c
+++ b/
drivers/i2c/busses/i2c-gpio.c
@@
-279,9
+279,9
@@
static int i2c_gpio_probe(struct platform_device *pdev)
* required for an I2C bus.
*/
if (pdata->scl_is_open_drain)
* required for an I2C bus.
*/
if (pdata->scl_is_open_drain)
- gflags = GPIOD_OUT_
LOW
;
+ gflags = GPIOD_OUT_
HIGH
;
else
else
- gflags = GPIOD_OUT_
LOW
_OPEN_DRAIN;
+ gflags = GPIOD_OUT_
HIGH
_OPEN_DRAIN;
priv->scl = i2c_gpio_get_desc(dev, "scl", 1, gflags);
if (IS_ERR(priv->scl))
return PTR_ERR(priv->scl);
priv->scl = i2c_gpio_get_desc(dev, "scl", 1, gflags);
if (IS_ERR(priv->scl))
return PTR_ERR(priv->scl);