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

Configure Feed

Select the types of activity you want to include in your feed.

Input: cros_ec_keyb - struct headers should start with 'struct <name>'

Fixes the following W=1 kernel build warning(s):

drivers/input/keyboard/cros_ec_keyb.c:72: warning: cannot understand function prototype: 'struct cros_ec_bs_map '

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
Link: https://lore.kernel.org/r/20201104162427.2984742-8-lee.jones@linaro.org
[dtor: fixed up docbook comments for cros_ec_keyb structure as well]
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Lee Jones and committed by
Dmitry Torokhov
e0d80b64 2216c0e4

+5 -4
+5 -4
drivers/input/keyboard/cros_ec_keyb.c
··· 27 27 28 28 #include <asm/unaligned.h> 29 29 30 - /* 30 + /** 31 + * struct cros_ec_keyb - Structure representing EC keyboard device 32 + * 31 33 * @rows: Number of rows in the keypad 32 34 * @cols: Number of columns in the keypad 33 35 * @row_shift: log2 or number of rows, rounded up ··· 60 58 struct notifier_block notifier; 61 59 }; 62 60 63 - 64 61 /** 65 - * cros_ec_bs_map - Struct mapping Linux keycodes to EC button/switch bitmap 66 - * #defines 62 + * struct cros_ec_bs_map - Mapping between Linux keycodes and EC button/switch 63 + * bitmap #defines 67 64 * 68 65 * @ev_type: The type of the input event to generate (e.g., EV_KEY). 69 66 * @code: A linux keycode