diff options
author | Sam Ravnborg <[email protected]> | 2019-08-04 22:16:26 +0200 |
---|---|---|
committer | Sam Ravnborg <[email protected]> | 2019-08-10 15:41:48 +0200 |
commit | 24bc3e9ce68a41c73b32af8cd077fdf26b31516c (patch) | |
tree | e4146840c9ba185c4589f173a5aa5f23780ef250 /lib/memory-notifier-error-inject.c | |
parent | 90fbc5105653c1c757eb5889b32106cdd754e69f (diff) |
drm/fsl-dcu: fix opencoded use of drm_panel_*
Use drm_panel_get_modes() to access modes.
This has a nice side effect to simplify the code.
drm_panel_get_modes() may return a negative value if
for example panel is NULL. This is a small change
compared to before, but really what we want.
v2:
- Add more info to changelog (Stefan)
Signed-off-by: Sam Ravnborg <[email protected]>
Acked-by: Stefan Agner <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Cc: Alison Wang <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions