]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor-core: Consolidate non-uniform erase helpers for S25 and S28
authorTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Fri, 22 Dec 2023 05:45:59 +0000 (14:45 +0900)
committerJagan Teki <jagan@edgeble.ai>
Mon, 29 Jan 2024 14:04:17 +0000 (19:34 +0530)
commita3a5cc7613ebbbd647ddd0555e0c9a23c340318e
tree40d8ba5421818fa6286995126e56493df3b06de0
parent7a67bc55b91d3763b32c463e5ccbf95de6040d31
mtd: spi-nor-core: Consolidate non-uniform erase helpers for S25 and S28

s25_erase_non_uniform() and s28hx_t_erase_uniform() support hybrid sector
layout (32 x 4KB sectors overlaid at bottom address) and doing same thing.
Consolidate them into single helper named s25_s28_erase_non_uniform().

Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/spi-nor-core.c
include/linux/mtd/spi-nor.h