* [PATCH 1/2 v3] ARM: shmobile: r8a7778: rename device additional function for sh-eth
@ 2013-05-27 1:41 Kuninori Morimoto
2013-05-27 10:27 ` Sergei Shtylyov
0 siblings, 1 reply; 2+ messages in thread
From: Kuninori Morimoto @ 2013-05-27 1:41 UTC (permalink / raw)
To: linux-sh
Current r8a7778 is using r8a7778_add_ether_device().
Here, this "ether" means "sh-eth".
Now, we use r8a7778_register_xxx() instead of r8a7778_add_xxx_device()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
v2 -> v3
- new added
arch/arm/mach-shmobile/include/mach/r8a7778.h | 4 +++-
arch/arm/mach-shmobile/setup-r8a7778.c | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h
index ae65b45..695cd76 100644
--- a/arch/arm/mach-shmobile/include/mach/r8a7778.h
+++ b/arch/arm/mach-shmobile/include/mach/r8a7778.h
@@ -23,7 +23,7 @@
extern void r8a7778_add_standard_devices(void);
extern void r8a7778_add_standard_devices_dt(void);
-extern void r8a7778_add_ether_device(struct sh_eth_plat_data *pdata);
+
extern void r8a7778_init_delay(void);
extern void r8a7778_init_irq(void);
extern void r8a7778_init_irq_dt(void);
@@ -32,4 +32,6 @@ extern void r8a7778_init_irq_extpin(int irlm);
extern void r8a7778_pinmux_init(void);
extern void r8a7778_sdhi_init(int id, struct sh_mobile_sdhi_info *info);
+extern void r8a7778_register_sheth(struct sh_eth_plat_data *pdata);
+
#endif /* __ASM_R8A7778_H__ */
diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c
index 9191acc..9bff1e1 100644
--- a/arch/arm/mach-shmobile/setup-r8a7778.c
+++ b/arch/arm/mach-shmobile/setup-r8a7778.c
@@ -95,7 +95,7 @@ static struct resource ether_resources[] __initdata = {
DEFINE_RES_IRQ(gic_iid(0x89)),
};
-void __init r8a7778_add_ether_device(struct sh_eth_plat_data *pdata)
+void __init r8a7778_register_sheth(struct sh_eth_plat_data *pdata)
{
platform_device_register_resndata(&platform_bus, "sh-eth", -1,
ether_resources,
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2 v3] ARM: shmobile: r8a7778: rename device additional function for sh-eth
2013-05-27 1:41 [PATCH 1/2 v3] ARM: shmobile: r8a7778: rename device additional function for sh-eth Kuninori Morimoto
@ 2013-05-27 10:27 ` Sergei Shtylyov
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2013-05-27 10:27 UTC (permalink / raw)
To: linux-sh
Hello.
On 27-05-2013 5:41, Kuninori Morimoto wrote:
> Current r8a7778 is using r8a7778_add_ether_device().
> Here, this "ether" means "sh-eth".
It will be renamed in the future. Then what, another rename?
> Now, we use r8a7778_register_xxx() instead of r8a7778_add_xxx_device()
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
NAK. In the manual the device is called Ether and I perefer to stick
with this name. And all this rename is just pointless churn which Linus
and RMK will frown at.
WBR, Sergei
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-27 10:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-27 1:41 [PATCH 1/2 v3] ARM: shmobile: r8a7778: rename device additional function for sh-eth Kuninori Morimoto
2013-05-27 10:27 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).