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