i2c: slave-eeprom: fix boundary check when using sysfs
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 19 Jan 2015 16:22:55 +0000 (17:22 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 24 Jan 2015 04:43:44 +0000 (05:43 +0100)
commit2541f7f4c14e2198ed8d8c61c854b86cae238cf1
tree0c487df83eec5c2bfc04ef3c28155109fe49a823
parent8edba330c8692d6f2dd356d4c052f8c8c4979a5a
i2c: slave-eeprom: fix boundary check when using sysfs

Due to a copy&paste error, the last byte of the shared memory was not
accessible via sysfs.

Reported-by: Debora Grosse <debora@mds.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-slave-eeprom.c