diff options
Diffstat (limited to 'hdata/i2c.c')
-rw-r--r-- | hdata/i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/i2c.c b/hdata/i2c.c index 62933e6..1c26e2e 100644 --- a/hdata/i2c.c +++ b/hdata/i2c.c @@ -190,7 +190,7 @@ int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index, version = 1; prerror("I2C: HDAT device array has no version! Assuming v1\n"); } else { - version = be32_to_cpu(hdr->version); + version = be32_to_cpu(ahdr->version); } if (version != 1) { |