Skip to content

Commit 0b028ff

Browse files
Dr. David Alan Gilbertandy-shev
authored andcommitted
auxdisplay: Remove unused functions
cfag12864b_getrate() and cfag12864b_isenabled() were both added in commit 70e8404 ("[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> Acked-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent e6fc7ef commit 0b028ff

2 files changed

Lines changed: 0 additions & 29 deletions

File tree

drivers/auxdisplay/cfag12864b.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ module_param(cfag12864b_rate, uint, 0444);
3737
MODULE_PARM_DESC(cfag12864b_rate,
3838
"Refresh rate (hertz)");
3939

40-
unsigned int cfag12864b_getrate(void)
41-
{
42-
return cfag12864b_rate;
43-
}
44-
4540
/*
4641
* cfag12864b Commands
4742
*
@@ -249,11 +244,6 @@ void cfag12864b_disable(void)
249244
mutex_unlock(&cfag12864b_mutex);
250245
}
251246

252-
unsigned char cfag12864b_isenabled(void)
253-
{
254-
return cfag12864b_updating;
255-
}
256-
257247
static void cfag12864b_update(struct work_struct *work)
258248
{
259249
unsigned char c;
@@ -293,10 +283,8 @@ static void cfag12864b_update(struct work_struct *work)
293283
*/
294284

295285
EXPORT_SYMBOL_GPL(cfag12864b_buffer);
296-
EXPORT_SYMBOL_GPL(cfag12864b_getrate);
297286
EXPORT_SYMBOL_GPL(cfag12864b_enable);
298287
EXPORT_SYMBOL_GPL(cfag12864b_disable);
299-
EXPORT_SYMBOL_GPL(cfag12864b_isenabled);
300288

301289
/*
302290
* Is the module inited?

include/linux/cfag12864b.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@
2727
*/
2828
extern unsigned char * cfag12864b_buffer;
2929

30-
/*
31-
* Get the refresh rate of the LCD
32-
*
33-
* Returns the refresh rate (hertz).
34-
*/
35-
extern unsigned int cfag12864b_getrate(void);
36-
3730
/*
3831
* Enable refreshing
3932
*
@@ -49,16 +42,6 @@ extern unsigned char cfag12864b_enable(void);
4942
*/
5043
extern void cfag12864b_disable(void);
5144

52-
/*
53-
* Is enabled refreshing? (is anyone using the module?)
54-
*
55-
* Returns 0 if refreshing is not enabled (anyone is using it),
56-
* or != 0 if refreshing is enabled (someone is using it).
57-
*
58-
* Useful for buffer read-only modules.
59-
*/
60-
extern unsigned char cfag12864b_isenabled(void);
61-
6245
/*
6346
* Is the module inited?
6447
*/

0 commit comments

Comments
 (0)