* [PATCH] auxdisplay: Remove unused functions
@ 2024-10-06 22:55 linux
2024-10-07 7:46 ` Geert Uytterhoeven
2024-10-07 8:54 ` Miguel Ojeda
0 siblings, 2 replies; 4+ messages in thread
From: linux @ 2024-10-06 22:55 UTC (permalink / raw)
To: ojeda, andy, geert; +Cc: linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
cfag12864b_getrate() and cfag12864b_isenabled() were both added
in commit 70e840499aae ("[PATCH] drivers: add LCD support")
but never used.
Remove them.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
drivers/auxdisplay/cfag12864b.c | 12 ------------
include/linux/cfag12864b.h | 17 -----------------
2 files changed, 29 deletions(-)
diff --git a/drivers/auxdisplay/cfag12864b.c b/drivers/auxdisplay/cfag12864b.c
index 6526aa51fb1d..e1a94ae3eb0c 100644
--- a/drivers/auxdisplay/cfag12864b.c
+++ b/drivers/auxdisplay/cfag12864b.c
@@ -37,11 +37,6 @@ module_param(cfag12864b_rate, uint, 0444);
MODULE_PARM_DESC(cfag12864b_rate,
"Refresh rate (hertz)");
-unsigned int cfag12864b_getrate(void)
-{
- return cfag12864b_rate;
-}
-
/*
* cfag12864b Commands
*
@@ -249,11 +244,6 @@ void cfag12864b_disable(void)
mutex_unlock(&cfag12864b_mutex);
}
-unsigned char cfag12864b_isenabled(void)
-{
- return cfag12864b_updating;
-}
-
static void cfag12864b_update(struct work_struct *work)
{
unsigned char c;
@@ -293,10 +283,8 @@ static void cfag12864b_update(struct work_struct *work)
*/
EXPORT_SYMBOL_GPL(cfag12864b_buffer);
-EXPORT_SYMBOL_GPL(cfag12864b_getrate);
EXPORT_SYMBOL_GPL(cfag12864b_enable);
EXPORT_SYMBOL_GPL(cfag12864b_disable);
-EXPORT_SYMBOL_GPL(cfag12864b_isenabled);
/*
* Is the module inited?
diff --git a/include/linux/cfag12864b.h b/include/linux/cfag12864b.h
index 6617d9c68d86..83e6613d12ae 100644
--- a/include/linux/cfag12864b.h
+++ b/include/linux/cfag12864b.h
@@ -27,13 +27,6 @@
*/
extern unsigned char * cfag12864b_buffer;
-/*
- * Get the refresh rate of the LCD
- *
- * Returns the refresh rate (hertz).
- */
-extern unsigned int cfag12864b_getrate(void);
-
/*
* Enable refreshing
*
@@ -49,16 +42,6 @@ extern unsigned char cfag12864b_enable(void);
*/
extern void cfag12864b_disable(void);
-/*
- * Is enabled refreshing? (is anyone using the module?)
- *
- * Returns 0 if refreshing is not enabled (anyone is using it),
- * or != 0 if refreshing is enabled (someone is using it).
- *
- * Useful for buffer read-only modules.
- */
-extern unsigned char cfag12864b_isenabled(void);
-
/*
* Is the module inited?
*/
--
2.46.2
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] auxdisplay: Remove unused functions
2024-10-06 22:55 [PATCH] auxdisplay: Remove unused functions linux
@ 2024-10-07 7:46 ` Geert Uytterhoeven
2024-10-07 8:54 ` Miguel Ojeda
1 sibling, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2024-10-07 7:46 UTC (permalink / raw)
To: linux; +Cc: ojeda, andy, linux-kernel
On Mon, Oct 7, 2024 at 12:55 AM <linux@treblig.org> wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> cfag12864b_getrate() and cfag12864b_isenabled() were both added
> in commit 70e840499aae ("[PATCH] drivers: add LCD support")
> but never used.
>
> Remove them.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] auxdisplay: Remove unused functions
2024-10-06 22:55 [PATCH] auxdisplay: Remove unused functions linux
2024-10-07 7:46 ` Geert Uytterhoeven
@ 2024-10-07 8:54 ` Miguel Ojeda
2024-10-08 17:49 ` Andy Shevchenko
1 sibling, 1 reply; 4+ messages in thread
From: Miguel Ojeda @ 2024-10-07 8:54 UTC (permalink / raw)
To: linux; +Cc: ojeda, andy, geert, linux-kernel
On Mon, Oct 7, 2024 at 12:55 AM <linux@treblig.org> wrote:
>
> cfag12864b_getrate() and cfag12864b_isenabled() were both added
> in commit 70e840499aae ("[PATCH] drivers: add LCD support")
> but never used.
>
> Remove them.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Cheers,
Miguel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] auxdisplay: Remove unused functions
2024-10-07 8:54 ` Miguel Ojeda
@ 2024-10-08 17:49 ` Andy Shevchenko
0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2024-10-08 17:49 UTC (permalink / raw)
To: Miguel Ojeda; +Cc: linux, ojeda, andy, geert, linux-kernel
On Mon, Oct 7, 2024 at 11:54 AM Miguel Ojeda
<miguel.ojeda.sandonis@gmail.com> wrote:
>
> On Mon, Oct 7, 2024 at 12:55 AM <linux@treblig.org> wrote:
> >
> > cfag12864b_getrate() and cfag12864b_isenabled() were both added
> > in commit 70e840499aae ("[PATCH] drivers: add LCD support")
> > but never used.
> >
> > Remove them.
> >
> > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
>
> Acked-by: Miguel Ojeda <ojeda@kernel.org>
Pushed to my review and testing queue, thanks!
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-10-08 17:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-06 22:55 [PATCH] auxdisplay: Remove unused functions linux
2024-10-07 7:46 ` Geert Uytterhoeven
2024-10-07 8:54 ` Miguel Ojeda
2024-10-08 17:49 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®