diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2020-01-10 14:19:25 +0100 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2020-02-21 13:57:44 +0100 |
commit | 4bd7d16a309e034ec92b13840bae5668918ddd5b (patch) | |
tree | a300c398a5358b3849aad8b2253faeafd29a11e2 /drivers/pinctrl | |
parent | 8990cd297f1508904d3773f6a2c5af531e8649ca (diff) | |
download | linux-4bd7d16a309e034ec92b13840bae5668918ddd5b.tar.gz linux-4bd7d16a309e034ec92b13840bae5668918ddd5b.tar.bz2 linux-4bd7d16a309e034ec92b13840bae5668918ddd5b.zip |
pinctrl: sh-pfc: checker: Add ioctrl register checks
Add checks for generic control register descriptors:
1. Register addresses must be unique.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/20200110131927.1029-12-geert+renesas@glider.be
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/sh-pfc/core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/core.c b/drivers/pinctrl/sh-pfc/core.c index fcd11d83ee41..42432db4fc0b 100644 --- a/drivers/pinctrl/sh-pfc/core.c +++ b/drivers/pinctrl/sh-pfc/core.c @@ -1000,6 +1000,10 @@ static void __init sh_pfc_check_info(const struct sh_pfc_soc_info *info) /* Check bias registers */ for (i = 0; info->bias_regs && info->bias_regs[i].puen; i++) sh_pfc_check_bias_reg(info, &info->bias_regs[i]); + + /* Check ioctrl registers */ + for (i = 0; info->ioctrl_regs && info->ioctrl_regs[i].reg; i++) + sh_pfc_check_reg(drvname, info->ioctrl_regs[i].reg); } static void __init sh_pfc_check_driver(const struct platform_driver *pdrv) |