diff mbox

[2/2] pinctrl: st: Use ARRAY_SIZE for STiH415 data

Message ID 1396970509-28009-3-git-send-email-maxime.coquelin@st.com
State Accepted
Commit 3b02dad20fd5f6159dd5b0b0408f8065d3f48714
Headers show

Commit Message

Maxime COQUELIN April 8, 2014, 3:21 p.m. UTC
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 <maxime.coquelin@st.com>
---
 drivers/pinctrl/pinctrl-st.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Linus Walleij April 10, 2014, 6:08 p.m. UTC | #1
On Tue, Apr 8, 2014 at 5:21 PM, Maxime COQUELIN <maxime.coquelin@st.com> wrote:

> 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 <maxime.coquelin@st.com>

Patch applied.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
diff mbox

Patch

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,