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 <bgolaszewski@baylibre.com>
This commit is contained in:
Bartosz Golaszewski 2015-09-19 20:08:26 +02:00
parent 7f4d69305b
commit 453a0c2ece
1 changed files with 4 additions and 4 deletions

View File

@ -62,12 +62,12 @@ struct channel_priv {
#define EEPROM_PROBE_TYPE_HE10 3 #define EEPROM_PROBE_TYPE_HE10 3
struct probe_eeprom { struct probe_eeprom {
int type; uint32_t type;
int rev; uint32_t rev;
unsigned long shunt; uint32_t shunt;
uint8_t pwr_sw; uint8_t pwr_sw;
uint8_t serial[EEPROM_SERIAL_SIZE]; uint8_t serial[EEPROM_SERIAL_SIZE];
char tag[EEPROM_TAG_SIZE]; int8_t tag[EEPROM_TAG_SIZE];
} __attribute__((packed)); } __attribute__((packed));
static const uint8_t enrg_i2c_addrs[] = { static const uint8_t enrg_i2c_addrs[] = {