Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: touchscreen - move helper functions to core

Some devices outside of drivers/input/touchscreen/ can still make
use of the touchscreen helper functions. Therefore, it was agreed
in [1] to move them outside of drivers/input/touchscreen/ so that
other devices can call them without INPUT_TOUCHSCREEN being set.

As part of this change, 'of' is dropped from the filename because
the helpers no longer actually use OF. No changes are made to the
file contents whatsoever.

Based on the feedback in [2], the corresponding binding documents
(touchscreen.yaml and touchscreen.txt) are left in their original
locations.

[1] https://patchwork.kernel.org/patch/11924029/
[2] https://patchwork.kernel.org/patch/12042037/

Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/20210301234928.4298-2-jeff@labundy.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Jeff LaBundy and committed by
Dmitry Torokhov
e28b5c8d c75cf862

+1 -5
+1
drivers/input/Makefile
··· 7 7 8 8 obj-$(CONFIG_INPUT) += input-core.o 9 9 input-core-y := input.o input-compat.o input-mt.o input-poller.o ff-core.o 10 + input-core-y += touchscreen.o 10 11 11 12 obj-$(CONFIG_INPUT_FF_MEMLESS) += ff-memless.o 12 13 obj-$(CONFIG_INPUT_SPARSEKMAP) += sparse-keymap.o
-4
drivers/input/touchscreen/Kconfig
··· 12 12 13 13 if INPUT_TOUCHSCREEN 14 14 15 - config TOUCHSCREEN_PROPERTIES 16 - def_tristate INPUT 17 - depends on INPUT 18 - 19 15 config TOUCHSCREEN_88PM860X 20 16 tristate "Marvell 88PM860x touchscreen" 21 17 depends on MFD_88PM860X
-1
drivers/input/touchscreen/Makefile
··· 7 7 8 8 wm97xx-ts-y := wm97xx-core.o 9 9 10 - obj-$(CONFIG_TOUCHSCREEN_PROPERTIES) += of_touchscreen.o 11 10 obj-$(CONFIG_TOUCHSCREEN_88PM860X) += 88pm860x-ts.o 12 11 obj-$(CONFIG_TOUCHSCREEN_AD7877) += ad7877.o 13 12 obj-$(CONFIG_TOUCHSCREEN_AD7879) += ad7879.o
drivers/input/touchscreen/of_touchscreen.c drivers/input/touchscreen.c