From: Andy Shevchenko Date: Mon, 24 Oct 2022 12:34:14 +0000 (-0700) Subject: Input: matrix_keypad - replace header inclusions by forward declarations X-Git-Tag: v6.4-rc1~59^2^2~37 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d5f7638eb5fed0eb12e45a127764c4111b11c50e;p=tomoyo%2Ftomoyo-test1.git 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 Link: https://lore.kernel.org/r/20220923184632.2157-2-andriy.shevchenko@linux.intel.com Signed-off-by: Dmitry Torokhov --- 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 -#include -#include + +struct device; +struct input_dev; #define MATRIX_MAX_ROWS 32 #define MATRIX_MAX_COLS 32