mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
ARRAY_SIZE changes
These changes were a direct result of using a semantic patch More information can be found at http://www.emn.fr/x-info/coccinelle/ Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
This commit is contained in:
parent
0395ac6447
commit
62f589c5e3
@ -36,7 +36,7 @@ struct crisv32_ioport crisv32_ioports[] = {
|
||||
},
|
||||
};
|
||||
|
||||
#define NBR_OF_PORTS sizeof(crisv32_ioports)/sizeof(struct crisv32_ioport)
|
||||
#define NBR_OF_PORTS ARRAY_SIZE(crisv32_ioports)
|
||||
|
||||
struct crisv32_iopin crisv32_led_net0_green;
|
||||
struct crisv32_iopin crisv32_led_net0_red;
|
||||
|
@ -52,7 +52,7 @@ struct crisv32_ioport crisv32_ioports[] = {
|
||||
}
|
||||
};
|
||||
|
||||
#define NBR_OF_PORTS sizeof(crisv32_ioports)/sizeof(struct crisv32_ioport)
|
||||
#define NBR_OF_PORTS ARRAY_SIZE(crisv32_ioports)
|
||||
|
||||
struct crisv32_iopin crisv32_led_net0_green;
|
||||
struct crisv32_iopin crisv32_led_net0_red;
|
||||
|
Loading…
Reference in New Issue
Block a user