diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-10-24 15:34:14 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-02-24 09:12:47 +0300 |
commit | d5f7638eb5fed0eb12e45a127764c4111b11c50e (patch) | |
tree | 8fdba649251456c3709560602bdfd45cd0c03de8 /include/linux/input | |
parent | 9e03024ce27625e42d3a9a76af37f5369db652cd (diff) | |
download | linux-d5f7638eb5fed0eb12e45a127764c4111b11c50e.tar.xz |
Input: matrix_keypad - replace header inclusions by forward declarations
When the data structure is only referred by pointer, compiler may not need
to see the contents of the data type. Thus, we may replace header inclusions
by respective forward declarations.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220923184632.2157-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux/input')
-rw-r--r-- | include/linux/input/matrix_keypad.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/input/matrix_keypad.h b/include/linux/input/matrix_keypad.h index 9476768c3b90..b8d8d69eba29 100644 --- a/include/linux/input/matrix_keypad.h +++ b/include/linux/input/matrix_keypad.h @@ -3,8 +3,9 @@ #define _MATRIX_KEYPAD_H #include <linux/types.h> -#include <linux/input.h> -#include <linux/of.h> + +struct device; +struct input_dev; #define MATRIX_MAX_ROWS 32 #define MATRIX_MAX_COLS 32 |