From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hqemgate15.nvidia.com (hqemgate15.nvidia.com. [216.228.121.64]) by gmr-mx.google.com with ESMTPS id r2si557672pfr.0.2016.01.26.22.08.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2016 22:08:37 -0800 (PST) Message-ID: <56A85C52.6040607@nvidia.com> Date: Wed, 27 Jan 2016 11:27:38 +0530 From: Laxman Dewangan MIME-Version: 1.0 To: Javier Martinez Canillas , CC: Kukjin Kim , , Andi Shyti , Chanwoo Choi , Alexandre Belloni , Krzysztof Kozlowski , Subject: [rtc-linux] Re: [PATCH v4 02/10] rtc: max77686: Use ARRAY_SIZE() instead of current array length References: <1453865806-4661-1-git-send-email-javier@osg.samsung.com> <1453865806-4661-3-git-send-email-javier@osg.samsung.com> In-Reply-To: <1453865806-4661-3-git-send-email-javier@osg.samsung.com> Content-Type: text/plain; charset=UTF-8; format=flowed Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , 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-by: Krzysztof Kozlowski > Reviewed-by: Andi Shyti > Acked-by: Laxman Dewangan -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laxman Dewangan Subject: Re: [PATCH v4 02/10] rtc: max77686: Use ARRAY_SIZE() instead of current array length Date: Wed, 27 Jan 2016 11:27:38 +0530 Message-ID: <56A85C52.6040607@nvidia.com> References: <1453865806-4661-1-git-send-email-javier@osg.samsung.com> <1453865806-4661-3-git-send-email-javier@osg.samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from hqemgate15.nvidia.com ([216.228.121.64]:9577 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753110AbcA0GIh (ORCPT ); Wed, 27 Jan 2016 01:08:37 -0500 In-Reply-To: <1453865806-4661-3-git-send-email-javier@osg.samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org List-Id: linux-samsung-soc@vger.kernel.org To: Javier Martinez Canillas , linux-kernel@vger.kernel.org Cc: Kukjin Kim , rtc-linux@googlegroups.com, Andi Shyti , Chanwoo Choi , Alexandre Belloni , Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org 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-by: Krzysztof Kozlowski > Reviewed-by: Andi Shyti > Acked-by: Laxman Dewangan From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753581AbcA0GIj (ORCPT ); Wed, 27 Jan 2016 01:08:39 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:9577 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753110AbcA0GIh (ORCPT ); Wed, 27 Jan 2016 01:08:37 -0500 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Tue, 26 Jan 2016 22:09:20 -0800 Message-ID: <56A85C52.6040607@nvidia.com> Date: Wed, 27 Jan 2016 11:27:38 +0530 From: Laxman Dewangan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Javier Martinez Canillas , CC: Kukjin Kim , , Andi Shyti , Chanwoo Choi , Alexandre Belloni , Krzysztof Kozlowski , Subject: Re: [PATCH v4 02/10] rtc: max77686: Use ARRAY_SIZE() instead of current array length References: <1453865806-4661-1-git-send-email-javier@osg.samsung.com> <1453865806-4661-3-git-send-email-javier@osg.samsung.com> In-Reply-To: <1453865806-4661-3-git-send-email-javier@osg.samsung.com> X-Originating-IP: [10.19.65.30] X-ClientProxiedBy: DRUKMAIL101.nvidia.com (10.25.59.19) To bgmail102.nvidia.com (10.25.59.11) Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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-by: Krzysztof Kozlowski > Reviewed-by: Andi Shyti > Acked-by: Laxman Dewangan