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

mfd: qnap-mcu: Include linux/types.h in qnap-mcu.h shared header

Relying on other components to include those basic types is unreliable
and may cause compile errors like:

../include/linux/mfd/qnap-mcu.h:13:9: error: unknown type name ‘u32’
13 | u32 baud_rate;
| ^~~
../include/linux/mfd/qnap-mcu.h:17:9: error: unknown type name ‘bool’
17 | bool usb_led;
| ^~~~

So make sure, the types used in the header are available.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250804130726.3180806-2-heiko@sntech.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Heiko Stuebner and committed by
Lee Jones
5e1c8867 309e65d1

+2
+2
include/linux/mfd/qnap-mcu.h
··· 7 7 #ifndef _LINUX_QNAP_MCU_H_ 8 8 #define _LINUX_QNAP_MCU_H_ 9 9 10 + #include <linux/types.h> 11 + 10 12 struct qnap_mcu; 11 13 12 14 struct qnap_mcu_variant {