lkml.org 
[lkml]   [2019]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 06/11] drm/bridge: ti-tfp410: switch to using fwnode_gpiod_get_index()
    Date
    Instead of fwnode_get_named_gpiod() that I plan to hide away, let's use
    the new fwnode_gpiod_get_index() that mimics gpiod_get_index(), bit
    works with arbitrary firmware node.

    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    ---

    drivers/gpu/drm/bridge/ti-tfp410.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c
    index 61cc2354ef1b..d9c9c9ebad2b 100644
    --- a/drivers/gpu/drm/bridge/ti-tfp410.c
    +++ b/drivers/gpu/drm/bridge/ti-tfp410.c
    @@ -284,8 +284,8 @@ static int tfp410_get_connector_properties(struct tfp410 *dvi)
    else
    dvi->connector_type = DRM_MODE_CONNECTOR_DVID;

    - dvi->hpd = fwnode_get_named_gpiod(&connector_node->fwnode,
    - "hpd-gpios", 0, GPIOD_IN, "hpd");
    + dvi->hpd = fwnode_gpiod_get_index(&connector_node->fwnode,
    + "hpd", 0, GPIOD_IN, "hpd");
    if (IS_ERR(dvi->hpd)) {
    ret = PTR_ERR(dvi->hpd);
    dvi->hpd = NULL;
    --
    2.23.0.162.g0b9fbb3734-goog
    \
     
     \ /
      Last update: 2019-09-11 09:55    [W:3.452 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site