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

HSI: hsi_char.h: use __u32 from linux/types.h

Fixes userspace compiler errors like:

linux/hsi/hsi_char.h:51:2: error: unknown type name ‘uint32_t’

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Signed-off-by: Sebastian Reichel <sre@kernel.org>

authored by

Mikko Rapeli and committed by
Sebastian Reichel
7ac5d7b1 29b4817d

+9 -8
+9 -8
include/uapi/linux/hsi/hsi_char.h
··· 20 20 * 02110-1301 USA 21 21 */ 22 22 23 - 24 23 #ifndef __HSI_CHAR_H 25 24 #define __HSI_CHAR_H 25 + 26 + #include <linux/types.h> 26 27 27 28 #define HSI_CHAR_MAGIC 'k' 28 29 #define HSC_IOW(num, dtype) _IOW(HSI_CHAR_MAGIC, num, dtype) ··· 49 48 #define HSC_ARB_PRIO 1 50 49 51 50 struct hsc_rx_config { 52 - uint32_t mode; 53 - uint32_t flow; 54 - uint32_t channels; 51 + __u32 mode; 52 + __u32 flow; 53 + __u32 channels; 55 54 }; 56 55 57 56 struct hsc_tx_config { 58 - uint32_t mode; 59 - uint32_t channels; 60 - uint32_t speed; 61 - uint32_t arb_mode; 57 + __u32 mode; 58 + __u32 channels; 59 + __u32 speed; 60 + __u32 arb_mode; 62 61 }; 63 62 64 63 #endif /* __HSI_CHAR_H */