pinctrl: sh-pfc: Validate enum IDs for regs with fixed-width fields
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 18 Dec 2018 08:31:49 +0000 (09:31 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 2 Apr 2019 07:58:04 +0000 (09:58 +0200)
commitc481c8178420b8cc8b188807fe6eee8b069ce2d8
treeca61ce438d43f3af5541b23e6ba7146c90c04ebd
parent19b593a1cf068effeca496f5dc92e5ad43f91bb2
pinctrl: sh-pfc: Validate enum IDs for regs with fixed-width fields

Add build-time checks to the PINMUX_CFG_REG() and PINMUX_DATA_REG()
macros, to ensure the number of provided enum IDs is correct.

This helps catching bugs early.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/sh-pfc/sh_pfc.h