diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-08-13 23:10:58 +0300 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2019-08-14 22:23:10 +0200 |
commit | c9cf4c2a3bd35f4e90e840979ba7872932f9f120 (patch) | |
tree | fd67b93f009bb447c40b73ca7c03627d9d60aee7 /drivers/gpu/drm/panel/panel-nec-nl8048hl11.c | |
parent | df439abe650177aeb6f0f1baf085a7367cac1bc2 (diff) | |
download | lwn-c9cf4c2a3bd35f4e90e840979ba7872932f9f120.tar.gz lwn-c9cf4c2a3bd35f4e90e840979ba7872932f9f120.zip |
drm/panel: Add driver for the Sharp LS037V7DW01 panel
This panel is used on the TI SDP3430 board.
The code is based on the omapdrm-specific panel-sharp-ls037v7dw01
driver.
v2:
- fix checkpatch warning (lcd == NULL) => (!lcd) (sam)
- drop __exit_p() from remove. It caused a build warning.
And no other panel drivers needs this (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-7-laurent.pinchart@ideasonboard.com
Diffstat (limited to 'drivers/gpu/drm/panel/panel-nec-nl8048hl11.c')
-rw-r--r-- | drivers/gpu/drm/panel/panel-nec-nl8048hl11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-nec-nl8048hl11.c b/drivers/gpu/drm/panel/panel-nec-nl8048hl11.c index 21bae2d0a23a..299b217c83e1 100644 --- a/drivers/gpu/drm/panel/panel-nec-nl8048hl11.c +++ b/drivers/gpu/drm/panel/panel-nec-nl8048hl11.c @@ -180,7 +180,7 @@ static int nl8048_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); |