浏览代码

[POWERPC] drivers/macintosh/mac_hid.c: Make code static

This patch makes some needlessly global code static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Adrian Bunk 18 年之前
父节点
当前提交
f3e5d2bf52
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      drivers/macintosh/mac_hid.c

+ 4 - 4
drivers/macintosh/mac_hid.c

@@ -24,7 +24,7 @@ static int mouse_last_keycode;
 
 
 #if defined(CONFIG_SYSCTL)
 #if defined(CONFIG_SYSCTL)
 /* file(s) in /proc/sys/dev/mac_hid */
 /* file(s) in /proc/sys/dev/mac_hid */
-ctl_table mac_hid_files[] = {
+static ctl_table mac_hid_files[] = {
 	{
 	{
 		.ctl_name	= DEV_MAC_HID_MOUSE_BUTTON_EMULATION,
 		.ctl_name	= DEV_MAC_HID_MOUSE_BUTTON_EMULATION,
 		.procname	= "mouse_button_emulation",
 		.procname	= "mouse_button_emulation",
@@ -53,7 +53,7 @@ ctl_table mac_hid_files[] = {
 };
 };
 
 
 /* dir in /proc/sys/dev */
 /* dir in /proc/sys/dev */
-ctl_table mac_hid_dir[] = {
+static ctl_table mac_hid_dir[] = {
 	{
 	{
 		.ctl_name	= DEV_MAC_HID,
 		.ctl_name	= DEV_MAC_HID,
 		.procname	= "mac_hid",
 		.procname	= "mac_hid",
@@ -65,7 +65,7 @@ ctl_table mac_hid_dir[] = {
 };
 };
 
 
 /* /proc/sys/dev itself, in case that is not there yet */
 /* /proc/sys/dev itself, in case that is not there yet */
-ctl_table mac_hid_root_dir[] = {
+static ctl_table mac_hid_root_dir[] = {
 	{
 	{
 		.ctl_name	= CTL_DEV,
 		.ctl_name	= CTL_DEV,
 		.procname	= "dev",
 		.procname	= "dev",
@@ -127,7 +127,7 @@ static int emumousebtn_input_register(void)
 	return ret;
 	return ret;
 }
 }
 
 
-int __init mac_hid_init(void)
+static int __init mac_hid_init(void)
 {
 {
 	int err;
 	int err;