projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
171b711
)
drm/imx/ipuv3: do not return negative values from .get_modes()
author
Jani Nikula
<jani.nikula@intel.com>
Fri, 8 Mar 2024 16:03:43 +0000
(18:03 +0200)
committer
Jani Nikula
<jani.nikula@intel.com>
Wed, 13 Mar 2024 08:44:14 +0000
(10:44 +0200)
The .get_modes() hooks aren't supposed to return negative error
codes. Return 0 for no modes, whatever the reason.
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: stable@vger.kernel.org
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link:
https://patchwork.freedesktop.org/patch/msgid/311f6eec96d47949b16a670529f4d89fcd97aefa.1709913674.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/imx/ipuv3/parallel-display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/imx/ipuv3/parallel-display.c
b/drivers/gpu/drm/imx/ipuv3/parallel-display.c
index 70349739dd89bed615e221fb00900fc4b53b496d..55dedd73f528c8842941a96f53eb82d4c2a863dc 100644
(file)
--- a/
drivers/gpu/drm/imx/ipuv3/parallel-display.c
+++ b/
drivers/gpu/drm/imx/ipuv3/parallel-display.c
@@
-72,14
+72,14
@@
static int imx_pd_connector_get_modes(struct drm_connector *connector)
int ret;
if (!mode)
- return
-EINVAL
;
+ return
0
;
ret = of_get_drm_display_mode(np, &imxpd->mode,
&imxpd->bus_flags,
OF_USE_NATIVE_MODE);
if (ret) {
drm_mode_destroy(connector->dev, mode);
- return
ret
;
+ return
0
;
}
drm_mode_copy(mode, &imxpd->mode);