diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2020-06-28 13:52:44 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2020-07-04 08:20:38 +0200 |
commit | 597911287fcd13c3a4b4aa3e0a52b33d431e0a8e (patch) | |
tree | 70f04b578a42b89d8b860169cec92c804a13f30c /drivers/clk/clk-vt8500.c | |
parent | 58e64b050d09836a39b4339c9f46757f1616b2e6 (diff) | |
download | linux-597911287fcd13c3a4b4aa3e0a52b33d431e0a8e.tar.bz2 |
i2c: mlxcpld: check correct size of maximum RECV_LEN packet
I2C_SMBUS_BLOCK_MAX defines already the maximum number as defined in the
SMBus 2.0 specs. I don't see a reason to add 1 here. Also, fix the errno
to what is suggested for this error.
Fixes: c9bfdc7c16cb ("i2c: mlxcpld: Add support for smbus block read transaction")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Michael Shych <michaelsh@mellanox.com>
Tested-by: Michael Shych <michaelsh@mellanox.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/clk/clk-vt8500.c')
0 files changed, 0 insertions, 0 deletions