mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
45ceaf14d5
Let's introduce a common library file for the physmap show function duplicated between three different keyboard drivers. This largely copies the code from cros_ec_keyb.c which has the most recent version of the show function, while using the vivaldi_data struct from the hid-vivaldi driver. This saves a small amount of space in an allyesconfig build. $ ./scripts/bloat-o-meter vmlinux.before vmlinux.after add/remove: 3/0 grow/shrink: 2/3 up/down: 412/-720 (-308) Function old new delta vivaldi_function_row_physmap_show - 292 +292 _sub_I_65535_1 1057564 1057616 +52 _sub_D_65535_0 1057564 1057616 +52 e843419@49f2_00062737_9b04 - 8 +8 e843419@20f6_0002a34d_35bc - 8 +8 atkbd_parse_fwnode_data 480 472 -8 atkbd_do_show_function_row_physmap 316 76 -240 function_row_physmap_show 620 148 -472 Total: Before=285581925, After=285581617, chg -0.00% Signed-off-by: Stephen Boyd <swboyd@chromium.org> Tested-by: Stephen Boyd <swboyd@chromium.org> # coachz, wormdingler Link: https://lore.kernel.org/r/20220228075446.466016-3-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
33 lines
992 B
Makefile
33 lines
992 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for the input core drivers.
|
|
#
|
|
|
|
# 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 += touchscreen.o
|
|
|
|
obj-$(CONFIG_INPUT_FF_MEMLESS) += ff-memless.o
|
|
obj-$(CONFIG_INPUT_SPARSEKMAP) += sparse-keymap.o
|
|
obj-$(CONFIG_INPUT_MATRIXKMAP) += matrix-keymap.o
|
|
obj-$(CONFIG_INPUT_VIVALDIFMAP) += vivaldi-fmap.o
|
|
|
|
obj-$(CONFIG_INPUT_LEDS) += input-leds.o
|
|
obj-$(CONFIG_INPUT_MOUSEDEV) += mousedev.o
|
|
obj-$(CONFIG_INPUT_JOYDEV) += joydev.o
|
|
obj-$(CONFIG_INPUT_EVDEV) += evdev.o
|
|
obj-$(CONFIG_INPUT_EVBUG) += evbug.o
|
|
|
|
obj-$(CONFIG_INPUT_KEYBOARD) += keyboard/
|
|
obj-$(CONFIG_INPUT_MOUSE) += mouse/
|
|
obj-$(CONFIG_INPUT_JOYSTICK) += joystick/
|
|
obj-$(CONFIG_INPUT_TABLET) += tablet/
|
|
obj-$(CONFIG_INPUT_TOUCHSCREEN) += touchscreen/
|
|
obj-$(CONFIG_INPUT_MISC) += misc/
|
|
|
|
obj-$(CONFIG_INPUT_APMPOWER) += apm-power.o
|
|
|
|
obj-$(CONFIG_RMI4_CORE) += rmi4/
|