OpenCloudOS-Kernel/drivers/gpu/drm/panel
Maxime Ripard a0d605372a
drm/panel: lvds: Handle the optional regulator case properly
The devm_regulator_get_optional function, unlike it was assumed in the
commit a1c55bccf6 ("drm/panel: lvds: Add support for the power-supply
property"), is actually returning an error pointer with -ENODEV instead of
NULL when there's no regulator to find.

Make sure we handle that case properly.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Fixes: a1c55bccf6 ("drm/panel: lvds: Add support for the power-supply property")
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180110155941.16109-1-maxime.ripard@free-electrons.com
2018-01-15 10:16:56 +01:00
..
Kconfig drm/panel: Add Ilitek ILI9322 driver 2017-12-22 09:05:45 +01:00
Makefile drm/panel: Add Ilitek ILI9322 driver 2017-12-22 09:05:45 +01:00
panel-ilitek-ili9322.c drm/panel: Add Ilitek ILI9322 driver 2017-12-22 09:05:45 +01:00
panel-innolux-p079zca.c drm/panel: add Innolux P079ZCA panel driver 2017-06-14 19:31:45 +02:00
panel-jdi-lt070me05000.c drm/panel: Add JDI LT070ME05000 WUXGA DSI Panel 2016-09-16 17:32:48 +02:00
panel-lg-lg4573.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
panel-lvds.c drm/panel: lvds: Handle the optional regulator case properly 2018-01-15 10:16:56 +01:00
panel-orisetech-otm8009a.c drm/panel: Add support for OTM8009A panel driver 2017-08-18 17:10:44 +02:00
panel-panasonic-vvx10f034n00.c drm/panel: Add Panasonic VVX10F034N00 MIPI DSI panel 2015-11-23 12:33:21 +01:00
panel-raspberrypi-touchscreen.c drm/panel: rpi-touchscreen: propagate errors in rpi_touchscreen_i2c_read() 2017-10-30 16:55:20 -07:00
panel-samsung-ld9040.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
panel-samsung-s6e3ha2.c drm/panel: s6e3ha2: Add support for s6e3hf2 panel on TM2e board 2017-06-14 20:18:22 +02:00
panel-samsung-s6e8aa0.c drm/panel: Add Samsung prefix to panel drivers 2015-08-13 14:33:52 +02:00
panel-samsung-s6e63j0x03.c drm/panel: Add support for S6E63J0X03 panel 2017-08-18 17:10:43 +02:00
panel-seiko-43wvf1g.c drm/panel: Add driver for Seiko 43WVF1G panel 2017-08-18 17:10:45 +02:00
panel-sharp-lq101r1sx01.c drm/panel: sharp: lq101r1sx01: Remove unneeded include 2015-01-28 08:45:39 +01:00
panel-sharp-ls043t1le01.c drm/panel: Add Sharp LS043T1LE01 MIPI DSI panel 2015-11-24 10:25:15 +01:00
panel-simple.c drm/panel: simple: Add Mitsubishi AA070MC01 panel support 2017-11-17 12:42:24 +01:00
panel-sitronix-st7789v.c drm/panel: Add driver for sitronix ST7789V LCD controller 2017-04-06 23:50:44 +02:00