diff options
author | Maxime COQUELIN <maxime.coquelin@st.com> | 2014-04-08 11:21:49 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-04-22 02:41:35 -0400 |
commit | 3b02dad20fd5f6159dd5b0b0408f8065d3f48714 (patch) | |
tree | fc079c0e04bbad026880affeb96d505d793e5ecc /drivers/pinctrl/pinctrl-st.c | |
parent | a4bc1f57fd911424a2b6101e096c43d2b8a82e7f (diff) |
pinctrl: st: Use ARRAY_SIZE for STiH415 data
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>
Diffstat (limited to 'drivers/pinctrl/pinctrl-st.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-st.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index ac48557df2a4..1bd6363bc95e 100644 --- a/drivers/pinctrl/pinctrl-st.c +++ b/drivers/pinctrl/pinctrl-st.c | |||
@@ -343,9 +343,9 @@ static const unsigned int stih415_output_delays[] = {0, 1000, 2000, 3000}; | |||
343 | #define STIH415_PCTRL_COMMON_DATA \ | 343 | #define STIH415_PCTRL_COMMON_DATA \ |
344 | .rt_style = st_retime_style_packed, \ | 344 | .rt_style = st_retime_style_packed, \ |
345 | .input_delays = stih415_input_delays, \ | 345 | .input_delays = stih415_input_delays, \ |
346 | .ninput_delays = 4, \ | 346 | .ninput_delays = ARRAY_SIZE(stih415_input_delays), \ |
347 | .output_delays = stih415_output_delays, \ | 347 | .output_delays = stih415_output_delays, \ |
348 | .noutput_delays = 4 | 348 | .noutput_delays = ARRAY_SIZE(stih415_output_delays) |
349 | 349 | ||
350 | static const struct st_pctl_data stih415_sbc_data = { | 350 | static const struct st_pctl_data stih415_sbc_data = { |
351 | STIH415_PCTRL_COMMON_DATA, | 351 | STIH415_PCTRL_COMMON_DATA, |