/* Configure the specified MCU pin. Returns 0 on success, -EINVAL otherwise.  */
int lpc18xx_pin_config(const struct lpc18xx_iomux_dsc *dsc, u32 regval)
/* Configure the specified MCU pin. Returns 0 on success, -EINVAL otherwise.  */
int lpc18xx_pin_config(const struct lpc18xx_iomux_dsc *dsc, u32 regval)
{
	int rv;
	rv = lpc18xx_validate_pin(dsc);
	if (rv == 0)
		LPC18XX_PIN(dsc->group, dsc->pin) = regval;
	return rv;
}