Thread (26 messages) 26 messages, 7 authors, 2015-02-24

Re: [RFC 02/11] i2c: add quirk checks to core

From: Wolfram Sang <hidden>
Date: 2015-02-24 14:16:52
Also in: linux-arm-kernel, linux-i2c, linux-mips, lkml

quoted
+               if (msgs[i].flags & I2C_M_RD) {
+                       if (i2c_quirk_exceeded(len, max_read))
+                               return i2c_quirk_error(adap, &msgs[i], "msg too long");
+               } else {
+                       if (i2c_quirk_exceeded(len, max_write))
+                               return i2c_quirk_error(adap, &msgs[i], "msg too long");
+               }
What about being more verbose in the error message, specifying if it
was a read or a write message that failed?
Yes, done now. Thanks!

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help