Skip to content
Snippets Groups Projects
Commit e0617c62 authored by Minkyu Kang's avatar Minkyu Kang Committed by Albert Aribaud
Browse files

S5P: serial: Use the inline function instead of static value

parent 5eb522a6
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,10 @@ struct s5p_uart {
unsigned char res3[0x3d0];
};
static int use_divslot = 1;
static inline int s5p_uart_divslot(void)
{
return 1;
}
#endif /* __ASSEMBLY__ */
......
......@@ -72,7 +72,7 @@ void serial_setbrg_dev(const int dev_index)
writel(val / 16 - 1, &uart->ubrdiv);
if (use_divslot)
if (s5p_uart_divslot())
writew(udivslot[val % 16], &uart->rest.slot);
else
writeb(val % 16, &uart->rest.value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment