History

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.

Thomas Weißschuh committed 10 months ago

Commit b61104e1 parent 94485981 file · +1 −5Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

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