• Geert Uytterhoeven's avatar
    pinctrl: sh-pfc: Absorb enum IDs in PINMUX_DATA_REG() macro · 19b593a1
    Geert Uytterhoeven authored
    Currently the PINMUX_DATA_REG() macro must be followed by initialization
    data, specifying all enum IDs.  Hence the macro itself does not know
    anything about the enum IDs, preventing the macro from performing any
    validation on it.
    
    Make the macro accept the enum IDs as a parameter, and update all users.
    Note that array data enclosed by curly braces cannot be passed to a
    macro as a parameter, hence the enum IDs are wrapped using the GROUP()
    macro.
    
    No functional changes.
    Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
    19b593a1
pfc-sh73a0.c 128 KB