serial: 8250_mtk: make two read-only arrays static const
authorColin Ian King <colin.i.king@gmail.com>
Mon, 7 Mar 2022 23:00:55 +0000 (23:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Mar 2022 12:13:56 +0000 (13:13 +0100)
commita6cee01b4f9205ce664e3442ee7bd5aee0d650de
tree56334785132eaef958f2804ee725d8678ff31a98
parent988c7c00691008ea1daaa1235680a0da49dab4e8
serial: 8250_mtk: make two read-only arrays static const

Don't populate the read-only arrays fraction_L_mapping and
fraction_M_mapping on the stack but instead make them static
const. Also makes the object code a little smaller.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220307230055.168241-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_mtk.c