/* Configure a set of GPIO pins using the given configuration table. Returns 0 on success.  */
int lpc178x_gpio_config_table(const struct lpc178x_gpio_pin_config *table, unsigned int len)
/* Configure a set of GPIO pins using the given configuration table. Returns 0 on success.  */
int lpc178x_gpio_config_table(const struct lpc178x_gpio_pin_config *table, unsigned int len)
{
	unsigned int i;
	int rv;
	for (i = 0; i < len; i ++) {
		rv = lpc178x_gpio_config(&table[i].dsc, table[i].regval);
		if (rv != 0)
			goto out;
	}
	rv = 0;
out:
	return rv;
}