Loading drivers/input/Makefile +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ # Each configuration option enables a list of files. obj-$(CONFIG_INPUT) += input-core.o input-core-y := input.o input-compat.o input-mt.o input-poller.o ff-core.o input-core-y := input.o input-compat.o input-mt.o input-poller.o ff-core.o event_notify.o obj-$(CONFIG_INPUT_FF_MEMLESS) += ff-memless.o obj-$(CONFIG_INPUT_POLLDEV) += input-polldev.o Loading drivers/input/event_notify.c 0 → 100644 +34 −0 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * */ #include <linux/export.h> #include <linux/notifier.h> #include <linux/input/touch_event_notify.h> static BLOCKING_NOTIFIER_HEAD(touch_notifier_list); int touch_event_register_notifier(struct notifier_block *nb) { return blocking_notifier_chain_register(&touch_notifier_list, nb); } EXPORT_SYMBOL(touch_event_register_notifier); int touch_event_unregister_notifier(struct notifier_block *nb) { return blocking_notifier_chain_unregister(&touch_notifier_list, nb); } EXPORT_SYMBOL(touch_event_unregister_notifier); void touch_event_call_notifier(unsigned long action, void *data) { blocking_notifier_call_chain(&touch_notifier_list, action, data); } EXPORT_SYMBOL(touch_event_call_notifier); drivers/soc/qcom/Kconfig +9 −0 Original line number Diff line number Diff line Loading @@ -106,6 +106,15 @@ config MSM_SPSS_UTILS because the SPSS firmware size is too small to support multiple HW versions. config MSM_QBT_HANDLER tristate "Event Handler for QTI Ultrasonic Fingerprint Sensor" help This driver acts as a interrupt handler, where the interrupt is generated by the QTI Ultrasonic Fingerprint Sensor. It queues the events for each interrupt in an event queue and notifies the userspace to read the events from the queue. It also creates an input device to send key events such as KEY_POWER, KEY_HOME. config QCOM_GSBI tristate "QCOM General Serial Bus Interface" depends on ARCH_QCOM || COMPILE_TEST Loading drivers/soc/qcom/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -72,3 +72,4 @@ obj-$(CONFIG_MSM_SPCOM) += spcom.o obj-$(CONFIG_QCOM_FSA4480_I2C) += fsa4480-i2c.o obj-$(CONFIG_QCOM_EUD) += eud.o obj-$(CONFIG_QCOM_GUESTVM) += guestvm_loader.o obj-$(CONFIG_MSM_QBT_HANDLER) += qbt_handler.o Loading
drivers/input/Makefile +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ # Each configuration option enables a list of files. obj-$(CONFIG_INPUT) += input-core.o input-core-y := input.o input-compat.o input-mt.o input-poller.o ff-core.o input-core-y := input.o input-compat.o input-mt.o input-poller.o ff-core.o event_notify.o obj-$(CONFIG_INPUT_FF_MEMLESS) += ff-memless.o obj-$(CONFIG_INPUT_POLLDEV) += input-polldev.o Loading
drivers/input/event_notify.c 0 → 100644 +34 −0 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * */ #include <linux/export.h> #include <linux/notifier.h> #include <linux/input/touch_event_notify.h> static BLOCKING_NOTIFIER_HEAD(touch_notifier_list); int touch_event_register_notifier(struct notifier_block *nb) { return blocking_notifier_chain_register(&touch_notifier_list, nb); } EXPORT_SYMBOL(touch_event_register_notifier); int touch_event_unregister_notifier(struct notifier_block *nb) { return blocking_notifier_chain_unregister(&touch_notifier_list, nb); } EXPORT_SYMBOL(touch_event_unregister_notifier); void touch_event_call_notifier(unsigned long action, void *data) { blocking_notifier_call_chain(&touch_notifier_list, action, data); } EXPORT_SYMBOL(touch_event_call_notifier);
drivers/soc/qcom/Kconfig +9 −0 Original line number Diff line number Diff line Loading @@ -106,6 +106,15 @@ config MSM_SPSS_UTILS because the SPSS firmware size is too small to support multiple HW versions. config MSM_QBT_HANDLER tristate "Event Handler for QTI Ultrasonic Fingerprint Sensor" help This driver acts as a interrupt handler, where the interrupt is generated by the QTI Ultrasonic Fingerprint Sensor. It queues the events for each interrupt in an event queue and notifies the userspace to read the events from the queue. It also creates an input device to send key events such as KEY_POWER, KEY_HOME. config QCOM_GSBI tristate "QCOM General Serial Bus Interface" depends on ARCH_QCOM || COMPILE_TEST Loading
drivers/soc/qcom/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -72,3 +72,4 @@ obj-$(CONFIG_MSM_SPCOM) += spcom.o obj-$(CONFIG_QCOM_FSA4480_I2C) += fsa4480-i2c.o obj-$(CONFIG_QCOM_EUD) += eud.o obj-$(CONFIG_QCOM_GUESTVM) += guestvm_loader.o obj-$(CONFIG_MSM_QBT_HANDLER) += qbt_handler.o