Re: [PATCH v2 02/10] rtc: max77686: Use ARRAY_SIZE() instead of current array length
From: Krzysztof Kozlowski
Date: Thu Jan 21 2016 - 19:53:49 EST
On 22.01.2016 05:23, 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 <javier@xxxxxxxxxxxxxxx>
> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx>
>
> ---
Tested on Trats2 board with max77686:
Tested-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx>
Best regards,
Krzysztof