lkml.org 
[lkml]   [2015]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC 02/11] i2c: add quirk checks to core

> > + 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!

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2015-02-24 15:21    [W:0.121 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site