drm/bridge: lt8912b: do not return negative values from .get_modes()
authorJani Nikula <jani.nikula@intel.com>
Fri, 8 Mar 2024 16:03:42 +0000 (18:03 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 13 Mar 2024 08:44:14 +0000 (10:44 +0200)
commit171b711b26cce208bb628526b1b368aeec7b6fa4
treea77cd1fa55cf663fb6a93c4150db3a815bf64e5f
parent13d5b040363c7ec0ac29c2de9cf661a24a8aa531
drm/bridge: lt8912b: do not return negative values from .get_modes()

The .get_modes() hooks aren't supposed to return negative error
codes. Return 0 for no modes, whatever the reason.

Cc: Adrien Grassein <adrien.grassein@gmail.com>
Cc: stable@vger.kernel.org
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/dcdddcbcb64b6f6cdc55022ee50c10dee8ddbc3d.1709913674.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/bridge/lontium-lt8912b.c