aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-10-17 17:22:27 +0200
committerTakashi Iwai <tiwai@suse.de>2013-10-17 17:22:27 +0200
commite3d4389748001e9f56c524741ffb0dae9ad3532f (patch)
tree5e5f064e3d3c076587838df01217bdec47a4afe2
parent12caed657575526ec03023b5c91d0ea847c7d51c (diff)
downloadhda-emu-e3d4389748001e9f56c524741ffb0dae9ad3532f.tar.gz
Fix build with patch_conexnat.c thinkpad_acpi support
So far, unconditionally enabled but symbol_request() returns always NULL.
-rw-r--r--include/linux/thinkpad_acpi.h15
-rw-r--r--include/wrapper.h7
2 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/thinkpad_acpi.h b/include/linux/thinkpad_acpi.h
new file mode 100644
index 0000000..361de59
--- /dev/null
+++ b/include/linux/thinkpad_acpi.h
@@ -0,0 +1,15 @@
+#ifndef __THINKPAD_ACPI_H__
+#define __THINKPAD_ACPI_H__
+
+/* These two functions return 0 if success, or negative error code
+ (e g -ENODEV if no led present) */
+
+enum {
+ TPACPI_LED_MUTE,
+ TPACPI_LED_MICMUTE,
+ TPACPI_LED_MAX,
+};
+
+int tpacpi_led_set(int whichled, bool on);
+
+#endif
diff --git a/include/wrapper.h b/include/wrapper.h
index 5871410..940022d 100644
--- a/include/wrapper.h
+++ b/include/wrapper.h
@@ -235,4 +235,11 @@ void mylock_write_unlock(int *lock, const char *file, int line);
#include "linux/module.h"
#include "linux/log2.h"
+/* FIXME */
+#define IS_ENABLED(x) 1
+
+/* FIXME */
+#define symbol_request(x) NULL
+#define symbol_put(x)
+
#endif /* __HDA_WRAPPER_H */