From: Dmitry Torokhov Date: Mon, 14 Oct 2019 18:43:20 +0000 (-0700) Subject: drm/bridge: ti-tfp410: switch to using fwnode_gpiod_get_index() X-Git-Tag: v5.5-rc1~94^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b598e7f4e9bede8a3893e1d7e4e4ff0dc952bb5;p=thirdparty%2Fkernel%2Flinux.git drm/bridge: ti-tfp410: switch to using fwnode_gpiod_get_index() 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(), but works with arbitrary firmware node. Reviewed-by: Laurent Pinchart Signed-off-by: Dmitry Torokhov Acked-by: Daniel Vetter Signed-off-by: Linus Walleij --- diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c index 61cc2354ef1bf..d9c9c9ebad2b1 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;