cyber2000fb.c: misc cleanups
PATCH 1/1 cyber2000fb.c: misc cleanups
The patch below ncludes the following cleanups for drivers/video/cyber2000fb.c:
- remove five EXPORT_SYMBOL'ed but completely unused functions
- make some needlessly global code static
diffstat output:
drivers/video/cyber2000fb.c | 79 +----------------------------------- drivers/video/cyber2000fb.h | 9 ---- 2 files changed, 4 insertions(+), 84 deletions(-)
drivers/video/cyber2000fb.h renamed from drivers/video/cyber2000fb.h.old +0 -9
@@ -497,12 +497,3 @@struct fb_var_screeninfo ; -/* -* Note! Writing to the Cyber20x0 registers from an interrupt -* routine is definitely a bad idea atm. -*/ -int cyber2000fb_attach (struct cyberpro_info *info,int idx); -void cyber2000fb_detach (int idx); -void cyber2000fb_enable_extregs (struct cfb_info *cfb); -void cyber2000fb_disable_extregs (struct cfb_info *cfb); -void cyber2000fb_get_fb_var (struct cfb_info *cfb,struct fb_var_screeninfo *var);
drivers/video/cyber2000fb.c renamed from drivers/video/cyber2000fb.c.old +4 -75
103 lines not on this page · raw message
Quoted 4 lines · Adrian Bunk
The patch below ncludes the following cleanups for
drivers/video/cyber2000fb.c:
- remove five EXPORT_SYMBOL'ed but completely unused functions
- make some needlessly global code static
These are used by the video capture code which isn't merged, but is used by people. Rejected.
Signature · 4 lines
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial coreQuoted 8 lines · Russell King
Quoted 4 lines · Adrian Bunk
The patch below ncludes the following cleanups for
drivers/video/cyber2000fb.c:
- remove five EXPORT_SYMBOL'ed but completely unused functions
- make some needlessly global code staticThese are used by the video capture code which isn't merged, but is used by people. Rejected.
If people use the code it should get merged or Adrian has all reasons to remove or #if 0 the code.
Quoted 7 lines · Christoph Hellwig
Quoted 6 lines · Russell King
Quoted 4 lines · Adrian Bunk
The patch below ncludes the following cleanups for
drivers/video/cyber2000fb.c:
- remove five EXPORT_SYMBOL'ed but completely unused functions
- make some needlessly global code static
Quoted 5 lines
Quoted 2 lines
These are used by the video capture code which isn't merged, but is used by people. Rejected.
If people use the code it should get merged or Adrian has all reasons to remove or #if 0 the code.
Sigh, if that's what you want to do and place extra burden on me, that's fine. Don't expect me to co-operate with you next time you want me to do something though, no matter how important you feel it is. Works both ways.
Signature · 4 lines
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial coreQuoted 11 lines · Russell King
Quoted 10 lines · Christoph Hellwig
Quoted 8 lines · Russell King
Quoted 4 lines · Adrian Bunk
The patch below ncludes the following cleanups for
drivers/video/cyber2000fb.c:
- remove five EXPORT_SYMBOL'ed but completely unused functions
- make some needlessly global code staticThese are used by the video capture code which isn't merged, but is used by people. Rejected.
Quoted 7 lines
Quoted 2 lines
If people use the code it should get merged or Adrian has all reasons to remove or #if 0 the code.
Sigh, if that's what you want to do and place extra burden on me, that's fine. Don't expect me to co-operate with you next time you want me to do something though, no matter how important you feel it is. Works both ways.
Where is this video capture code, and why can't it be included in the kernel?
cu
Adrian
BTW: It's not my intention to piss off maintainers.
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 2 lines · Adrian Bunk
Where is this video capture code, and why can't it be included in the kernel?
A version of it was in the Netwinder.Org CVS tree, but since the machine which used to provide that domain has been impounded by the provider (because of problems with a third party providing the hosting for it), that source vanished.
That leaves me as the sole provider of the source code, and the code has always been in the "experimental but useful" stage. The capture code is something which doesn't meet my standards for mainline kernel inclusion.
However, since the capture is part of the PCI VGA device, the VGA driver needs to export some hooks so that the capture driver can safely talk to the VGA chip. That is what these are for, and, since they have to be part of the VGA driver itself, I see no reason why I can't include them as part of the driver that _I_ maintain.
Of course, if it is preferred to put crap code into the kernel, then that I shall do. That's contary to what I believe should be merged, and I'm sure then Christoph will whinge about crap code being included. So I suspect I can't win either way.
Signature · 4 lines
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial coreQuoted 6 lines · Russell King
...
That leaves me as the sole provider of the source code, and the code has always been in the "experimental but useful" stage. The capture code is something which doesn't meet my standards for mainline kernel inclusion.
...
This sounds reasonable.
Below is only the rest of my patch.
<-- snip -->
The patch below ncludes the following cleanups for drivers/video/cyber2000fb.c:
- make some needlessly global code static
diffstat output:
drivers/video/cyber2000fb.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
drivers/video/cyber2000fb.c renamed from drivers/video/cyber2000fb.c.old +4 -2
@@ -1306,7 +1233,8 @@* Parse Cyber2000fb options. Usage: * video=cyber2000:font:fontname */ -int +#ifndef MODULE +static int cyber2000fb_setup (char *options) {char *opt;
@@ -1328,6 +1256,7 @@ }return 0 ; } +#endif /* * The CyberPro chips can be placed on many different bus types.
@@ -1717,7 +1646,7 @@* * Tony: "module_init" is now required */ -int __init cyber2000fb_init (void ) +static int __init cyber2000fb_init (void ) {int ret =-1 , err;