aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/uniphier
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-05-31 04:05:08 -0400
committerLinus Walleij <linus.walleij@linaro.org>2016-05-31 06:36:12 -0400
commita4c6052bc1c498dc9de7488263ae94cea0b33c4d (patch)
tree7586247876ea1bc42b1266b37856792fd9f79b21 /drivers/pinctrl/uniphier
parent10ef8277ec658bf6619da9b3fd65c2db7353c2a4 (diff)
pinctrl: uniphier: rename function and variable names
Make function/variable names match the file names for consistency. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/uniphier')
-rw-r--r--drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c42
-rw-r--r--drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c42
-rw-r--r--drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c42
-rw-r--r--drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c42
-rw-r--r--drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c42
-rw-r--r--drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c42
6 files changed, 126 insertions, 126 deletions
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c
index 4a0439c80aa0..fdcdc9129ea5 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c
@@ -19,9 +19,9 @@
19 19
20#include "pinctrl-uniphier.h" 20#include "pinctrl-uniphier.h"
21 21
22#define DRIVER_NAME "ph1-ld4-pinctrl" 22#define DRIVER_NAME "uniphier-ld4-pinctrl"
23 23
24static const struct pinctrl_pin_desc ph1_ld4_pins[] = { 24static const struct pinctrl_pin_desc uniphier_ld4_pins[] = {
25 UNIPHIER_PINCTRL_PIN(0, "EA1", UNIPHIER_PIN_IECTRL_NONE, 25 UNIPHIER_PINCTRL_PIN(0, "EA1", UNIPHIER_PIN_IECTRL_NONE,
26 8, UNIPHIER_PIN_DRV_4_8, 26 8, UNIPHIER_PIN_DRV_4_8,
27 8, UNIPHIER_PIN_PULL_DOWN), 27 8, UNIPHIER_PIN_PULL_DOWN),
@@ -612,7 +612,7 @@ static const unsigned xirq_range1_muxvals[] = {
612 0, 14, /* XIRQ14-15 */ 612 0, 14, /* XIRQ14-15 */
613}; 613};
614 614
615static const struct uniphier_pinctrl_group ph1_ld4_groups[] = { 615static const struct uniphier_pinctrl_group uniphier_ld4_groups[] = {
616 UNIPHIER_PINCTRL_GROUP(emmc), 616 UNIPHIER_PINCTRL_GROUP(emmc),
617 UNIPHIER_PINCTRL_GROUP(emmc_dat8), 617 UNIPHIER_PINCTRL_GROUP(emmc_dat8),
618 UNIPHIER_PINCTRL_GROUP(i2c0), 618 UNIPHIER_PINCTRL_GROUP(i2c0),
@@ -828,7 +828,7 @@ static const char * const xirq_groups[] = {
828 "xirq12", /* none*/ "xirq14", "xirq15", 828 "xirq12", /* none*/ "xirq14", "xirq15",
829}; 829};
830 830
831static const struct uniphier_pinmux_function ph1_ld4_functions[] = { 831static const struct uniphier_pinmux_function uniphier_ld4_functions[] = {
832 UNIPHIER_PINMUX_FUNCTION(emmc), 832 UNIPHIER_PINMUX_FUNCTION(emmc),
833 UNIPHIER_PINMUX_FUNCTION(i2c0), 833 UNIPHIER_PINMUX_FUNCTION(i2c0),
834 UNIPHIER_PINMUX_FUNCTION(i2c1), 834 UNIPHIER_PINMUX_FUNCTION(i2c1),
@@ -847,43 +847,43 @@ static const struct uniphier_pinmux_function ph1_ld4_functions[] = {
847 UNIPHIER_PINMUX_FUNCTION(xirq), 847 UNIPHIER_PINMUX_FUNCTION(xirq),
848}; 848};
849 849
850static struct uniphier_pinctrl_socdata ph1_ld4_pindata = { 850static struct uniphier_pinctrl_socdata uniphier_ld4_pindata = {
851 .groups = ph1_ld4_groups, 851 .groups = uniphier_ld4_groups,
852 .groups_count = ARRAY_SIZE(ph1_ld4_groups), 852 .groups_count = ARRAY_SIZE(uniphier_ld4_groups),
853 .functions = ph1_ld4_functions, 853 .functions = uniphier_ld4_functions,
854 .functions_count = ARRAY_SIZE(ph1_ld4_functions), 854 .functions_count = ARRAY_SIZE(uniphier_ld4_functions),
855 .mux_bits = 8, 855 .mux_bits = 8,
856 .reg_stride = 4, 856 .reg_stride = 4,
857 .load_pinctrl = false, 857 .load_pinctrl = false,
858}; 858};
859 859
860static struct pinctrl_desc ph1_ld4_pinctrl_desc = { 860static struct pinctrl_desc uniphier_ld4_pinctrl_desc = {
861 .name = DRIVER_NAME, 861 .name = DRIVER_NAME,
862 .pins = ph1_ld4_pins, 862 .pins = uniphier_ld4_pins,
863 .npins = ARRAY_SIZE(ph1_ld4_pins), 863 .npins = ARRAY_SIZE(uniphier_ld4_pins),
864 .owner = THIS_MODULE, 864 .owner = THIS_MODULE,
865}; 865};
866 866
867static int ph1_ld4_pinctrl_probe(struct platform_device *pdev) 867static int uniphier_ld4_pinctrl_probe(struct platform_device *pdev)
868{ 868{
869 return uniphier_pinctrl_probe(pdev, &ph1_ld4_pinctrl_desc, 869 return uniphier_pinctrl_probe(pdev, &uniphier_ld4_pinctrl_desc,
870 &ph1_ld4_pindata); 870 &uniphier_ld4_pindata);
871} 871}
872 872
873static const struct of_device_id ph1_ld4_pinctrl_match[] = { 873static const struct of_device_id uniphier_ld4_pinctrl_match[] = {
874 { .compatible = "socionext,ph1-ld4-pinctrl" }, 874 { .compatible = "socionext,ph1-ld4-pinctrl" },
875 { /* sentinel */ } 875 { /* sentinel */ }
876}; 876};
877MODULE_DEVICE_TABLE(of, ph1_ld4_pinctrl_match); 877MODULE_DEVICE_TABLE(of, uniphier_ld4_pinctrl_match);
878 878
879static struct platform_driver ph1_ld4_pinctrl_driver = { 879static struct platform_driver uniphier_ld4_pinctrl_driver = {
880 .probe = ph1_ld4_pinctrl_probe, 880 .probe = uniphier_ld4_pinctrl_probe,
881 .driver = { 881 .driver = {
882 .name = DRIVER_NAME, 882 .name = DRIVER_NAME,
883 .of_match_table = ph1_ld4_pinctrl_match, 883 .of_match_table = uniphier_ld4_pinctrl_match,
884 }, 884 },
885}; 885};
886module_platform_driver(ph1_ld4_pinctrl_driver); 886module_platform_driver(uniphier_ld4_pinctrl_driver);
887 887
888MODULE_AUTHOR("Masahiro Yamada <yamada.masahiro@socionext.com>"); 888MODULE_AUTHOR("Masahiro Yamada <yamada.masahiro@socionext.com>");
889MODULE_DESCRIPTION("UniPhier PH1-LD4 pinctrl driver"); 889MODULE_DESCRIPTION("UniPhier PH1-LD4 pinctrl driver");
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c
index 150d33928df2..99a3e1ab8b43 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c
@@ -19,9 +19,9 @@
19 19
20#include "pinctrl-uniphier.h" 20#include "pinctrl-uniphier.h"
21 21
22#define DRIVER_NAME "ph1-ld6b-pinctrl" 22#define DRIVER_NAME "uniphier-ld6b-pinctrl"
23 23
24static const struct pinctrl_pin_desc ph1_ld6b_pins[] = { 24static const struct pinctrl_pin_desc uniphier_ld6b_pins[] = {
25 UNIPHIER_PINCTRL_PIN(0, "ED0", UNIPHIER_PIN_IECTRL_NONE, 25 UNIPHIER_PINCTRL_PIN(0, "ED0", UNIPHIER_PIN_IECTRL_NONE,
26 0, UNIPHIER_PIN_DRV_4_8, 26 0, UNIPHIER_PIN_DRV_4_8,
27 0, UNIPHIER_PIN_PULL_DOWN), 27 0, UNIPHIER_PIN_PULL_DOWN),
@@ -858,7 +858,7 @@ static const unsigned xirq_muxvals[] = {
858 14, 14, 14, 14, 14, 14, 14, 14, /* XIRQ16-23 */ 858 14, 14, 14, 14, 14, 14, 14, 14, /* XIRQ16-23 */
859}; 859};
860 860
861static const struct uniphier_pinctrl_group ph1_ld6b_groups[] = { 861static const struct uniphier_pinctrl_group uniphier_ld6b_groups[] = {
862 UNIPHIER_PINCTRL_GROUP(adinter), 862 UNIPHIER_PINCTRL_GROUP(adinter),
863 UNIPHIER_PINCTRL_GROUP(emmc), 863 UNIPHIER_PINCTRL_GROUP(emmc),
864 UNIPHIER_PINCTRL_GROUP(emmc_dat8), 864 UNIPHIER_PINCTRL_GROUP(emmc_dat8),
@@ -1215,7 +1215,7 @@ static const char * const xirq_groups[] = {
1215 "xirq20", "xirq21", "xirq22", "xirq23", 1215 "xirq20", "xirq21", "xirq22", "xirq23",
1216}; 1216};
1217 1217
1218static const struct uniphier_pinmux_function ph1_ld6b_functions[] = { 1218static const struct uniphier_pinmux_function uniphier_ld6b_functions[] = {
1219 UNIPHIER_PINMUX_FUNCTION(adinter), /* Achip-Dchip interconnect */ 1219 UNIPHIER_PINMUX_FUNCTION(adinter), /* Achip-Dchip interconnect */
1220 UNIPHIER_PINMUX_FUNCTION(emmc), 1220 UNIPHIER_PINMUX_FUNCTION(emmc),
1221 UNIPHIER_PINMUX_FUNCTION(i2c0), 1221 UNIPHIER_PINMUX_FUNCTION(i2c0),
@@ -1235,43 +1235,43 @@ static const struct uniphier_pinmux_function ph1_ld6b_functions[] = {
1235 UNIPHIER_PINMUX_FUNCTION(xirq), 1235 UNIPHIER_PINMUX_FUNCTION(xirq),
1236}; 1236};
1237 1237
1238static struct uniphier_pinctrl_socdata ph1_ld6b_pindata = { 1238static struct uniphier_pinctrl_socdata uniphier_ld6b_pindata = {
1239 .groups = ph1_ld6b_groups, 1239 .groups = uniphier_ld6b_groups,
1240 .groups_count = ARRAY_SIZE(ph1_ld6b_groups), 1240 .groups_count = ARRAY_SIZE(uniphier_ld6b_groups),
1241 .functions = ph1_ld6b_functions, 1241 .functions = uniphier_ld6b_functions,
1242 .functions_count = ARRAY_SIZE(ph1_ld6b_functions), 1242 .functions_count = ARRAY_SIZE(uniphier_ld6b_functions),
1243 .mux_bits = 8, 1243 .mux_bits = 8,
1244 .reg_stride = 4, 1244 .reg_stride = 4,
1245 .load_pinctrl = false, 1245 .load_pinctrl = false,
1246}; 1246};
1247 1247
1248static struct pinctrl_desc ph1_ld6b_pinctrl_desc = { 1248static struct pinctrl_desc uniphier_ld6b_pinctrl_desc = {
1249 .name = DRIVER_NAME, 1249 .name = DRIVER_NAME,
1250 .pins = ph1_ld6b_pins, 1250 .pins = uniphier_ld6b_pins,
1251 .npins = ARRAY_SIZE(ph1_ld6b_pins), 1251 .npins = ARRAY_SIZE(uniphier_ld6b_pins),
1252 .owner = THIS_MODULE, 1252 .owner = THIS_MODULE,
1253}; 1253};
1254 1254
1255static int ph1_ld6b_pinctrl_probe(struct platform_device *pdev) 1255static int uniphier_ld6b_pinctrl_probe(struct platform_device *pdev)
1256{ 1256{
1257 return uniphier_pinctrl_probe(pdev, &ph1_ld6b_pinctrl_desc, 1257 return uniphier_pinctrl_probe(pdev, &uniphier_ld6b_pinctrl_desc,
1258 &ph1_ld6b_pindata); 1258 &uniphier_ld6b_pindata);
1259} 1259}
1260 1260
1261static const struct of_device_id ph1_ld6b_pinctrl_match[] = { 1261static const struct of_device_id uniphier_ld6b_pinctrl_match[] = {
1262 { .compatible = "socionext,ph1-ld6b-pinctrl" }, 1262 { .compatible = "socionext,ph1-ld6b-pinctrl" },
1263 { /* sentinel */ } 1263 { /* sentinel */ }
1264}; 1264};
1265MODULE_DEVICE_TABLE(of, ph1_ld6b_pinctrl_match); 1265MODULE_DEVICE_TABLE(of, uniphier_ld6b_pinctrl_match);
1266 1266
1267static struct platform_driver ph1_ld6b_pinctrl_driver = { 1267static struct platform_driver uniphier_ld6b_pinctrl_driver = {
1268 .probe = ph1_ld6b_pinctrl_probe, 1268 .probe = uniphier_ld6b_pinctrl_probe,
1269 .driver = { 1269 .driver = {
1270 .name = DRIVER_NAME, 1270 .name = DRIVER_NAME,
1271 .of_match_table = ph1_ld6b_pinctrl_match, 1271 .of_match_table = uniphier_ld6b_pinctrl_match,
1272 }, 1272 },
1273}; 1273};
1274module_platform_driver(ph1_ld6b_pinctrl_driver); 1274module_platform_driver(uniphier_ld6b_pinctrl_driver);
1275 1275
1276MODULE_AUTHOR("Masahiro Yamada <yamada.masahiro@socionext.com>"); 1276MODULE_AUTHOR("Masahiro Yamada <yamada.masahiro@socionext.com>");
1277MODULE_DESCRIPTION("UniPhier PH1-LD6b pinctrl driver"); 1277MODULE_DESCRIPTION("UniPhier PH1-LD6b pinctrl driver");
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c
index b1f09e68f90e..2d4530789dd9 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c
@@ -19,9 +19,9 @@
19 19
20#include "pinctrl-uniphier.h" 20#include "pinctrl-uniphier.h"
21 21
22#define DRIVER_NAME "ph1-pro4-pinctrl" 22#define DRIVER_NAME "uniphier-pro4-pinctrl"
23 23
24static const struct pinctrl_pin_desc ph1_pro4_pins[] = { 24static const struct pinctrl_pin_desc uniphier_pro4_pins[] = {
25 UNIPHIER_PINCTRL_PIN(0, "CK24O", UNIPHIER_PIN_IECTRL_NONE, 25 UNIPHIER_PINCTRL_PIN(0, "CK24O", UNIPHIER_PIN_IECTRL_NONE,
26 0, UNIPHIER_PIN_DRV_4_8, 26 0, UNIPHIER_PIN_DRV_4_8,
27 0, UNIPHIER_PIN_PULL_DOWN), 27 0, UNIPHIER_PIN_PULL_DOWN),
@@ -1135,7 +1135,7 @@ static const unsigned xirq_alternatives_muxvals[] = {
1135 2, 2, 2, 1135 2, 2, 2,
1136}; 1136};
1137 1137
1138static const struct uniphier_pinctrl_group ph1_pro4_groups[] = { 1138static const struct uniphier_pinctrl_group uniphier_pro4_groups[] = {
1139 UNIPHIER_PINCTRL_GROUP(emmc), 1139 UNIPHIER_PINCTRL_GROUP(emmc),
1140 UNIPHIER_PINCTRL_GROUP(emmc_dat8), 1140 UNIPHIER_PINCTRL_GROUP(emmc_dat8),
1141 UNIPHIER_PINCTRL_GROUP(i2c0), 1141 UNIPHIER_PINCTRL_GROUP(i2c0),
@@ -1499,7 +1499,7 @@ static const char * const xirq_groups[] = {
1499 "xirq14b", "xirq17b", "xirq18b", 1499 "xirq14b", "xirq17b", "xirq18b",
1500}; 1500};
1501 1501
1502static const struct uniphier_pinmux_function ph1_pro4_functions[] = { 1502static const struct uniphier_pinmux_function uniphier_pro4_functions[] = {
1503 UNIPHIER_PINMUX_FUNCTION(emmc), 1503 UNIPHIER_PINMUX_FUNCTION(emmc),
1504 UNIPHIER_PINMUX_FUNCTION(i2c0), 1504 UNIPHIER_PINMUX_FUNCTION(i2c0),
1505 UNIPHIER_PINMUX_FUNCTION(i2c1), 1505 UNIPHIER_PINMUX_FUNCTION(i2c1),
@@ -1521,43 +1521,43 @@ static const struct uniphier_pinmux_function ph1_pro4_functions[] = {
1521 UNIPHIER_PINMUX_FUNCTION(xirq), 1521 UNIPHIER_PINMUX_FUNCTION(xirq),
1522}; 1522};
1523 1523
1524static struct uniphier_pinctrl_socdata ph1_pro4_pindata = { 1524static struct uniphier_pinctrl_socdata uniphier_pro4_pindata = {
1525 .groups = ph1_pro4_groups, 1525 .groups = uniphier_pro4_groups,
1526 .groups_count = ARRAY_SIZE(ph1_pro4_groups), 1526 .groups_count = ARRAY_SIZE(uniphier_pro4_groups),
1527 .functions = ph1_pro4_functions, 1527 .functions = uniphier_pro4_functions,
1528 .functions_count = ARRAY_SIZE(ph1_pro4_functions), 1528 .functions_count = ARRAY_SIZE(uniphier_pro4_functions),
1529 .mux_bits = 4, 1529 .mux_bits = 4,
1530 .reg_stride = 8, 1530 .reg_stride = 8,
1531 .load_pinctrl = true, 1531 .load_pinctrl = true,
1532}; 1532};
1533 1533
1534static struct pinctrl_desc ph1_pro4_pinctrl_desc = { 1534static struct pinctrl_desc uniphier_pro4_pinctrl_desc = {
1535 .name = DRIVER_NAME, 1535 .name = DRIVER_NAME,
1536 .pins = ph1_pro4_pins, 1536 .pins = uniphier_pro4_pins,
1537 .npins = ARRAY_SIZE(ph1_pro4_pins), 1537 .npins = ARRAY_SIZE(uniphier_pro4_pins),
1538 .owner = THIS_MODULE, 1538 .owner = THIS_MODULE,
1539}; 1539};
1540 1540
1541static int ph1_pro4_pinctrl_probe(struct platform_device *pdev) 1541static int uniphier_pro4_pinctrl_probe(struct platform_device *pdev)
1542{ 1542{
1543 return uniphier_pinctrl_probe(pdev, &ph1_pro4_pinctrl_desc, 1543 return uniphier_pinctrl_probe(pdev, &uniphier_pro4_pinctrl_desc,
1544 &ph1_pro4_pindata); 1544 &uniphier_pro4_pindata);
1545} 1545}
1546 1546
1547static const struct of_device_id ph1_pro4_pinctrl_match[] = { 1547static const struct of_device_id uniphier_pro4_pinctrl_match[] = {
1548 { .compatible = "socionext,ph1-pro4-pinctrl" }, 1548 { .compatible = "socionext,ph1-pro4-pinctrl" },
1549 { /* sentinel */ } 1549 { /* sentinel */ }
1550}; 1550};
1551MODULE_DEVICE_TABLE(of, ph1_pro4_pinctrl_match); 1551MODULE_DEVICE_TABLE(of, uniphier_pro4_pinctrl_match);
1552 1552
1553static struct platform_driver ph1_pro4_pinctrl_driver = { 1553static struct platform_driver uniphier_pro4_pinctrl_driver = {
1554 .probe = ph1_pro4_pinctrl_probe, 1554 .probe = uniphier_pro4_pinctrl_probe,
1555 .driver = { 1555 .driver = {
1556 .name = DRIVER_NAME, 1556 .name = DRIVER_NAME,
1557 .of_match_table = ph1_pro4_pinctrl_match, 1557 .of_match_table = uniphier_pro4_pinctrl_match,
1558 }, 1558 },
1559}; 1559};
1560module_platform_driver(ph1_pro4_pinctrl_driver); 1560module_platform_driver(uniphier_pro4_pinctrl_driver);
1561 1561
1562MODULE_AUTHOR("Masahiro Yamada <yamada.masahiro@socionext.com>"); 1562MODULE_AUTHOR("Masahiro Yamada <yamada.masahiro@socionext.com>");
1563MODULE_DESCRIPTION("UniPhier PH1-Pro4 pinctrl driver"); 1563MODULE_DESCRIPTION("UniPhier PH1-Pro4 pinctrl driver");
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c
index 3087f76752a6..a96559c00ecc 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c
@@ -19,9 +19,9 @@
19 19
20#include "pinctrl-uniphier.h" 20#include "pinctrl-uniphier.h"
21 21
22#define DRIVER_NAME "ph1-pro5-pinctrl" 22#define DRIVER_NAME "uniphier-pro5-pinctrl"
23 23
24static const struct pinctrl_pin_desc ph1_pro5_pins[] = { 24static const struct pinctrl_pin_desc uniphier_pro5_pins[] = {
25 UNIPHIER_PINCTRL_PIN(0, "AEXCKA1", 0, 25 UNIPHIER_PINCTRL_PIN(0, "AEXCKA1", 0,
26 0, UNIPHIER_PIN_DRV_4_8, 26 0, UNIPHIER_PIN_DRV_4_8,
27 0, UNIPHIER_PIN_PULL_DOWN), 27 0, UNIPHIER_PIN_PULL_DOWN),
@@ -919,7 +919,7 @@ static const unsigned xirq_alternatives_muxvals[] = {
919 14, 14, 14, 14, 14, 14, 14, 14, 14, 919 14, 14, 14, 14, 14, 14, 14, 14, 14,
920}; 920};
921 921
922static const struct uniphier_pinctrl_group ph1_pro5_groups[] = { 922static const struct uniphier_pinctrl_group uniphier_pro5_groups[] = {
923 UNIPHIER_PINCTRL_GROUP(nand), 923 UNIPHIER_PINCTRL_GROUP(nand),
924 UNIPHIER_PINCTRL_GROUP(nand_cs1), 924 UNIPHIER_PINCTRL_GROUP(nand_cs1),
925 UNIPHIER_PINCTRL_GROUP(emmc), 925 UNIPHIER_PINCTRL_GROUP(emmc),
@@ -1291,7 +1291,7 @@ static const char * const xirq_groups[] = {
1291 "xirq18b", "xirq18c", "xirq19b", "xirq20b", 1291 "xirq18b", "xirq18c", "xirq19b", "xirq20b",
1292}; 1292};
1293 1293
1294static const struct uniphier_pinmux_function ph1_pro5_functions[] = { 1294static const struct uniphier_pinmux_function uniphier_pro5_functions[] = {
1295 UNIPHIER_PINMUX_FUNCTION(emmc), 1295 UNIPHIER_PINMUX_FUNCTION(emmc),
1296 UNIPHIER_PINMUX_FUNCTION(i2c0), 1296 UNIPHIER_PINMUX_FUNCTION(i2c0),
1297 UNIPHIER_PINMUX_FUNCTION(i2c1), 1297 UNIPHIER_PINMUX_FUNCTION(i2c1),
@@ -1312,43 +1312,43 @@ static const struct uniphier_pinmux_function ph1_pro5_functions[] = {
1312 UNIPHIER_PINMUX_FUNCTION(xirq), 1312 UNIPHIER_PINMUX_FUNCTION(xirq),
1313}; 1313};
1314 1314
1315static struct uniphier_pinctrl_socdata ph1_pro5_pindata = { 1315static struct uniphier_pinctrl_socdata uniphier_pro5_pindata = {
1316 .groups = ph1_pro5_groups, 1316 .groups = uniphier_pro5_groups,
1317 .groups_count = ARRAY_SIZE(ph1_pro5_groups), 1317 .groups_count = ARRAY_SIZE(uniphier_pro5_groups),
1318 .functions = ph1_pro5_functions, 1318 .functions = uniphier_pro5_functions,
1319 .functions_count = ARRAY_SIZE(ph1_pro5_functions), 1319 .functions_count = ARRAY_SIZE(uniphier_pro5_functions),
1320 .mux_bits = 4, 1320 .mux_bits = 4,
1321 .reg_stride = 8, 1321 .reg_stride = 8,
1322 .load_pinctrl = true, 1322 .load_pinctrl = true,
1323}; 1323};
1324 1324
1325static struct pinctrl_desc ph1_pro5_pinctrl_desc = { 1325static struct pinctrl_desc uniphier_pro5_pinctrl_desc = {
1326 .name = DRIVER_NAME, 1326 .name = DRIVER_NAME,
1327 .pins = ph1_pro5_pins, 1327 .pins = uniphier_pro5_pins,
1328 .npins = ARRAY_SIZE(ph1_pro5_pins), 1328 .npins = ARRAY_SIZE(uniphier_pro5_pins),
1329 .owner = THIS_MODULE, 1329 .owner = THIS_MODULE,
1330}; 1330};
1331 1331
1332static int ph1_pro5_pinctrl_probe(struct platform_device *pdev) 1332static int uniphier_pro5_pinctrl_probe(struct platform_device *pdev)
1333{ 1333{
1334 return uniphier_pinctrl_probe(pdev, &ph1_pro5_pinctrl_desc, 1334 return uniphier_pinctrl_probe(pdev, &uniphier_pro5_pinctrl_desc,
1335 &ph1_pro5_pindata); 1335 &uniphier_pro5_pindata);
1336} 1336}
1337 1337
1338static const struct of_device_id ph1_pro5_pinctrl_match[] = { 1338static const struct of_device_id uniphier_pro5_pinctrl_match[] = {
1339 { .compatible = "socionext,ph1-pro5-pinctrl" }, 1339 { .compatible = "socionext,ph1-pro5-pinctrl" },
1340 { /* sentinel */ } 1340 { /* sentinel */ }
1341}; 1341};
1342MODULE_DEVICE_TABLE(of, ph1_pro5_pinctrl_match); 1342MODULE_DEVICE_TABLE(of, uniphier_pro5_pinctrl_match);
1343 1343
1344static struct platform_driver ph1_pro5_pinctrl_driver = { 1344static struct platform_driver uniphier_pro5_pinctrl_driver = {
1345 .probe = ph1_pro5_pinctrl_probe, 1345 .probe = uniphier_pro5_pinctrl_probe,
1346 .driver = { 1346 .driver = {
1347 .name = DRIVER_NAME, 1347 .name = DRIVER_NAME,
1348 .of_match_table = ph1_pro5_pinctrl_match, 1348 .of_match_table = uniphier_pro5_pinctrl_match,
1349 }, 1349 },
1350}; 1350};
1351module_platform_driver(ph1_pro5_pinctrl_driver); 1351module_platform_driver(uniphier_pro5_pinctrl_driver);
1352 1352
1353MODULE_AUTHOR("Masahiro Yamada <yamada.masahiro@socionext.com>"); 1353MODULE_AUTHOR("Masahiro Yamada <yamada.masahiro@socionext.com>");
1354MODULE_DESCRIPTION("UniPhier PH1-Pro5 pinctrl driver"); 1354MODULE_DESCRIPTION("UniPhier PH1-Pro5 pinctrl driver");
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c
index e868030ff31c..8074460ebf35 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c
@@ -19,9 +19,9 @@
19 19
20#include "pinctrl-uniphier.h" 20#include "pinctrl-uniphier.h"
21 21
22#define DRIVER_NAME "proxstream2-pinctrl" 22#define DRIVER_NAME "uniphier-pxs2-pinctrl"
23 23
24static const struct pinctrl_pin_desc proxstream2_pins[] = { 24static const struct pinctrl_pin_desc uniphier_pxs2_pins[] = {
25 UNIPHIER_PINCTRL_PIN(0, "ED0", UNIPHIER_PIN_IECTRL_NONE, 25 UNIPHIER_PINCTRL_PIN(0, "ED0", UNIPHIER_PIN_IECTRL_NONE,
26 0, UNIPHIER_PIN_DRV_4_8, 26 0, UNIPHIER_PIN_DRV_4_8,
27 0, UNIPHIER_PIN_PULL_DOWN), 27 0, UNIPHIER_PIN_PULL_DOWN),
@@ -848,7 +848,7 @@ static const unsigned xirq_muxvals[] = {
848 14, 14, 14, 14, 14, 14, 14, 14, /* XIRQ16-23 */ 848 14, 14, 14, 14, 14, 14, 14, 14, /* XIRQ16-23 */
849}; 849};
850 850
851static const struct uniphier_pinctrl_group proxstream2_groups[] = { 851static const struct uniphier_pinctrl_group uniphier_pxs2_groups[] = {
852 UNIPHIER_PINCTRL_GROUP(emmc), 852 UNIPHIER_PINCTRL_GROUP(emmc),
853 UNIPHIER_PINCTRL_GROUP(emmc_dat8), 853 UNIPHIER_PINCTRL_GROUP(emmc_dat8),
854 UNIPHIER_PINCTRL_GROUP(i2c0), 854 UNIPHIER_PINCTRL_GROUP(i2c0),
@@ -1208,7 +1208,7 @@ static const char * const xirq_groups[] = {
1208 "xirq20", "xirq21", "xirq22", "xirq23", 1208 "xirq20", "xirq21", "xirq22", "xirq23",
1209}; 1209};
1210 1210
1211static const struct uniphier_pinmux_function proxstream2_functions[] = { 1211static const struct uniphier_pinmux_function uniphier_pxs2_functions[] = {
1212 UNIPHIER_PINMUX_FUNCTION(emmc), 1212 UNIPHIER_PINMUX_FUNCTION(emmc),
1213 UNIPHIER_PINMUX_FUNCTION(i2c0), 1213 UNIPHIER_PINMUX_FUNCTION(i2c0),
1214 UNIPHIER_PINMUX_FUNCTION(i2c1), 1214 UNIPHIER_PINMUX_FUNCTION(i2c1),
@@ -1230,43 +1230,43 @@ static const struct uniphier_pinmux_function proxstream2_functions[] = {
1230 UNIPHIER_PINMUX_FUNCTION(xirq), 1230 UNIPHIER_PINMUX_FUNCTION(xirq),
1231}; 1231};
1232 1232
1233static struct uniphier_pinctrl_socdata proxstream2_pindata = { 1233static struct uniphier_pinctrl_socdata uniphier_pxs2_pindata = {
1234 .groups = proxstream2_groups, 1234 .groups = uniphier_pxs2_groups,
1235 .groups_count = ARRAY_SIZE(proxstream2_groups), 1235 .groups_count = ARRAY_SIZE(uniphier_pxs2_groups),
1236 .functions = proxstream2_functions, 1236 .functions = uniphier_pxs2_functions,
1237 .functions_count = ARRAY_SIZE(proxstream2_functions), 1237 .functions_count = ARRAY_SIZE(uniphier_pxs2_functions),
1238 .mux_bits = 8, 1238 .mux_bits = 8,
1239 .reg_stride = 4, 1239 .reg_stride = 4,
1240 .load_pinctrl = false, 1240 .load_pinctrl = false,
1241}; 1241};
1242 1242
1243static struct pinctrl_desc proxstream2_pinctrl_desc = { 1243static struct pinctrl_desc uniphier_pxs2_pinctrl_desc = {
1244 .name = DRIVER_NAME, 1244 .name = DRIVER_NAME,
1245 .pins = proxstream2_pins, 1245 .pins = uniphier_pxs2_pins,
1246 .npins = ARRAY_SIZE(proxstream2_pins), 1246 .npins = ARRAY_SIZE(uniphier_pxs2_pins),
1247 .owner = THIS_MODULE, 1247 .owner = THIS_MODULE,
1248}; 1248};
1249 1249
1250static int proxstream2_pinctrl_probe(struct platform_device *pdev) 1250static int uniphier_pxs2_pinctrl_probe(struct platform_device *pdev)
1251{ 1251{
1252 return uniphier_pinctrl_probe(pdev, &proxstream2_pinctrl_desc, 1252 return uniphier_pinctrl_probe(pdev, &uniphier_pxs2_pinctrl_desc,
1253 &proxstream2_pindata); 1253 &uniphier_pxs2_pindata);
1254} 1254}
1255 1255
1256static const struct of_device_id proxstream2_pinctrl_match[] = { 1256static const struct of_device_id uniphier_pxs2_pinctrl_match[] = {
1257 { .compatible = "socionext,proxstream2-pinctrl" }, 1257 { .compatible = "socionext,proxstream2-pinctrl" },
1258 { /* sentinel */ } 1258 { /* sentinel */ }
1259}; 1259};
1260MODULE_DEVICE_TABLE(of, proxstream2_pinctrl_match); 1260MODULE_DEVICE_TABLE(of, uniphier_pxs2_pinctrl_match);
1261 1261
1262static struct platform_driver proxstream2_pinctrl_driver = { 1262static struct platform_driver uniphier_pxs2_pinctrl_driver = {
1263 .probe = proxstream2_pinctrl_probe, 1263 .probe = uniphier_pxs2_pinctrl_probe,
1264 .driver = { 1264 .driver = {
1265 .name = DRIVER_NAME, 1265 .name = DRIVER_NAME,
1266 .of_match_table = proxstream2_pinctrl_match, 1266 .of_match_table = uniphier_pxs2_pinctrl_match,
1267 }, 1267 },
1268}; 1268};
1269module_platform_driver(proxstream2_pinctrl_driver); 1269module_platform_driver(uniphier_pxs2_pinctrl_driver);
1270 1270
1271MODULE_AUTHOR("Masahiro Yamada <yamada.masahiro@socionext.com>"); 1271MODULE_AUTHOR("Masahiro Yamada <yamada.masahiro@socionext.com>");
1272MODULE_DESCRIPTION("UniPhier ProXstream2 pinctrl driver"); 1272MODULE_DESCRIPTION("UniPhier ProXstream2 pinctrl driver");
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c
index ceb7a9899bde..1e26b96adf81 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c
@@ -19,9 +19,9 @@
19 19
20#include "pinctrl-uniphier.h" 20#include "pinctrl-uniphier.h"
21 21
22#define DRIVER_NAME "ph1-sld8-pinctrl" 22#define DRIVER_NAME "uniphier-sld8-pinctrl"
23 23
24static const struct pinctrl_pin_desc ph1_sld8_pins[] = { 24static const struct pinctrl_pin_desc uniphier_sld8_pins[] = {
25 UNIPHIER_PINCTRL_PIN(0, "PCA00", 0, 25 UNIPHIER_PINCTRL_PIN(0, "PCA00", 0,
26 15, UNIPHIER_PIN_DRV_4_8, 26 15, UNIPHIER_PIN_DRV_4_8,
27 15, UNIPHIER_PIN_PULL_DOWN), 27 15, UNIPHIER_PIN_PULL_DOWN),
@@ -529,7 +529,7 @@ static const unsigned xirq_range1_muxvals[] = {
529 14, 14, /* XIRQ14-15 */ 529 14, 14, /* XIRQ14-15 */
530}; 530};
531 531
532static const struct uniphier_pinctrl_group ph1_sld8_groups[] = { 532static const struct uniphier_pinctrl_group uniphier_sld8_groups[] = {
533 UNIPHIER_PINCTRL_GROUP(emmc), 533 UNIPHIER_PINCTRL_GROUP(emmc),
534 UNIPHIER_PINCTRL_GROUP(emmc_dat8), 534 UNIPHIER_PINCTRL_GROUP(emmc_dat8),
535 UNIPHIER_PINCTRL_GROUP(i2c0), 535 UNIPHIER_PINCTRL_GROUP(i2c0),
@@ -736,7 +736,7 @@ static const char * const xirq_groups[] = {
736 "xirq12", /* none*/ "xirq14", "xirq15", 736 "xirq12", /* none*/ "xirq14", "xirq15",
737}; 737};
738 738
739static const struct uniphier_pinmux_function ph1_sld8_functions[] = { 739static const struct uniphier_pinmux_function uniphier_sld8_functions[] = {
740 UNIPHIER_PINMUX_FUNCTION(emmc), 740 UNIPHIER_PINMUX_FUNCTION(emmc),
741 UNIPHIER_PINMUX_FUNCTION(i2c0), 741 UNIPHIER_PINMUX_FUNCTION(i2c0),
742 UNIPHIER_PINMUX_FUNCTION(i2c1), 742 UNIPHIER_PINMUX_FUNCTION(i2c1),
@@ -755,43 +755,43 @@ static const struct uniphier_pinmux_function ph1_sld8_functions[] = {
755 UNIPHIER_PINMUX_FUNCTION(xirq), 755 UNIPHIER_PINMUX_FUNCTION(xirq),
756}; 756};
757 757
758static struct uniphier_pinctrl_socdata ph1_sld8_pindata = { 758static struct uniphier_pinctrl_socdata uniphier_sld8_pindata = {
759 .groups = ph1_sld8_groups, 759 .groups = uniphier_sld8_groups,
760 .groups_count = ARRAY_SIZE(ph1_sld8_groups), 760 .groups_count = ARRAY_SIZE(uniphier_sld8_groups),
761 .functions = ph1_sld8_functions, 761 .functions = uniphier_sld8_functions,
762 .functions_count = ARRAY_SIZE(ph1_sld8_functions), 762 .functions_count = ARRAY_SIZE(uniphier_sld8_functions),
763 .mux_bits = 8, 763 .mux_bits = 8,
764 .reg_stride = 4, 764 .reg_stride = 4,
765 .load_pinctrl = false, 765 .load_pinctrl = false,
766}; 766};
767 767
768static struct pinctrl_desc ph1_sld8_pinctrl_desc = { 768static struct pinctrl_desc uniphier_sld8_pinctrl_desc = {
769 .name = DRIVER_NAME, 769 .name = DRIVER_NAME,
770 .pins = ph1_sld8_pins, 770 .pins = uniphier_sld8_pins,
771 .npins = ARRAY_SIZE(ph1_sld8_pins), 771 .npins = ARRAY_SIZE(uniphier_sld8_pins),
772 .owner = THIS_MODULE, 772 .owner = THIS_MODULE,
773}; 773};
774 774
775static int ph1_sld8_pinctrl_probe(struct platform_device *pdev) 775static int uniphier_sld8_pinctrl_probe(struct platform_device *pdev)
776{ 776{
777 return uniphier_pinctrl_probe(pdev, &ph1_sld8_pinctrl_desc, 777 return uniphier_pinctrl_probe(pdev, &uniphier_sld8_pinctrl_desc,
778 &ph1_sld8_pindata); 778 &uniphier_sld8_pindata);
779} 779}
780 780
781static const struct of_device_id ph1_sld8_pinctrl_match[] = { 781static const struct of_device_id uniphier_sld8_pinctrl_match[] = {
782 { .compatible = "socionext,ph1-sld8-pinctrl" }, 782 { .compatible = "socionext,ph1-sld8-pinctrl" },
783 { /* sentinel */ } 783 { /* sentinel */ }
784}; 784};
785MODULE_DEVICE_TABLE(of, ph1_sld8_pinctrl_match); 785MODULE_DEVICE_TABLE(of, uniphier_sld8_pinctrl_match);
786 786
787static struct platform_driver ph1_sld8_pinctrl_driver = { 787static struct platform_driver uniphier_sld8_pinctrl_driver = {
788 .probe = ph1_sld8_pinctrl_probe, 788 .probe = uniphier_sld8_pinctrl_probe,
789 .driver = { 789 .driver = {
790 .name = DRIVER_NAME, 790 .name = DRIVER_NAME,
791 .of_match_table = ph1_sld8_pinctrl_match, 791 .of_match_table = uniphier_sld8_pinctrl_match,
792 }, 792 },
793}; 793};
794module_platform_driver(ph1_sld8_pinctrl_driver); 794module_platform_driver(uniphier_sld8_pinctrl_driver);
795 795
796MODULE_AUTHOR("Masahiro Yamada <yamada.masahiro@socionext.com>"); 796MODULE_AUTHOR("Masahiro Yamada <yamada.masahiro@socionext.com>");
797MODULE_DESCRIPTION("UniPhier PH1-sLD8 pinctrl driver"); 797MODULE_DESCRIPTION("UniPhier PH1-sLD8 pinctrl driver");