diff options
author | 2024-04-25 17:26:19 +0300 | |
---|---|---|
committer | 2024-05-02 09:41:27 +0200 | |
commit | da85f0aaa9f21999753b01d45c0343f885a8f905 (patch) | |
tree | 0b3585680b06001ba3993d3eb1bf6063b12b19f9 /drivers/uio/uio_fsl_elbc_gpcm.c | |
parent | drm/panel: ili9341: Respect deferred probe (diff) | |
download | linux-da85f0aaa9f21999753b01d45c0343f885a8f905.tar.gz linux-da85f0aaa9f21999753b01d45c0343f885a8f905.tar.bz2 linux-da85f0aaa9f21999753b01d45c0343f885a8f905.zip |
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 <andriy.shevchenko@linux.intel.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Sui Jingfeng <sui.jingfeng@linux.dev>
Link: https://lore.kernel.org/r/20240425142706.2440113-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240425142706.2440113-4-andriy.shevchenko@linux.intel.com
Diffstat (limited to 'drivers/uio/uio_fsl_elbc_gpcm.c')
0 files changed, 0 insertions, 0 deletions