[lkml]   [2011]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] i2c-gpio.c: correct logic of pdata->scl_is_open_drain
    On Mon, Oct 31, 2011 at 9:14 AM, Voss, Nikolaus <> wrote:
    > If pdata->scl_is_open_drain was set, the driver used push-pull output
    > for SCL, not open-drain output.
    > Signed-off-by: Nikolaus Voss <>

    {sda,scl}_is_open_drain indicates that the GPIO hardware is set up to
    do open drain so the software doesn't have to, i.e.
    gpio_set_value(pin, 1) will turn off the output driver rather than
    drive the pin high, so the _val functions will do the right thing.

    In other words, the existing code is correct.


     \ /
      Last update: 2011-10-31 22:25    [W:0.020 / U:9.344 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site