Re: [PATCH] mtd: spi-nor: Introduce templates for SPI NOR operations
From: Tudor.Ambarus
Date: Fri Mar 04 2022 - 04:35:06 EST
On 3/4/22 11:30, Tudor Ambarus wrote:
> Clean the op declaration and hide the details of each op. With this it
> results a cleanner, easier to read code. No functional change expected.
>
> Signed-off-by: Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx>
> ---
> drivers/mtd/spi-nor/core.c | 101 ++++++-------------------------
> drivers/mtd/spi-nor/core.h | 102 ++++++++++++++++++++++++++++++++
> drivers/mtd/spi-nor/micron-st.c | 24 ++++----
> drivers/mtd/spi-nor/spansion.c | 26 +++++---
> drivers/mtd/spi-nor/xilinx.c | 12 ++--
> 5 files changed, 158 insertions(+), 107 deletions(-)
> The patch is written on top of:
https://lore.kernel.org/lkml/20220228111712.111737-1-tudor.ambarus@xxxxxxxxxxxxx/