]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: sm750fb: Use ARRAY_SIZE macro
authorShraddha Barke <shraddha.6596@gmail.com>
Thu, 8 Oct 2015 19:25:17 +0000 (00:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:32:07 +0000 (20:32 -0700)
commit3329be922e44f105cd24d14737c7bd3c3650e820
treedf5d6c162c21a57fafcca8e172c5b69edd98076a
parentea136e41bcf6cfdd169adad73a0182ff46ceaaa9
Staging: sm750fb: Use ARRAY_SIZE macro

ARRAY_SIZE is more concise to use when the size of an array is divided
by the size of its first element.

Changes made using Coccinelle-

@@
type T;
T[] E;
@@

- (sizeof(E)/sizeof(E[...]))
+ ARRAY_SIZE(E)

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_chip.c