projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pull osi-now into release branch
[platform/kernel/linux-starfive.git]
/
drivers
/
macintosh
/
mac_hid.c
diff --git
a/drivers/macintosh/mac_hid.c
b/drivers/macintosh/mac_hid.c
index
f632cec
..
76c1e8e
100644
(file)
--- a/
drivers/macintosh/mac_hid.c
+++ b/
drivers/macintosh/mac_hid.c
@@
-24,7
+24,7
@@
static int mouse_last_keycode;
#if defined(CONFIG_SYSCTL)
/* file(s) in /proc/sys/dev/mac_hid */
#if defined(CONFIG_SYSCTL)
/* 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,
.procname = "mouse_button_emulation",
{
.ctl_name = DEV_MAC_HID_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,
.procname = "mac_hid",
{
.ctl_name = DEV_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,
.procname = "dev",
{
.ctl_name = CTL_DEV,
.procname = "dev",
@@
-102,8
+102,6
@@
int mac_hid_mouse_emulate_buttons(int caller, unsigned int keycode, int down)
return 0;
}
return 0;
}
-EXPORT_SYMBOL(mac_hid_mouse_emulate_buttons);
-
static int emumousebtn_input_register(void)
{
int ret;
static int emumousebtn_input_register(void)
{
int ret;
@@
-129,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;
@@
-138,7
+136,7
@@
int __init mac_hid_init(void)
return err;
#if defined(CONFIG_SYSCTL)
return err;
#if defined(CONFIG_SYSCTL)
- mac_hid_sysctl_header = register_sysctl_table(mac_hid_root_dir
, 1
);
+ mac_hid_sysctl_header = register_sysctl_table(mac_hid_root_dir);
#endif /* CONFIG_SYSCTL */
return 0;
#endif /* CONFIG_SYSCTL */
return 0;