i2c: update i2c supported functions query for 64-bit

Update to change supported_funcs to unsigned long to support 64 bit
builds.  Without this change, the value of supported_funcs is 0 even
though the correct value for the device I tested with is fff8009.

Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
Signed-off-by: Vanya A. Sergeev <v@sergeev.io>
This commit is contained in:
Jared Bents
2018-01-30 12:39:54 -06:00
committed by Vanya A. Sergeev
parent b6385dfaa4
commit 304faf4f28

View File

@@ -42,7 +42,7 @@ static int _i2c_error(struct i2c_handle *i2c, int code, int c_errno, const char
}
int i2c_open(i2c_t *i2c, const char *path) {
uint32_t supported_funcs;
unsigned long supported_funcs;
memset(i2c, 0, sizeof(struct i2c_handle));