mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 15:58:47 +00:00
pinctrl: ralink: rename pinctrl-rt288x to pinctrl-rt2880
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 <arinc.unal@arinc9.com> Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Acked-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Link: https://lore.kernel.org/r/20220414173916.5552-5-arinc.unal@arinc9.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
bc25a9754e
commit
f5dff8ac13
@ -17,8 +17,8 @@ config PINCTRL_MT7621
|
|||||||
depends on RALINK && SOC_MT7621
|
depends on RALINK && SOC_MT7621
|
||||||
select PINCTRL_RALINK
|
select PINCTRL_RALINK
|
||||||
|
|
||||||
config PINCTRL_RT288X
|
config PINCTRL_RT2880
|
||||||
bool "RT288X pinctrl driver for RALINK/Mediatek SOCs"
|
bool "RT2880 pinctrl driver for RALINK/Mediatek SOCs"
|
||||||
depends on RALINK && SOC_RT288X
|
depends on RALINK && SOC_RT288X
|
||||||
select PINCTRL_RALINK
|
select PINCTRL_RALINK
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@ obj-$(CONFIG_PINCTRL_RALINK) += pinctrl-ralink.o
|
|||||||
|
|
||||||
obj-$(CONFIG_PINCTRL_MT7620) += pinctrl-mt7620.o
|
obj-$(CONFIG_PINCTRL_MT7620) += pinctrl-mt7620.o
|
||||||
obj-$(CONFIG_PINCTRL_MT7621) += pinctrl-mt7621.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_RT305X) += pinctrl-rt305x.o
|
||||||
obj-$(CONFIG_PINCTRL_RT3883) += pinctrl-rt3883.o
|
obj-$(CONFIG_PINCTRL_RT3883) += pinctrl-rt3883.o
|
||||||
|
@ -34,27 +34,27 @@ static struct ralink_pmx_group rt2880_pinmux_data_act[] = {
|
|||||||
{ 0 }
|
{ 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);
|
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" },
|
{ .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 = {
|
static struct platform_driver rt2880_pinctrl_driver = {
|
||||||
.probe = rt288x_pinctrl_probe,
|
.probe = rt2880_pinctrl_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "rt2880-pinmux",
|
.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);
|
Loading…
x
Reference in New Issue
Block a user