pinctrl: renesas: emev2: Share CF pin group data
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 23 Dec 2021 14:41:18 +0000 (15:41 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 22 Feb 2022 08:55:57 +0000 (09:55 +0100)
Pin group cf_data8 is a subset of cf_data16.

This reduces kernel size by 64 bytes.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/370d823be136cc9ead7051915a1454252a57efc4.1640269757.git.geert+renesas@glider.be
drivers/pinctrl/renesas/pfc-emev2.c

index 6c66fc3..30d08a4 100644 (file)
@@ -749,23 +749,14 @@ static const unsigned int cf_ctrl_mux[] = {
        CF_CDB2_MARK,
 };
 
-static const unsigned int cf_data8_pins[] = {
-       /* CF_D[0:7] */
-       77, 78, 79, 80,
-       81, 82, 83, 84,
-};
-static const unsigned int cf_data8_mux[] = {
-       CF_D00_MARK, CF_D01_MARK, CF_D02_MARK, CF_D03_MARK,
-       CF_D04_MARK, CF_D05_MARK, CF_D06_MARK, CF_D07_MARK,
-};
-static const unsigned int cf_data16_pins[] = {
+static const unsigned int cf_data_pins[] = {
        /* CF_D[0:15] */
        77, 78, 79, 80,
        81, 82, 83, 84,
        85, 86, 87, 88,
        89, 90, 91, 92,
 };
-static const unsigned int cf_data16_mux[] = {
+static const unsigned int cf_data_mux[] = {
        CF_D00_MARK, CF_D01_MARK, CF_D02_MARK, CF_D03_MARK,
        CF_D04_MARK, CF_D05_MARK, CF_D06_MARK, CF_D07_MARK,
        CF_D08_MARK, CF_D09_MARK, CF_D10_MARK, CF_D11_MARK,
@@ -1131,8 +1122,8 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
        SH_PFC_PIN_GROUP(cam),
 
        SH_PFC_PIN_GROUP(cf_ctrl),
-       SH_PFC_PIN_GROUP(cf_data8),
-       SH_PFC_PIN_GROUP(cf_data16),
+       BUS_DATA_PIN_GROUP(cf_data, 8),
+       BUS_DATA_PIN_GROUP(cf_data, 16),
 
        SH_PFC_PIN_GROUP(dtv_a),
        SH_PFC_PIN_GROUP(dtv_b),