
25 Oct
2023
25 Oct
'23
1:15 a.m.
On Thu, Sep 21, 2023 at 12:29:45PM +0000, Michel Alex wrote:
Calculate the maximum length of the buffer when writing accross the page boundary. If the buffer length exceeds the page boundary, split it. Use this length instead of comparing the length with the pagesize, because the write start address can be somewhere in the middle of a page.
Signed-off-by: Alex Michel alex.michel@wiedemann-group.com
drivers/misc/i2c_eeprom.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
Please fix the checkpatch.pl errors with this patch, thanks.
--
Tom