mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
eeprom: at25: fram: Fix chip range in comment
The first chip supported by the commented code is CY15B102QN, fix the copy-paste error. Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com> Link: https://patch.msgid.link/20251020145858.1598599-1-alexander.sverdlin@siemens.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f20c1dbe82
commit
4c987d67b3
@@ -408,7 +408,7 @@ static int at25_fram_to_chip(struct device *dev, struct spi_eeprom *chip)
|
||||
chip->byte_len = BIT(id[7] - 0x21 + 4) * 1024;
|
||||
break;
|
||||
case 0x2a ... 0x30:
|
||||
/* CY15B116QN ... CY15B116QN */
|
||||
/* CY15B102QN ... CY15B116QN */
|
||||
chip->byte_len = BIT(((id[7] >> 1) & 0xf) + 13);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user