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

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>

authored by

Andy Shevchenko and committed by
Dmitry Torokhov
d5f7638e 9e03024c

+3 -2
+3 -2
include/linux/input/matrix_keypad.h
··· 3 3 #define _MATRIX_KEYPAD_H 4 4 5 5 #include <linux/types.h> 6 - #include <linux/input.h> 7 - #include <linux/of.h> 6 + 7 + struct device; 8 + struct input_dev; 8 9 9 10 #define MATRIX_MAX_ROWS 32 10 11 #define MATRIX_MAX_COLS 32