]> Git Repo - linux.git/commit
drm/panel: ili9341: Use predefined error codes
authorAndy Shevchenko <[email protected]>
Thu, 25 Apr 2024 14:26:19 +0000 (17:26 +0300)
committerNeil Armstrong <[email protected]>
Thu, 2 May 2024 07:41:27 +0000 (09:41 +0200)
commitda85f0aaa9f21999753b01d45c0343f885a8f905
tree0b3585680b06001ba3993d3eb1bf6063b12b19f9
parent740fc1e0509be3f7e2207e89125b06119ed62943
drm/panel: ili9341: Use predefined error codes

In one case the -1 is returned which is quite confusing code for
the wrong device ID, in another the ret is returning instead of
plain 0 that also confusing as readed may ask the possible meaning
of positive codes, which are never the case there. Convert both
to use explicit predefined error codes to make it clear what's going
on there.

Fixes: 5a04227326b0 ("drm/panel: Add ilitek ili9341 panel driver")
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Neil Armstrong <[email protected]>
Reviewed-by: Sui Jingfeng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Neil Armstrong <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/panel/panel-ilitek-ili9341.c
This page took 0.053767 seconds and 4 git commands to generate.