aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/mouse/logips2pp.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/mouse/logips2pp.h')
-rw-r--r--drivers/input/mouse/logips2pp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/input/mouse/logips2pp.h b/drivers/input/mouse/logips2pp.h
index 64a8ec52ea6..6e5712525fd 100644
--- a/drivers/input/mouse/logips2pp.h
+++ b/drivers/input/mouse/logips2pp.h
@@ -11,6 +11,13 @@
#ifndef _LOGIPS2PP_H
#define _LOGIPS2PP_H
+#ifdef CONFIG_MOUSE_PS2_LOGIPS2PP
int ps2pp_init(struct psmouse *psmouse, int set_properties);
+#else
+inline int ps2pp_init(struct psmouse *psmouse, int set_properties)
+{
+ return -ENOSYS;
+}
+#endif /* CONFIG_MOUSE_PS2_LOGIPS2PP */
#endif