From 453a0c2ece77fc2dc7cb8a3025a1dec9cd5bfb6e Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Sat, 19 Sep 2015 20:08:26 +0200 Subject: [PATCH] baylibre-acme: Use fixed-size integer types in struct probe_eeprom. Standard integer types may differ in size on different targets. Use fixed-size types instead. Signed-off-by: Bartosz Golaszewski --- src/hardware/baylibre-acme/protocol.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hardware/baylibre-acme/protocol.c b/src/hardware/baylibre-acme/protocol.c index 53b29b71..969fea0f 100644 --- a/src/hardware/baylibre-acme/protocol.c +++ b/src/hardware/baylibre-acme/protocol.c @@ -62,12 +62,12 @@ struct channel_priv { #define EEPROM_PROBE_TYPE_HE10 3 struct probe_eeprom { - int type; - int rev; - unsigned long shunt; + uint32_t type; + uint32_t rev; + uint32_t shunt; uint8_t pwr_sw; uint8_t serial[EEPROM_SERIAL_SIZE]; - char tag[EEPROM_TAG_SIZE]; + int8_t tag[EEPROM_TAG_SIZE]; } __attribute__((packed)); static const uint8_t enrg_i2c_addrs[] = {