pinctrl: st: Use ARRAY_SIZE for STiH415 data
authorMaxime COQUELIN <maxime.coquelin@st.com>
Tue, 8 Apr 2014 15:21:49 +0000 (17:21 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Apr 2014 06:41:35 +0000 (08:41 +0200)
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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-st.c

index ac48557df2a40050b12ceb1a2a963cbbda1258ca..1bd6363bc95ef2b0d0bd2b58d733159941c78fa0 100644 (file)
@@ -343,9 +343,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,