summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Schmelzer <oe5hpm@oevsv.at>2018-01-09 19:01:33 +0100
committerAnatolij Gustschin <agust@denx.de>2018-01-11 15:18:28 +0100
commit0d8a7d6fa8b09f940b2087b3bc5696b59dd049df (patch)
tree5163b628a3728fecf42c2a5ae5517a2c6f24458a
parente880a5e21988d8fef77b916486b26432218bb226 (diff)
downloadu-boot-0d8a7d6fa8b09f940b2087b3bc5696b59dd049df.tar.gz
u-boot-0d8a7d6fa8b09f940b2087b3bc5696b59dd049df.tar.xz
u-boot-0d8a7d6fa8b09f940b2087b3bc5696b59dd049df.zip
am335x-fb: cosmetic: fix coding style
Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at> Reviewed-by: Anatolij Gustschin <agust@denx.de>
-rw-r--r--drivers/video/am335x-fb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/am335x-fb.c b/drivers/video/am335x-fb.c
index c8100d809c..697b701ebc 100644
--- a/drivers/video/am335x-fb.c
+++ b/drivers/video/am335x-fb.c
@@ -108,11 +108,11 @@ int am335xfb_init(struct am335x_lcdpanel *panel)
{
u32 raster_ctrl = 0;
- if (0 == gd->fb_base) {
+ if (gd->fb_base == 0) {
printf("ERROR: no valid fb_base stored in GLOBAL_DATA_PTR!\n");
return -1;
}
- if (0 == panel) {
+ if (panel == NULL) {
printf("ERROR: missing ptr to am335x_lcdpanel!\n");
return -1;
}
@@ -147,7 +147,7 @@ int am335xfb_init(struct am335x_lcdpanel *panel)
gd->fb_base += 0x20;
/* turn ON display through powercontrol function if accessible */
- if (0 != panel->panel_power_ctrl)
+ if (panel->panel_power_ctrl != NULL)
panel->panel_power_ctrl(1);
debug("am335x-fb: wait for stable power ...\n");