Fix EOL in sources.

This commit is contained in:
sorgelig
2019-03-22 20:38:14 +08:00
parent 5c93f9c79c
commit 00a75bd80b
26 changed files with 11507 additions and 11507 deletions

View File

@@ -95,10 +95,10 @@ static int i2c_smbus_access (int fd, char rw, uint8_t command, int size, union i
return ioctl (fd, I2C_SMBUS, &args);
}
static int i2c_smbus_write_quick(int fd, uint8_t value)
{
return i2c_smbus_access(fd, value, 0, I2C_SMBUS_QUICK, NULL);
}
static int i2c_smbus_write_quick(int fd, uint8_t value)
{
return i2c_smbus_access(fd, value, 0, I2C_SMBUS_QUICK, NULL);
}
///////////////////////////////////////////////////////////////////////
@@ -123,12 +123,12 @@ static int smbus_open(int dev_address)
return 0;
}
if (i2c_smbus_write_quick(fd, I2C_SMBUS_WRITE) < 0)
{
if (i2c_smbus_write_quick(fd, I2C_SMBUS_WRITE) < 0)
{
printf("Unable to detect SMBUS device: %s\n", strerror(errno));
close(fd);
return 0;
}
}
i2c_handle = fd;
}