aboutsummaryrefslogtreecommitdiff
path: root/src/include/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/device')
-rw-r--r--src/include/device/i2c.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/device/i2c.h b/src/include/device/i2c.h
index d880a7bbae..997d201341 100644
--- a/src/include/device/i2c.h
+++ b/src/include/device/i2c.h
@@ -20,10 +20,12 @@
#ifndef _DEVICE_I2C_H_
#define _DEVICE_I2C_H_
+#include <stdint.h>
+
/* note: chip is the 7-bit I2C address */
int i2c_read(unsigned bus, unsigned chip, unsigned addr,
- unsigned alen, unsigned char *buf, unsigned len);
+ unsigned alen, uint8_t *buf, unsigned len);
int i2c_write(unsigned bus, unsigned chip, unsigned addr,
- unsigned alen, unsigned char *buf, unsigned len);
+ unsigned alen, const uint8_t *buf, unsigned len);
#endif /* _DEVICE_I2C_H_ */