diff options
author | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 20:13:53 -0500 |
---|---|---|
committer | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 20:13:53 -0500 |
commit | 08819acf094883c069e7c3088d5da6a9c24c45b8 (patch) | |
tree | 6fcd79175b9efbb69689f31ff7650e6fbc77ac86 /i2c.c | |
parent | 80b991816acb29e645fa7e047325942f8f050861 (diff) |
fix various warnings
Diffstat (limited to 'i2c.c')
-rw-r--r-- | i2c.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -10,7 +10,7 @@ #define I2C_BUS "/dev/i2c-3" -int I2C_Write(gulong address, guchar value) { +void I2C_Write(gulong address, guchar value) { struct i2c_smbus_ioctl_data argswrite; @@ -21,7 +21,8 @@ int I2C_Write(gulong address, guchar value) { int device = open(I2C_BUS, O_RDWR); - if (device == -1) return device; + // FIXME? + if (device == -1) return; ioctl(device, I2C_SLAVE, address); ioctl(device, I2C_SMBUS, &argswrite); |