projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaa20fc
)
pcmcia: replace open-coded ARRAY_SIZE with macro
author
Jim Cromie
<jim.cromie@gmail.com>
Wed, 11 Apr 2012 00:56:49 +0000
(18:56 -0600)
committer
Dominik Brodowski
<linux@dominikbrodowski.net>
Sat, 30 May 2015 13:10:47 +0000
(15:10 +0200)
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/i82365.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pcmcia/i82365.c
b/drivers/pcmcia/i82365.c
index a2c138719bac80907a86b2c3e70c871af8283f51..479b7951b1c3738bacef14135ee6d89464f58df8 100644
(file)
--- a/
drivers/pcmcia/i82365.c
+++ b/
drivers/pcmcia/i82365.c
@@
-208,7
+208,7
@@
static pcic_t pcic[] = {
{ "VIA VT83C469", IS_CIRRUS|IS_VIA },
};
-#define PCIC_COUNT
(sizeof(pcic)/sizeof(pcic_t)
)
+#define PCIC_COUNT
ARRAY_SIZE(pcic
)
/*====================================================================*/