eeprom: at25: allow page sizes greater than 16 bit
authorChristian Eggers <ceggers@arri.de>
Mon, 27 Jul 2020 11:12:18 +0000 (13:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Aug 2020 10:08:08 +0000 (12:08 +0200)
commitd3cd0071a89a085a2d578b6a9e31db10469501c6
tree295ec7e59a8b35a9bef429d4e8faece39f068419
parentd162219c655c8cf8003128a13840d6c1e183fb80
eeprom: at25: allow page sizes greater than 16 bit

Storage technologies like FRAM have no "write pages", the whole chip can
be written within one SPI transfer. For these chips, the page size can
be set equal to the device size. Currently available devices are already
bigger than 64 kiB.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Link: https://lore.kernel.org/r/20200727111218.26926-1-ceggers@arri.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/at25.c
include/linux/spi/eeprom.h