71d46f1ff2
The simple_write_to_buffer() function will return positive/success if it
is able to write a single byte anywhere within the buffer. However that
potentially leaves a lot of the buffer uninitialized.
In this code it's better to return 0 if the offset is non-zero. This
code is not written to support partial writes. And then return -EFAULT
if the buffer is not completely initialized.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
at24.c | ||
at25.c | ||
digsy_mtc_eeprom.c | ||
ee1004.c | ||
eeprom.c | ||
eeprom_93cx6.c | ||
eeprom_93xx46.c | ||
idt_89hpesx.c | ||
max6875.c |