Skip to content

Commit b61104e

Browse files
t-8chbroonie
authored andcommitted
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>
1 parent 9448598 commit b61104e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

include/uapi/regulator/regulator.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
#ifndef _UAPI_REGULATOR_H
99
#define _UAPI_REGULATOR_H
1010

11-
#ifdef __KERNEL__
1211
#include <linux/types.h>
13-
#else
14-
#include <stdint.h>
15-
#endif
1612

1713
/*
1814
* Regulator notifier events.
@@ -62,7 +58,7 @@
6258

6359
struct reg_genl_event {
6460
char reg_name[32];
65-
uint64_t event;
61+
__u64 event;
6662
};
6763

6864
/* attributes of reg_genl_family */

0 commit comments

Comments
 (0)