diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-10-14 11:43:20 -0700 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-11-13 14:49:42 +0100 |
commit | 8b598e7f4e9bede8a3893e1d7e4e4ff0dc952bb5 (patch) | |
tree | 4a09f96808720da5ced0ebfd2291ac8ec9c01955 /drivers/gpu/drm/bridge/ti-tfp410.c | |
parent | 61b7805a9b25bc1a31386c904fb5b03512c801c7 (diff) | |
download | lwn-8b598e7f4e9bede8a3893e1d7e4e4ff0dc952bb5.tar.gz lwn-8b598e7f4e9bede8a3893e1d7e4e4ff0dc952bb5.zip |
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 <laurent.pinchart@ideasonboard.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpu/drm/bridge/ti-tfp410.c')
-rw-r--r-- | drivers/gpu/drm/bridge/ti-tfp410.c | 4 |
1 files 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; |