diff options
author | 2010-09-08 22:27:55 +0100 | |
---|---|---|
committer | 2010-09-08 21:31:25 -0700 | |
commit | baa5251e8c5caf8b242559c8e93657036dfd8d3c (patch) | |
tree | 1437b392eadf66168f818c4ea9e76c4b2b5646cc /drivers/staging/vt6656 | |
parent | Staging: comedi: fix space coding style issue in adl_pci9111.c (diff) | |
download | linux-baa5251e8c5caf8b242559c8e93657036dfd8d3c.tar.gz linux-baa5251e8c5caf8b242559c8e93657036dfd8d3c.tar.bz2 linux-baa5251e8c5caf8b242559c8e93657036dfd8d3c.zip |
Staging: vt6656: use ARRAY_SIZE macro in channel.c
Replace (sizeof(ChannelRuleTab) / sizeof(ChannelRuleTab[0])) with
ARRAY_SIZE(ChannelRuleTab) in drivers/staging/vt6656/channel.c
Signed-off-by: Nikitas Angelinas <nikitasangelinas@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6656')
-rw-r--r-- | drivers/staging/vt6656/channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/channel.c b/drivers/staging/vt6656/channel.c index 6ad03e492edb..a2460ae1ec42 100644 --- a/drivers/staging/vt6656/channel.c +++ b/drivers/staging/vt6656/channel.c @@ -34,6 +34,7 @@ * */ +#include <linux/kernel.h> #include "country.h" #include "channel.h" #include "rf.h" @@ -367,7 +368,7 @@ static struct /* 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 */ }; -#define NUM_RULES (sizeof(ChannelRuleTab) / sizeof(ChannelRuleTab[0])) +#define NUM_RULES ARRAY_SIZE(ChannelRuleTab) /*--------------------- Export function -------------------------*/ /************************************************************************ |