From patchwork Tue Apr 8 15:21:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime COQUELIN X-Patchwork-Id: 28015 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 381A220447 for ; Tue, 8 Apr 2014 15:23:23 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id lg15sf3044832vcb.7 for ; Tue, 08 Apr 2014 08:23:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=btwM7KzvwCYef72dsPw9OQvnY5OjJIbOERc7sf8ASiU=; b=WzMiCSuWBDmplSizNUmZucc04WAnZZOmFOg6iw0TuJH1LRIequSn+NAQ/tI47Nkv2I CmR6R5/ANB+czzrNYkRcCG2gOE7M7UwlD8Z01O4P6bHRz9fXTh9VUX40BmEdQqLxswEi 2gQkXgKfmVOBceb2jkzo4vwUXdo9HIYpfhe0jjuU/EQUyAvD/rZnUSezvqS2xSLf7pBr VjiqDb1h10fkLzRZSZhyadJLmHG7Snr58UCVm161l4wTW46DbKNsTHUvsiI2PeO7SiNt njNhgi77fjgIzAIkE1RngLNECthx8lu8xbQehvFlCk9wEGoZ2iwC+TO/FYdbZvASExpZ 5jhA== X-Gm-Message-State: ALoCoQk/vFnGtENSLs2Yng2z6EQ7DjkEPFvXA3MaGhs15642CihekbytFn7aFyA/RJr1RVp2mgXj X-Received: by 10.236.117.79 with SMTP id i55mr1668058yhh.16.1396970602765; Tue, 08 Apr 2014 08:23:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.106 with SMTP id 97ls245842qgo.34.gmail; Tue, 08 Apr 2014 08:23:22 -0700 (PDT) X-Received: by 10.221.55.133 with SMTP id vy5mr3713965vcb.17.1396970602584; Tue, 08 Apr 2014 08:23:22 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id ls10si455713vec.64.2014.04.08.08.23.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 08:23:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id lc6so884076vcb.7 for ; Tue, 08 Apr 2014 08:23:22 -0700 (PDT) X-Received: by 10.220.106.84 with SMTP id w20mr3728658vco.18.1396970602488; Tue, 08 Apr 2014 08:23:22 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp254673vcv; Tue, 8 Apr 2014 08:23:21 -0700 (PDT) X-Received: by 10.66.197.201 with SMTP id iw9mr5263568pac.151.1396970601483; Tue, 08 Apr 2014 08:23:21 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pc9si1246061pac.189.2014.04.08.08.23.20; Tue, 08 Apr 2014 08:23:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932293AbaDHPXI (ORCPT + 27 others); Tue, 8 Apr 2014 11:23:08 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:32876 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757142AbaDHPXD (ORCPT ); Tue, 8 Apr 2014 11:23:03 -0400 Received: from pps.filterd (m0046670.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.14.5/8.14.5) with SMTP id s38FL8wT017586; Tue, 8 Apr 2014 17:21:56 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 1k2ekpekvn-1 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Tue, 08 Apr 2014 17:21:56 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B88A553; Tue, 8 Apr 2014 15:21:55 +0000 (GMT) Received: from mail7.sgp.st.com (unknown [164.129.223.81]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 233A02D4EB; Tue, 8 Apr 2014 15:21:55 +0000 (GMT) Received: from lmenx29l.st.com (lmenx29l.lme.st.com [10.201.23.80]) by mail7.sgp.st.com (MOS 4.3.3-GA) with ESMTP id BZB24827 (AUTH lme00137); Tue, 8 Apr 2014 17:21:54 +0200 From: Maxime COQUELIN To: Linus Walleij , Joe Perches , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, maxime.coquelin@st.com Subject: [PATCH 2/2] pinctrl: st: Use ARRAY_SIZE for STiH415 data Date: Tue, 8 Apr 2014 17:21:49 +0200 Message-Id: <1396970509-28009-3-git-send-email-maxime.coquelin@st.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1396970509-28009-1-git-send-email-maxime.coquelin@st.com> References: <1396970509-28009-1-git-send-email-maxime.coquelin@st.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.96, 1.0.14, 0.0.0000 definitions=2014-04-08_04:2014-04-08, 2014-04-08, 1970-01-01 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxime.coquelin@st.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch completes the one that used ARRAY_SIZE for STiH407 and STiH416 for setting ninput_delays and noutput_delays fields. Signed-off-by: Maxime Coquelin --- drivers/pinctrl/pinctrl-st.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index 868f10f..6e65cfd 100644 --- a/drivers/pinctrl/pinctrl-st.c +++ b/drivers/pinctrl/pinctrl-st.c @@ -348,9 +348,9 @@ static const unsigned int stih415_output_delays[] = {0, 1000, 2000, 3000}; #define STIH415_PCTRL_COMMON_DATA \ .rt_style = st_retime_style_packed, \ .input_delays = stih415_input_delays, \ - .ninput_delays = 4, \ + .ninput_delays = ARRAY_SIZE(stih415_input_delays), \ .output_delays = stih415_output_delays, \ - .noutput_delays = 4 + .noutput_delays = ARRAY_SIZE(stih415_output_delays) static const struct st_pctl_data stih415_sbc_data = { STIH415_PCTRL_COMMON_DATA,