diff options
author | Jiri Slaby <jslaby@suse.cz> | 2022-04-21 10:58:05 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-22 16:19:52 +0200 |
commit | 8b026d636d4a4a92533b7f28a86e59ffd6d7acad (patch) | |
tree | 21affc647c2876534d293185cba35fe05a2e9aea /drivers/tty/serial/icom.c | |
parent | 05ef2f3dd0cb3dd0b92691312042234083eabd01 (diff) | |
download | linux-stable-8b026d636d4a4a92533b7f28a86e59ffd6d7acad.tar.gz linux-stable-8b026d636d4a4a92533b7f28a86e59ffd6d7acad.tar.bz2 linux-stable-8b026d636d4a4a92533b7f28a86e59ffd6d7acad.zip |
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 <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220421085808.24152-8-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/icom.c')
-rw-r--r-- | drivers/tty/serial/icom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/icom.c b/drivers/tty/serial/icom.c index 34e716cadb28..85ecc7dfac72 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, |