diff options
| author | Alexandre Courbot <acourbot@nvidia.com> | 2014-10-23 04:16:57 -0400 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2014-11-06 03:50:38 -0500 |
| commit | 26c2ad8a49dffcb6bdae447dc7c02db81323dbf7 (patch) | |
| tree | 44e1bcc6b61ef3f6e76f74c94e3e93f3725b38ea /drivers/gpu | |
| parent | 8a8cc83cbd081bd38673220d4c2816baa89cc788 (diff) | |
drm/panel: s6e8aa0: Update calls to gpiod_get*()
Add the new flags argument to calls of (devm_)gpiod_get*() and remove
any direction setting code afterwards.
Currently both forms (with or without the flags argument) are valid
thanks to transitional macros in <linux/gpio/consumer.h>. These macros
will be removed once all consumers are updated and the flags argument
will become compulsary.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/panel/panel-s6e8aa0.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/panel/panel-s6e8aa0.c b/drivers/gpu/drm/panel/panel-s6e8aa0.c index b5217fe37f02..6427aa187735 100644 --- a/drivers/gpu/drm/panel/panel-s6e8aa0.c +++ b/drivers/gpu/drm/panel/panel-s6e8aa0.c | |||
| @@ -1019,17 +1019,12 @@ static int s6e8aa0_probe(struct mipi_dsi_device *dsi) | |||
| 1019 | return ret; | 1019 | return ret; |
| 1020 | } | 1020 | } |
| 1021 | 1021 | ||
| 1022 | ctx->reset_gpio = devm_gpiod_get(dev, "reset"); | 1022 | ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); |
| 1023 | if (IS_ERR(ctx->reset_gpio)) { | 1023 | if (IS_ERR(ctx->reset_gpio)) { |
| 1024 | dev_err(dev, "cannot get reset-gpios %ld\n", | 1024 | dev_err(dev, "cannot get reset-gpios %ld\n", |
| 1025 | PTR_ERR(ctx->reset_gpio)); | 1025 | PTR_ERR(ctx->reset_gpio)); |
| 1026 | return PTR_ERR(ctx->reset_gpio); | 1026 | return PTR_ERR(ctx->reset_gpio); |
| 1027 | } | 1027 | } |
| 1028 | ret = gpiod_direction_output(ctx->reset_gpio, 1); | ||
| 1029 | if (ret < 0) { | ||
| 1030 | dev_err(dev, "cannot configure reset-gpios %d\n", ret); | ||
| 1031 | return ret; | ||
| 1032 | } | ||
| 1033 | 1028 | ||
| 1034 | ctx->brightness = GAMMA_LEVEL_NUM - 1; | 1029 | ctx->brightness = GAMMA_LEVEL_NUM - 1; |
| 1035 | 1030 | ||
