]> sigrok.org Git - libsigrok.git/commitdiff
baylibre-acme: Use fixed-size integer types in struct probe_eeprom.
authorBartosz Golaszewski <redacted>
Sat, 19 Sep 2015 18:08:26 +0000 (20:08 +0200)
committerBartosz Golaszewski <redacted>
Fri, 9 Oct 2015 12:55:14 +0000 (14:55 +0200)
Standard integer types may differ in size on different targets. Use fixed-size
types instead.

Signed-off-by: Bartosz Golaszewski <redacted>
src/hardware/baylibre-acme/protocol.c

index 53b29b719aad62dda7f3735c0a582a70044f4c63..969fea0f071218dfe34f0bc1bb9363a781af0e83 100644 (file)
@@ -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[] = {