Commit da1aa81c authored by Alexander Potashev's avatar Alexander Potashev

RT72064. stm32f2_gpio: fix formatting

Put multiline `printf()` calls in curly braces.
parent 75e64206
......@@ -150,10 +150,11 @@ s32 stm32f2_gpio_config(const struct stm32f2_gpio_dsc *dsc,
* Check params
*/
if (!dsc || dsc->port > 8 || dsc->pin > 15) {
if (gd->have_console)
if (gd->have_console) {
printf("%s: incorrect params %d.%d.\n", __func__,
dsc ? dsc->port : -1,
dsc ? dsc->pin : -1);
}
rv = -EINVAL;
goto out;
}
......@@ -254,10 +255,11 @@ s32 stm32f2_gpout_set(const struct stm32f2_gpio_dsc *dsc, int state)
s32 rv;
if (!dsc || dsc->port > 8 || dsc->pin > 15) {
if (gd->have_console)
if (gd->have_console) {
printf("%s: incorrect params %d.%d.\n", __func__,
dsc ? dsc->port : -1,
dsc ? dsc->pin : -1);
}
rv = -EINVAL;
goto out;
}
......
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