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: pxa27x-keypad - replace uint32_t with u32

u32 is preferred way to refer to unsigned 32 bit values in the kernel,
use it instead of uint32_t.

Link: https://lore.kernel.org/r/20250817215316.1872689-1-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

+12 -12
+12 -12
drivers/input/keyboard/pxa27x_keypad.c
··· 108 108 unsigned int row_shift; 109 109 110 110 /* state row bits of each column scan */ 111 - uint32_t matrix_key_state[MAX_MATRIX_KEY_COLS]; 112 - uint32_t direct_key_state; 111 + u32 matrix_key_state[MAX_MATRIX_KEY_COLS]; 112 + u32 direct_key_state; 113 113 114 114 unsigned int direct_key_mask; 115 115 }; ··· 410 410 const struct pxa27x_keypad_platform_data *pdata = keypad->pdata; 411 411 struct input_dev *input_dev = keypad->input_dev; 412 412 int row, col, num_keys_pressed = 0; 413 - uint32_t new_state[MAX_MATRIX_KEY_COLS]; 414 - uint32_t kpas = keypad_readl(KPAS); 413 + u32 new_state[MAX_MATRIX_KEY_COLS]; 414 + u32 kpas = keypad_readl(KPAS); 415 415 416 416 num_keys_pressed = KPAS_MUKP(kpas); 417 417 ··· 434 434 } 435 435 436 436 if (num_keys_pressed > 1) { 437 - uint32_t kpasmkp0 = keypad_readl(KPASMKP0); 438 - uint32_t kpasmkp1 = keypad_readl(KPASMKP1); 439 - uint32_t kpasmkp2 = keypad_readl(KPASMKP2); 440 - uint32_t kpasmkp3 = keypad_readl(KPASMKP3); 437 + u32 kpasmkp0 = keypad_readl(KPASMKP0); 438 + u32 kpasmkp1 = keypad_readl(KPASMKP1); 439 + u32 kpasmkp2 = keypad_readl(KPASMKP2); 440 + u32 kpasmkp3 = keypad_readl(KPASMKP3); 441 441 442 442 new_state[0] = kpasmkp0 & KPASMKP_MKC_MASK; 443 443 new_state[1] = (kpasmkp0 >> 16) & KPASMKP_MKC_MASK; ··· 450 450 } 451 451 scan: 452 452 for (col = 0; col < pdata->matrix_key_cols; col++) { 453 - uint32_t bits_changed; 453 + u32 bits_changed; 454 454 int code; 455 455 456 456 bits_changed = keypad->matrix_key_state[col] ^ new_state[col]; ··· 474 474 475 475 #define DEFAULT_KPREC (0x007f007f) 476 476 477 - static inline int rotary_delta(uint32_t kprec) 477 + static inline int rotary_delta(u32 kprec) 478 478 { 479 479 if (kprec & KPREC_OF0) 480 480 return (kprec & 0xff) + 0x7f; ··· 511 511 static void pxa27x_keypad_scan_rotary(struct pxa27x_keypad *keypad) 512 512 { 513 513 const struct pxa27x_keypad_platform_data *pdata = keypad->pdata; 514 - uint32_t kprec; 514 + u32 kprec; 515 515 516 516 /* read and reset to default count value */ 517 517 kprec = keypad_readl(KPREC); ··· 529 529 const struct pxa27x_keypad_platform_data *pdata = keypad->pdata; 530 530 struct input_dev *input_dev = keypad->input_dev; 531 531 unsigned int new_state; 532 - uint32_t kpdk, bits_changed; 532 + u32 kpdk, bits_changed; 533 533 int i; 534 534 535 535 kpdk = keypad_readl(KPDK);