From: Jiri Slaby Date: Thu, 21 Apr 2022 08:58:05 +0000 (+0200) Subject: serial: icom: make icom_acfg_baud const and unsigned X-Git-Tag: v5.19-rc1~47^2~116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b026d636d4a4a92533b7f28a86e59ffd6d7acad;p=thirdparty%2Flinux.git serial: icom: make icom_acfg_baud const and unsigned The baud rates are unsigned constants. So mark them as such. Not only it makes sense, but they are passed also to uart_get_baud_rate() and that expects unsigned int as baud rates on input. Signed-off-by: Jiri Slaby Link: https://lore.kernel.org/r/20220421085808.24152-8-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/icom.c b/drivers/tty/serial/icom.c index 34e716cadb283..85ecc7dfac72c 100644 --- a/drivers/tty/serial/icom.c +++ b/drivers/tty/serial/icom.c @@ -47,7 +47,7 @@ #define ICOM_DRIVER_NAME "icom" #define NR_PORTS 128 -static int icom_acfg_baud[] = { +static const unsigned int icom_acfg_baud[] = { 300, 600, 900,