summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/panel/panel-lg-lb035q02.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-08-13 23:10:57 +0300
committerSam Ravnborg <sam@ravnborg.org>2019-08-14 22:23:10 +0200
commitdf439abe650177aeb6f0f1baf085a7367cac1bc2 (patch)
tree841e4384463c1592f14b81ea4a142e4771c0d2eb /drivers/gpu/drm/panel/panel-lg-lb035q02.c
parentf5b0c6542476e9068ec2731b644ce668491cb8fa (diff)
drm/panel: Add driver for the NEC NL8048HL11 panel
This panel is used on the Zoom2/3/3630 SDP boards. The code is based on the omapdrm-specific panel-nec-nl8048hl11 driver v2: - fix checkpatch warning (lcd == NULL) => (!lcd) (sam) Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20190813201101.30980-6-laurent.pinchart@ideasonboard.com
Diffstat (limited to 'drivers/gpu/drm/panel/panel-lg-lb035q02.c')
-rw-r--r--drivers/gpu/drm/panel/panel-lg-lb035q02.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-lg-lb035q02.c b/drivers/gpu/drm/panel/panel-lg-lb035q02.c
index 694489fb91b2..fc82a525b071 100644
--- a/drivers/gpu/drm/panel/panel-lg-lb035q02.c
+++ b/drivers/gpu/drm/panel/panel-lg-lb035q02.c
@@ -180,7 +180,7 @@ static int lb035q02_probe(struct spi_device *spi)
int ret;
lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL);
- if (lcd == NULL)
+ if (!lcd)
return -ENOMEM;
spi_set_drvdata(spi, lcd);