summaryrefslogtreecommitdiff
path: root/i2c.c
diff options
context:
space:
mode:
authorroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 20:13:53 -0500
committerroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 20:13:53 -0500
commit08819acf094883c069e7c3088d5da6a9c24c45b8 (patch)
tree6fcd79175b9efbb69689f31ff7650e6fbc77ac86 /i2c.c
parent80b991816acb29e645fa7e047325942f8f050861 (diff)
fix various warnings
Diffstat (limited to 'i2c.c')
-rw-r--r--i2c.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/i2c.c b/i2c.c
index fc9d48a..4c1499d 100644
--- a/i2c.c
+++ b/i2c.c
@@ -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);