Re: [PATCH v4 02/10] rtc: max77686: Use ARRAY_SIZE() instead of current array length

2016-01-26 Thread Laxman Dewangan
On Wednesday 27 January 2016 09:06 AM, Javier Martinez Canillas wrote: It is better to use the ARRAY_SIZE() macro instead of the array length to avoid bugs if the array is later changed and the length not updated. Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Tested

[PATCH v4 02/10] rtc: max77686: Use ARRAY_SIZE() instead of current array length

2016-01-26 Thread Javier Martinez Canillas
It is better to use the ARRAY_SIZE() macro instead of the array length to avoid bugs if the array is later changed and the length not updated. Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Tested-by: Krzysztof Kozlowski Reviewed-by: Andi Shyti --- Changes in v4: -