diff options
author | Boris Mittelberg <bmbm@google.com> | 2022-01-12 15:13:44 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-02-03 07:01:57 +0000 |
commit | ee16d39257d68df6a6f43a9992771ef9bccff888 (patch) | |
tree | 5560906ffe8a80d6190e6a081400d89626729544 /driver | |
parent | 24c83f55d3651fe6cb3d20bbbe096aeb2297d2fe (diff) | |
download | chrome-ec-ee16d39257d68df6a6f43a9992771ef9bccff888.tar.gz |
ktu1125 ppc driver: type fix
Use atomic_t instead of int32
BRANCH=none
BUG=b:207178886
TEST=driver compiles
Signed-off-by: Boris Mittelberg <bmbm@google.com>
Change-Id: I5708d3ad10eec3b55ddfc04b7ac93b1139c501ab
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3433635
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/ppc/ktu1125.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/ppc/ktu1125.c b/driver/ppc/ktu1125.c index 72caa068da..6718228895 100644 --- a/driver/ppc/ktu1125.c +++ b/driver/ppc/ktu1125.c @@ -21,7 +21,7 @@ #define CPRINTF(format, args...) cprintf(CC_USBPD, format, ## args) #define CPRINTS(format, args...) cprints(CC_USBPD, format, ## args) -static uint32_t irq_pending; /* Bitmask of ports signaling an interrupt. */ +static atomic_t irq_pending; /* Bitmask of ports signaling an interrupt. */ static int read_reg(uint8_t port, int reg, int *regval) { |