@@ -59,7 +59,7 @@ s32 i2c_smbus_linux::i2c_xfer(u8 addr, char read_write, int* size, u8* data)
59
59
}
60
60
61
61
free (msg.buf );
62
-
62
+
63
63
return ret_val;
64
64
}
65
65
@@ -108,7 +108,7 @@ bool i2c_smbus_linux_detect()
108
108
if (test_fd)
109
109
{
110
110
memset (device_string, 0x00 , sizeof (device_string));
111
-
111
+
112
112
if (read (test_fd, device_string, sizeof (device_string)) < 0 )
113
113
{
114
114
LOG_WARNING (" [i2c_smbus_linux] Failed to read i2c device name" );
@@ -158,7 +158,7 @@ bool i2c_smbus_linux_detect()
158
158
{
159
159
LOG_WARNING (" [i2c_smbus_linux] Failed to read i2c device PCI vendor ID" );
160
160
}
161
-
161
+
162
162
buff[strlen (buff) - 1 ] = 0x00 ;
163
163
pci_vendor = strtoul (buff, NULL , 16 );
164
164
close (test_fd);
@@ -187,7 +187,7 @@ bool i2c_smbus_linux_detect()
187
187
if (test_fd >= 0 )
188
188
{
189
189
memset (buff, 0x00 , sizeof (buff));
190
-
190
+
191
191
if (read (test_fd, buff, sizeof (buff)) < 0 )
192
192
{
193
193
LOG_WARNING (" [i2c_smbus_linux] Failed to read i2c device PCI subvendor ID" );
@@ -214,7 +214,7 @@ bool i2c_smbus_linux_detect()
214
214
pci_subsystem_device = strtoul (buff, NULL , 16 );
215
215
close (test_fd);
216
216
}
217
-
217
+
218
218
strcpy (device_string, " /dev/" );
219
219
strcat (device_string, ent->d_name );
220
220
test_fd = open (device_string, O_RDWR);
0 commit comments