Skip to content

Commit 8b598e7

Browse files
dtorlinusw
authored andcommitted
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 <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]> Acked-by: Daniel Vetter <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 61b7805 commit 8b598e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/bridge/ti-tfp410.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ static int tfp410_get_connector_properties(struct tfp410 *dvi)
284284
else
285285
dvi->connector_type = DRM_MODE_CONNECTOR_DVID;
286286

287-
dvi->hpd = fwnode_get_named_gpiod(&connector_node->fwnode,
288-
"hpd-gpios", 0, GPIOD_IN, "hpd");
287+
dvi->hpd = fwnode_gpiod_get_index(&connector_node->fwnode,
288+
"hpd", 0, GPIOD_IN, "hpd");
289289
if (IS_ERR(dvi->hpd)) {
290290
ret = PTR_ERR(dvi->hpd);
291291
dvi->hpd = NULL;

0 commit comments

Comments
 (0)