Re: [PATCH] pinctrl: imx: do not implicitly set pin regs to -1

From: Uwe Kleine-König
Date: Fri Feb 06 2015 - 14:21:28 EST


Hallo Stefan,

On Fri, Feb 06, 2015 at 05:30:56PM +0100, Stefan Agner wrote:
> - memset(info->pin_regs, 0xff, sizeof(*info->pin_regs) * info->npins);
> +
> + for (i = 0; i < info->npins; i++) {
> + info->pin_regs[i].mux_reg = -1;
> + info->pin_regs[i].conf_reg = -1;
> + }
looks definitely better. Just out of interest, did you check if it
changes the generated code?

Acked-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>

Thanks
Uwe

--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/