]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
regulator: uapi: Use UAPI integer type
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 22 Dec 2025 07:45:48 +0000 (08:45 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 22 Dec 2025 09:00:42 +0000 (09:00 +0000)
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>
include/uapi/regulator/regulator.h

index 71bf71a22e7fb224d9c52d97c612250d3f3453f6..c4f2d1c198280bc62a1509c934b66c246d2eb151 100644 (file)
@@ -8,11 +8,7 @@
 #ifndef _UAPI_REGULATOR_H
 #define _UAPI_REGULATOR_H
 
-#ifdef __KERNEL__
 #include <linux/types.h>
-#else
-#include <stdint.h>
-#endif
 
 /*
  * Regulator notifier events.
@@ -62,7 +58,7 @@
 
 struct reg_genl_event {
        char reg_name[32];
-       uint64_t event;
+       __u64 event;
 };
 
 /* attributes of reg_genl_family */