summaryrefslogtreecommitdiff
path: root/src/include/device/i2c.h
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2013-02-05 15:17:56 -0800
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-02-06 02:11:38 +0100
commitd87d639e262544ec0b4f2fc06fa7d43e217c8333 (patch)
tree6bb208da273bdc2ba5a4785948b30911f9b535fd /src/include/device/i2c.h
parent0d4f97e27045209fdb9af452b013a6cfaebcaebc (diff)
downloadcoreboot-d87d639e262544ec0b4f2fc06fa7d43e217c8333.tar.xz
replace uchar and uint with standard types in generic i2c header
Change-Id: Ie72985bb5291bcef2e837a2f4f2ec929a0c086ce Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: http://review.coreboot.org/2290 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/include/device/i2c.h')
-rw-r--r--src/include/device/i2c.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/include/device/i2c.h b/src/include/device/i2c.h
index f1275e38af..bd6dd0c231 100644
--- a/src/include/device/i2c.h
+++ b/src/include/device/i2c.h
@@ -116,8 +116,8 @@ void i2c_board_late_init(void);
#if defined(CONFIG_I2C_MUX)
typedef struct _mux {
- uchar chip;
- uchar channel;
+ unsigned char chip;
+ unsigned char channel;
char *name;
struct _mux *next;
} I2C_MUX;
@@ -129,16 +129,16 @@ typedef struct _mux_device {
} I2C_MUX_DEVICE;
I2C_MUX_DEVICE *i2c_mux_search_device(int id);
-I2C_MUX_DEVICE *i2c_mux_ident_muxstring (uchar *buf);
+I2C_MUX_DEVICE *i2c_mux_ident_muxstring (unsigned char *buf);
int i2x_mux_select_mux(int bus);
-int i2c_mux_ident_muxstring_f (uchar *buf);
+int i2c_mux_ident_muxstring_f (unsigned char *buf);
#endif
/*
* Probe the given I2C chip address. Returns 0 if a chip responded,
* not 0 on failure.
*/
-int i2c_probe(uchar chip);
+int i2c_probe(unsigned char chip);
/*
* Read/Write interface:
@@ -152,8 +152,10 @@ int i2c_probe(uchar chip);
*
* Returns: 0 on success, not 0 on failure
*/
-int i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len);
-int i2c_write(uchar chip, uint addr, int alen, uchar *buffer, int len);
+int i2c_read(unsigned char chip, unsigned int addr, int alen,
+ unsigned char *buffer, int len);
+int i2c_write(unsigned char chip, unsigned int addr, int alen,
+ unsigned char *buffer, int len);
/*
* Utility routines to read/write registers.