Skip to content
Snippets Groups Projects
Commit 4e6a5158 authored by Richard Retanubun's avatar Richard Retanubun Committed by Mike Frysinger
Browse files

sf: add struct spi_flash.sector_size parameter


This patch adds a new member to struct spi_flash (u16 sector_size)
and updates the spi flash drivers to start populating it.

This parameter can be used by spi flash commands that need to round
up units of operation to the flash's sector_size.

Having this number in one place also allows duplicated code to be
further collapsed into one common location (such as erase parameter
and the detected message).

Signed-off-by: default avatarRichard Retanubun <RichardRetanubun@RuggedCom.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent cdb6a00f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment