]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: sh-pfc: Add optional arg to VIN_DATA_PIN_GROUP
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Thu, 8 Nov 2018 16:07:22 +0000 (17:07 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 13 Nov 2018 09:52:09 +0000 (10:52 +0100)
commitb2b50f84d858ecfb0d42936918d78979f8885d85
treee838816b318f9cdf76782545424784313f25fdc9
parent22c940f4b0dfea22eec19f2aa64214f776c35f92
pinctrl: sh-pfc: Add optional arg to VIN_DATA_PIN_GROUP

VIN data groups may appear on different sets of pins, usually named
"vinX_data_[a|b]". The existing VIN_DATA_PIN_GROUP() does not support
appending the '_a' or '_b' suffix, leading to the definition of group
names not consistent with the ones defined using the SH_PFC_PIN_GROUP()
macro.

Fix this by making the VIN_DATA_PIN_GROUP macro a variadic one,
which accepts an optional 'version' argument.

Fixes: 26c9c76bdd4a ("pinctrl: sh-pfc: r8a779[01]: Move 'union vin_data' to shared header file")
Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/sh-pfc/sh_pfc.h