diff options
author | Chuanhong Guo <gch981213@gmail.com> | 2020-09-24 23:27:29 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-10-01 23:24:26 +0100 |
commit | fd806575921ab78c8f0ee7f4dd3d4bb7c16206c8 (patch) | |
tree | 2ecb1b4aed23d9c5d4e96f15fea23ba370347bd2 /drivers/gnss/serial.c | |
parent | e7edd2cf4c7d06c6ef3e2030f66eeefa5150f0ff (diff) |
spi: spi-mtk-nor: add helper for checking prg mode ops
op checking/resizing logic for the newly added mtk_nor_spi_mem_prg is
more complicated. Add two helper functions for them:
mtk_nor_match_prg: check whether an op is supported by prg mode.
mtk_nor_adj_prg_size: adjust data size for mtk_nor_spi_mem_prg.
mtk_nor_match_prg isn't called yet because supports_op is currently
broken. It'll be used in the next fix commit.
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Link: https://lore.kernel.org/r/20200924152730.733243-3-gch981213@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/gnss/serial.c')
0 files changed, 0 insertions, 0 deletions