const unsigned int **pins,
unsigned int *num_pins)
{
- struct cy8c95x0_pinctrl *chip = pinctrl_dev_get_drvdata(pctldev);
-
- if (group >= chip->tpin) {
- *pins = NULL;
- *num_pins = 0;
- return 0;
- }
-
*pins = &cy8c9560_pins[group].number;
*num_pins = 1;
return 0;
{
struct cy8c95x0_pinctrl *chip = pinctrl_dev_get_drvdata(pctldev);
- if (group >= chip->tpin)
- return -EINVAL;
-
return cy8c95x0_pinmux_cfg(chip, selector, group);
}
int ret = 0;
int i;
- if (WARN_ON(pin >= chip->tpin))
- return -EINVAL;
-
for (i = 0; i < num_configs; i++) {
ret = cy8c95x0_gpio_set_pincfg(chip, pin, configs[i]);
if (ret)