Re: [PATCH 15/20] regmap-i2c: Add smbus i2c block support
From: Markus Pargmann
Date: Wed Aug 12 2015 - 08:52:13 EST
On Wed, Aug 12, 2015 at 12:59:37PM +0100, Mark Brown wrote:
> On Wed, Aug 12, 2015 at 12:12:40PM +0200, Markus Pargmann wrote:
>
> > + if (count < 1 || count >= I2C_SMBUS_BLOCK_MAX)
> > + return -EINVAL;
>
> Elsewhere you added returns of -E2BIG if the transfer was too big, why
> not do that here as well?
Sounds good to use E2BIG here as well.
Best Regards,
Markus
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: Digital signature