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 - use u8 instead of uint8_t

In the kernel u8/u16/u32 are preferred to the uint*_t variants.

Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://patch.msgid.link/20260222003717.471977-3-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

+5 -6
+5 -6
drivers/input/keyboard/cros_ec_keyb.c
··· 59 59 unsigned int cols; 60 60 int row_shift; 61 61 bool ghost_filter; 62 - uint8_t *valid_keys; 63 - uint8_t *old_kb_state; 62 + u8 *valid_keys; 63 + u8 *old_kb_state; 64 64 65 65 struct device *dev; 66 66 struct cros_ec_device *ec; ··· 145 145 * Returns true when there is at least one combination of pressed keys that 146 146 * results in ghosting. 147 147 */ 148 - static bool cros_ec_keyb_has_ghosting(struct cros_ec_keyb *ckdev, uint8_t *buf) 148 + static bool cros_ec_keyb_has_ghosting(struct cros_ec_keyb *ckdev, u8 *buf) 149 149 { 150 150 int col1, col2, buf1, buf2; 151 151 struct device *dev = ckdev->dev; 152 - uint8_t *valid_keys = ckdev->valid_keys; 152 + u8 *valid_keys = ckdev->valid_keys; 153 153 154 154 /* 155 155 * Ghosting happens if for any pressed key X there are other keys ··· 259 259 * press/release events accordingly. The keyboard state is one byte 260 260 * per column. 261 261 */ 262 - static void cros_ec_keyb_process(struct cros_ec_keyb *ckdev, 263 - uint8_t *kb_state, int len) 262 + static void cros_ec_keyb_process(struct cros_ec_keyb *ckdev, u8 *kb_state, int len) 264 263 { 265 264 int col, row; 266 265 int new_state;