mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 04:26:19 -04:00
SAMSUNG: serial: remove compiler warnings
remove below warnings serial_s5p.c: In function 'serial_getc_dev': serial_s5p.c:136: warning: dereferencing type-punned pointer will break strict-aliasing rules serial_s5p.c: In function 'serial_putc_dev': serial_s5p.c:152: warning: dereferencing type-punned pointer will break strict-aliasing rules Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
This commit is contained in:
parent
2271d3ddcc
commit
1a4106dd20
@ -133,7 +133,7 @@ int serial_getc_dev(const int dev_index)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (int)(readl(&uart->urxh) & 0xff);
|
return (int)(readb(&uart->urxh) & 0xff);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -149,7 +149,7 @@ void serial_putc_dev(const char c, const int dev_index)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
writel(c, &uart->utxh);
|
writeb(c, &uart->utxh);
|
||||||
|
|
||||||
/* If \n, also do \r */
|
/* If \n, also do \r */
|
||||||
if (c == '\n')
|
if (c == '\n')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user