projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59a1d56
)
serial: icom: use ARRAY_SIZE
author
Jiri Slaby
<jslaby@suse.cz>
Thu, 21 Apr 2022 08:58:04 +0000
(10:58 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 22 Apr 2022 14:19:52 +0000
(16:19 +0200)
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link:
https://lore.kernel.org/r/20220421085808.24152-7-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/icom.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/icom.c
b/drivers/tty/serial/icom.c
index 083c00aced07c82ae71cf29003a04a5a8a37f5af..34e716cadb28386644acd8c07be2c0689e25b4e1 100644
(file)
--- a/
drivers/tty/serial/icom.c
+++ b/
drivers/tty/serial/icom.c
@@
-47,7
+47,6
@@
#define ICOM_DRIVER_NAME "icom"
#define NR_PORTS 128
-#define BAUD_TABLE_LIMIT ((sizeof(icom_acfg_baud)/sizeof(int)) - 1)
static int icom_acfg_baud[] = {
300,
600,
@@
-71,6
+70,7
@@
static int icom_acfg_baud[] = {
307200,
460800,
};
+#define BAUD_TABLE_LIMIT (ARRAY_SIZE(icom_acfg_baud) - 1)
struct icom_regs {
u32 control; /* Adapter Control Register */