Skip to content

Commit 5ffdbb7

Browse files
pcercueilinusw
authored andcommitted
pinctrl: ingenic: Remove duplicated ingenic_chip_info structures
Until there is the need to handle the JZ4760B and X1000E differently there is no reason to use a separate ingenic_chip_info since the data it contains is the same than for the JZ4760 and X1000 respectively. Signed-off-by: Paul Cercueil <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent baf1564 commit 5ffdbb7

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

drivers/pinctrl/pinctrl-ingenic.c

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ enum jz_version {
6161
ID_JZ4740,
6262
ID_JZ4725B,
6363
ID_JZ4760,
64-
ID_JZ4760B,
6564
ID_JZ4770,
6665
ID_JZ4780,
6766
ID_X1000,
68-
ID_X1000E,
6967
ID_X1500,
7068
ID_X1830,
7169
};
@@ -615,18 +613,6 @@ static const struct ingenic_chip_info jz4760_chip_info = {
615613
.pull_downs = jz4760_pull_downs,
616614
};
617615

618-
static const struct ingenic_chip_info jz4760b_chip_info = {
619-
.num_chips = 6,
620-
.reg_offset = 0x100,
621-
.version = ID_JZ4760B,
622-
.groups = jz4760_groups,
623-
.num_groups = ARRAY_SIZE(jz4760_groups),
624-
.functions = jz4760_functions,
625-
.num_functions = ARRAY_SIZE(jz4760_functions),
626-
.pull_ups = jz4760_pull_ups,
627-
.pull_downs = jz4760_pull_downs,
628-
};
629-
630616
static const u32 jz4770_pull_ups[6] = {
631617
0x3fffffff, 0xfff0030c, 0xffffffff, 0xffff4fff, 0xfffffb7c, 0xffa7f00f,
632618
};
@@ -1300,18 +1286,6 @@ static const struct ingenic_chip_info x1000_chip_info = {
13001286
.pull_downs = x1000_pull_downs,
13011287
};
13021288

1303-
static const struct ingenic_chip_info x1000e_chip_info = {
1304-
.num_chips = 4,
1305-
.reg_offset = 0x100,
1306-
.version = ID_X1000E,
1307-
.groups = x1000_groups,
1308-
.num_groups = ARRAY_SIZE(x1000_groups),
1309-
.functions = x1000_functions,
1310-
.num_functions = ARRAY_SIZE(x1000_functions),
1311-
.pull_ups = x1000_pull_ups,
1312-
.pull_downs = x1000_pull_downs,
1313-
};
1314-
13151289
static int x1500_uart0_data_pins[] = { 0x4a, 0x4b, };
13161290
static int x1500_uart0_hwflow_pins[] = { 0x4c, 0x4d, };
13171291
static int x1500_uart1_data_a_pins[] = { 0x04, 0x05, };
@@ -2460,11 +2434,11 @@ static const struct of_device_id ingenic_pinctrl_of_match[] = {
24602434
{ .compatible = "ingenic,jz4740-pinctrl", .data = &jz4740_chip_info },
24612435
{ .compatible = "ingenic,jz4725b-pinctrl", .data = &jz4725b_chip_info },
24622436
{ .compatible = "ingenic,jz4760-pinctrl", .data = &jz4760_chip_info },
2463-
{ .compatible = "ingenic,jz4760b-pinctrl", .data = &jz4760b_chip_info },
2437+
{ .compatible = "ingenic,jz4760b-pinctrl", .data = &jz4760_chip_info },
24642438
{ .compatible = "ingenic,jz4770-pinctrl", .data = &jz4770_chip_info },
24652439
{ .compatible = "ingenic,jz4780-pinctrl", .data = &jz4780_chip_info },
24662440
{ .compatible = "ingenic,x1000-pinctrl", .data = &x1000_chip_info },
2467-
{ .compatible = "ingenic,x1000e-pinctrl", .data = &x1000e_chip_info },
2441+
{ .compatible = "ingenic,x1000e-pinctrl", .data = &x1000_chip_info },
24682442
{ .compatible = "ingenic,x1500-pinctrl", .data = &x1500_chip_info },
24692443
{ .compatible = "ingenic,x1830-pinctrl", .data = &x1830_chip_info },
24702444
{},

0 commit comments

Comments
 (0)