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

regulator: uapi: Use UAPI integer type

Using libc types and headers from the UAPI headers is problematic as it
introduces a dependency on a full C toolchain.

Use the fixed-width integer type provided by the UAPI headers instead.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://patch.msgid.link/20251222-uapi-regulator-v1-1-a71c66eb1a94@linutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Thomas Weißschuh and committed by
Mark Brown
b61104e7 9448598b

+1 -5
+1 -5
include/uapi/regulator/regulator.h
··· 8 8 #ifndef _UAPI_REGULATOR_H 9 9 #define _UAPI_REGULATOR_H 10 10 11 - #ifdef __KERNEL__ 12 11 #include <linux/types.h> 13 - #else 14 - #include <stdint.h> 15 - #endif 16 12 17 13 /* 18 14 * Regulator notifier events. ··· 58 62 59 63 struct reg_genl_event { 60 64 char reg_name[32]; 61 - uint64_t event; 65 + __u64 event; 62 66 }; 63 67 64 68 /* attributes of reg_genl_family */