diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-08-13 23:11:01 +0300 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2019-08-14 23:23:11 +0300 |
commit | dc2e1e5b279966affbd11ff7cfef52eb634ca2c9 (patch) | |
tree | 5c6f3203f39ee18c07cffce3581ae37a88d1f5b2 /drivers/gpu/drm/panel/panel-tpo-td028ttec1.c | |
parent | 415b8dd087118829fd37548b0d75592e297c1fa9 (diff) | |
download | linux-dc2e1e5b279966affbd11ff7cfef52eb634ca2c9.tar.xz |
drm/panel: Add driver for the Toppoly TD043MTEA1 panel
This panel is used on the OMAP3 Pandora.
The code is based on the omapdrm-specific panel-tpo-td043mtea1 driver.
v2:
- fix checkpatch warnings
o (lcd == NULL) => (!lcd) (sam)
o alignment to open '(' (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-10-laurent.pinchart@ideasonboard.com
Diffstat (limited to 'drivers/gpu/drm/panel/panel-tpo-td028ttec1.c')
-rw-r--r-- | drivers/gpu/drm/panel/panel-tpo-td028ttec1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c b/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c index a400c83486b4..d7b2e34626ef 100644 --- a/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c +++ b/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c @@ -328,7 +328,7 @@ static int td028ttec1_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); |