Re: [PATCH] I2C: add i2c_master_send_exact() and friends

2013-02-16 Thread Dmitry Torokhov
On Sat, Feb 16, 2013 at 10:25:24PM +0100, Jean Delvare wrote: > Hi Dmitry, > > On Fri, 15 Feb 2013 18:42:35 -0800, Dmitry Torokhov wrote: > > Many i2c users consider short transfers to be an error and would prefer > > getting -EIO instead of a positive return value and having to convert > > it to

Re: [PATCH] I2C: add i2c_master_send_exact() and friends

2013-02-16 Thread Jean Delvare
Hi Dmitry, On Fri, 15 Feb 2013 18:42:35 -0800, Dmitry Torokhov wrote: > Many i2c users consider short transfers to be an error and would prefer > getting -EIO instead of a positive return value and having to convert > it to error code by themselves. So let's add the following new helpers: > >

[PATCH] I2C: add i2c_master_send_exact() and friends

2013-02-15 Thread Dmitry Torokhov
Many i2c users consider short transfers to be an error and would prefer getting -EIO instead of a positive return value and having to convert it to error code by themselves. So let's add the following new helpers: i2c_master_send_exact() i2c_master_recv_exact() i2c_transfer

[PATCH] I2C: add i2c_master_send_exact() and friends

2013-02-15 Thread Dmitry Torokhov
Many i2c users consider short transfers to be an error and would prefer getting -EIO instead of a positive return value and having to convert it to error code by themselves. So let's add the following new helpers: i2c_master_send_exact() i2c_master_recv_exact() i2c_transfer