Skip to content

Commit

Permalink
pinctrl: ralink: rename pinctrl-rt288x to pinctrl-rt2880
Browse files Browse the repository at this point in the history
Rename "pinctrl-rt288x.c" to "pinctrl-rt2880.c" as this is the Ralink
RT2880 pinctrl subdriver. Rename PINCTRL_RT288X symbol to PINCTRL_RT2880.
Rename functions that include "rt288x" to "rt2880".

Signed-off-by: Arınç ÜNAL <[email protected]>
Reviewed-by: Sergio Paracuellos <[email protected]>
Acked-by: Sergio Paracuellos <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
arinc9 authored and linusw committed Apr 22, 2022
1 parent bc25a97 commit f5dff8a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions drivers/pinctrl/ralink/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ config PINCTRL_MT7621
depends on RALINK && SOC_MT7621
select PINCTRL_RALINK

config PINCTRL_RT288X
bool "RT288X pinctrl driver for RALINK/Mediatek SOCs"
config PINCTRL_RT2880
bool "RT2880 pinctrl driver for RALINK/Mediatek SOCs"
depends on RALINK && SOC_RT288X
select PINCTRL_RALINK

Expand Down
2 changes: 1 addition & 1 deletion drivers/pinctrl/ralink/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ obj-$(CONFIG_PINCTRL_RALINK) += pinctrl-ralink.o

obj-$(CONFIG_PINCTRL_MT7620) += pinctrl-mt7620.o
obj-$(CONFIG_PINCTRL_MT7621) += pinctrl-mt7621.o
obj-$(CONFIG_PINCTRL_RT288X) += pinctrl-rt288x.o
obj-$(CONFIG_PINCTRL_RT2880) += pinctrl-rt2880.o
obj-$(CONFIG_PINCTRL_RT305X) += pinctrl-rt305x.o
obj-$(CONFIG_PINCTRL_RT3883) += pinctrl-rt3883.o
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,27 @@ static struct ralink_pmx_group rt2880_pinmux_data_act[] = {
{ 0 }
};

static int rt288x_pinctrl_probe(struct platform_device *pdev)
static int rt2880_pinctrl_probe(struct platform_device *pdev)
{
return ralink_pinctrl_init(pdev, rt2880_pinmux_data_act);
}

static const struct of_device_id rt288x_pinctrl_match[] = {
static const struct of_device_id rt2880_pinctrl_match[] = {
{ .compatible = "ralink,rt2880-pinmux" },
{}
};
MODULE_DEVICE_TABLE(of, rt288x_pinctrl_match);
MODULE_DEVICE_TABLE(of, rt2880_pinctrl_match);

static struct platform_driver rt288x_pinctrl_driver = {
.probe = rt288x_pinctrl_probe,
static struct platform_driver rt2880_pinctrl_driver = {
.probe = rt2880_pinctrl_probe,
.driver = {
.name = "rt2880-pinmux",
.of_match_table = rt288x_pinctrl_match,
.of_match_table = rt2880_pinctrl_match,
},
};

static int __init rt288x_pinctrl_init(void)
static int __init rt2880_pinctrl_init(void)
{
return platform_driver_register(&rt288x_pinctrl_driver);
return platform_driver_register(&rt2880_pinctrl_driver);
}
core_initcall_sync(rt288x_pinctrl_init);
core_initcall_sync(rt2880_pinctrl_init);

0 comments on commit f5dff8a

Please sign in to comment.