/* Check that the given (pin group, pin) pair is a valid LPC18xx pin. Returns 0 on success, -EINVAL otherwise.  */
static int lpc18xx_validate_pin(int group, int pin)
/* Check that the given (pin group, pin) pair is a valid LPC18xx pin. Returns 0 on success, -EINVAL otherwise.  */
static int lpc18xx_validate_pin(int group, int pin)
{
	int rv = 0;
	if (((group >= LPC18XX_IOMUX_GROUPS ||
		pin >= LPC18XX_IOMUX_GROUP_PINS) &&
		(group != LPC18XX_IOMUX_CLK_GROUP ||
		pin >= LPC18XX_IOMUX_CLK_PINS))) {
		printk("IOMUX: incorrect params %d.%d.\n", group, pin);
		rv = -EINVAL;
	}
	return rv;
}