projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e880a5e
)
am335x-fb: cosmetic: fix coding style
author
Hannes Schmelzer
<
[email protected]
>
Tue, 9 Jan 2018 18:01:33 +0000
(19:01 +0100)
committer
Anatolij Gustschin
<
[email protected]
>
Thu, 11 Jan 2018 14:18:28 +0000
(15:18 +0100)
Signed-off-by: Hannes Schmelzer <
[email protected]
>
Reviewed-by: Anatolij Gustschin <
[email protected]
>
drivers/video/am335x-fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/am335x-fb.c
b/drivers/video/am335x-fb.c
index c8100d809c89c38b10d08d950a77dd4e76408106..697b701ebcd3e897d78ddb61dbad560a42a560fe 100644
(file)
--- 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");