linux/drivers/misc/eeprom
Emmanuel Gil Peyrot 4a5ff99bbb misc: eeprom_93xx46: Remove hardcoded bit lengths
This avoids using magic numbers based on the length of an address or a
command, while we only want to differentiate between 8-bit and 16-bit.

The driver was previously wrapping around the offset in the write
operation, this now returns -EINVAL instead (but should never happen in
the first place).

If two pointer indirections are too many, we could move the flags to the
main struct instead, but I doubt it’s going to make any sensible
difference on any hardware.

Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Link: https://lore.kernel.org/r/20210511210727.24895-2-linkmauve@linkmauve.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-14 13:45:24 +02:00
..
at24.c misc: eeprom: at24: fix NVMEM name with custom AT24 device name 2020-12-04 10:46:36 +01:00
at25.c eeprom: at25: Add example part numbers 2020-11-14 00:24:32 +01:00
digsy_mtc_eeprom.c
ee1004.c eeprom: ee1004: use module_i2c_driver to simplify the code 2020-10-02 11:36:37 +02:00
eeprom.c misc: eeprom: use helper to get i2c_client from kobj 2020-09-21 11:45:43 +02:00
eeprom_93cx6.c misc: eeprom: eeprom_93cx6: Repair function arg descriptions 2020-06-29 18:45:52 +02:00
eeprom_93xx46.c misc: eeprom_93xx46: Remove hardcoded bit lengths 2021-05-14 13:45:24 +02:00
idt_89hpesx.c
Kconfig eeprom: Deprecate the legacy eeprom driver 2019-09-04 09:57:35 +02:00
Makefile
max6875.c misc: eeprom: max6875: convert to i2c_new_dummy_device 2019-07-25 10:06:54 +02:00