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>
 
        if (pll->clockType != MXCLK_PLL) {
                xparm = &xparm_PIXEL[0];
-               xcnt = sizeof(xparm_PIXEL) / sizeof(xparm_PIXEL[0]);
+               xcnt = ARRAY_SIZE(xparm_PIXEL);
        } else {
                xparm = &xparm_MXCLK[0];
-               xcnt = sizeof(xparm_MXCLK) / sizeof(xparm_MXCLK[0]);
+               xcnt = ARRAY_SIZE(xparm_MXCLK);
        }