build: Add compat code for KEY_APPSELECT
Commit Message
From: Jasmin Jessich <jasmin@anw.at>
Signed-off-by: Jasmin Jessich <jasmin@anw.at>
---
v4l/compat.h | 4 ++++
v4l/scripts/make_config_compat.pl | 1 +
2 files changed, 5 insertions(+)
@@ -2099,6 +2099,10 @@ static inline int pm_runtime_get_if_in_use(struct device *dev)
}
#endif
+#ifdef NEED_KEY_APPSELECT
+#define KEY_APPSELECT 0x244 /* AL Select Task/Application */
+#endif
+
#ifndef __GFP_RETRY_MAYFAIL
#define __GFP_RETRY_MAYFAIL __GFP_REPEAT
#endif
@@ -701,6 +701,7 @@ sub check_other_dependencies()
check_files_for_func("is_of_node", "NEED_IS_OF_NODE", "include/linux/of.h");
check_files_for_func("skb_put_data", "NEED_SKB_PUT_DATA", "include/linux/skbuff.h");
check_files_for_func("pm_runtime_get_if_in_use", "NEED_PM_RUNTIME_GET", "include/linux/pm_runtime.h");
+ check_files_for_func("KEY_APPSELECT", "NEED_KEY_APPSELECT", "include/uapi/linux/input-event-codes.h");
# For tests for uapi-dependent logic
check_files_for_func_uapi("usb_endpoint_maxp", "NEED_USB_ENDPOINT_MAXP", "usb/ch9.h");