spi: spi-mtk-nor: Unify write buffer on/off
authorbayi cheng <bayi.cheng@mediatek.com>
Tue, 15 Nov 2022 12:46:55 +0000 (20:46 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 28 Nov 2022 13:04:43 +0000 (13:04 +0000)
commit63d9a4d88499569210c445a862209515207c2732
treef2cb73c4ced7b677338ea8a9731d0829f51ecd32
parentec4a04aa6962fff3cfa63d70536537844f7446d2
spi: spi-mtk-nor: Unify write buffer on/off

The logical structures of mtk_nor_write_buffer_enable and
mtk_nor_write_buffer_disable are very similar, So it is necessary to
combine them into one.

Signed-off-by: bayi cheng <bayi.cheng@mediatek.com>
Link: https://lore.kernel.org/r/20221115124655.10124-1-bayi.cheng@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mtk-nor.c