diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-08-13 22:10:59 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2019-08-14 22:23:11 +0200 |
commit | 1c8fc3f0c5d280d691c330388666c3726fa525c7 (patch) | |
tree | 8bc2691ddbf43c7b1ccde571fdba52c2ea0f9caa /drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c | |
parent | drm/panel: Add driver for the Sharp LS037V7DW01 panel (diff) | |
download | linux-1c8fc3f0c5d280d691c330388666c3726fa525c7.tar.xz linux-1c8fc3f0c5d280d691c330388666c3726fa525c7.zip |
drm/panel: Add driver for the Sony ACX565AKM panel
This panel is used on the Nokia N900.
The code is based on the omapdrm-specific panel-sony-acx565akm driver.
The hardware-related logic has been changed as little as possible to
avoid regressions as hardware availability is lacking to test the
changes. Follow-up patches should address the items listed in the TODO
list.
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-8-laurent.pinchart@ideasonboard.com
Diffstat (limited to 'drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c')
-rw-r--r-- | drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c b/drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c index bec0c2e19a8e..46cd9a250129 100644 --- a/drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c +++ b/drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c @@ -140,7 +140,7 @@ static int ls037v7dw01_probe(struct platform_device *pdev) struct ls037v7dw01_panel *lcd; lcd = devm_kzalloc(&pdev->dev, sizeof(*lcd), GFP_KERNEL); - if (lcd == NULL) + if (!lcd) return -ENOMEM; platform_set_drvdata(pdev, lcd); |