Commit 3b02dad2 authored by Maxime COQUELIN's avatar Maxime COQUELIN Committed by Linus Walleij

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: default avatarMaxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a4bc1f57
...@@ -343,9 +343,9 @@ static const unsigned int stih415_output_delays[] = {0, 1000, 2000, 3000}; ...@@ -343,9 +343,9 @@ static const unsigned int stih415_output_delays[] = {0, 1000, 2000, 3000};
#define STIH415_PCTRL_COMMON_DATA \ #define STIH415_PCTRL_COMMON_DATA \
.rt_style = st_retime_style_packed, \ .rt_style = st_retime_style_packed, \
.input_delays = stih415_input_delays, \ .input_delays = stih415_input_delays, \
.ninput_delays = 4, \ .ninput_delays = ARRAY_SIZE(stih415_input_delays), \
.output_delays = stih415_output_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 = { static const struct st_pctl_data stih415_sbc_data = {
STIH415_PCTRL_COMMON_DATA, STIH415_PCTRL_COMMON_DATA,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment