Эх сурвалжийг харах

[PATCH] drivers/char/scx200_gpio.c: make code static

This patch makes a needlessly global variable static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jim Cromie  <jim.cromie@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Jim Cromie 18 жил өмнө
parent
commit
c8ad9681fd

+ 1 - 1
drivers/char/scx200_gpio.c

@@ -69,7 +69,7 @@ static const struct file_operations scx200_gpio_fileops = {
 	.release = scx200_gpio_release,
 	.release = scx200_gpio_release,
 };
 };
 
 
-struct cdev scx200_gpio_cdev;  /* use 1 cdev for all pins */
+static struct cdev scx200_gpio_cdev;  /* use 1 cdev for all pins */
 
 
 static int __init scx200_gpio_init(void)
 static int __init scx200_gpio_init(void)
 {
 {