diff options
author | Christian Eggers <ceggers@arri.de> | 2020-07-27 13:12:18 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-28 12:08:08 +0200 |
commit | d3cd0071a89a085a2d578b6a9e31db10469501c6 (patch) | |
tree | 295ec7e59a8b35a9bef429d4e8faece39f068419 /include/linux/spi/eeprom.h | |
parent | d162219c655c8cf8003128a13840d6c1e183fb80 (diff) |
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>
Diffstat (limited to 'include/linux/spi/eeprom.h')
-rw-r--r-- | include/linux/spi/eeprom.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/spi/eeprom.h b/include/linux/spi/eeprom.h index aceccf9c71fb..1cca3dd5a748 100644 --- a/include/linux/spi/eeprom.h +++ b/include/linux/spi/eeprom.h @@ -14,7 +14,7 @@ struct spi_eeprom { u32 byte_len; char name[10]; - u16 page_size; /* for writes */ + u32 page_size; /* for writes */ u16 flags; #define EE_ADDR1 0x0001 /* 8 bit addrs */ #define EE_ADDR2 0x0002 /* 16 bit addrs */ |