aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorTudor Ambarus <[email protected]>2022-04-20 13:34:23 +0300
committerPratyush Yadav <[email protected]>2022-04-27 14:57:36 +0530
commit4629adaff7bca453757f4df235e533ad460baa28 (patch)
tree29be0a19615cbe7357a1d646f6f423501d432842 /lib/mpi/mpi-sub-ui.c
parenta604ab33cb4a32e12f17b43385fdeea551ce8edc (diff)
mtd: spi-nor: micron-st: Rework spi_nor_micron_octal_dtr_enable()
Introduce template operation to remove code duplication. Split spi_nor_micron_octal_dtr_enable() in spi_nor_micron_octal_dtr_en() and spi_nor_micron_octal_dtr_dis() as it no longer made sense to try to keep everything alltogether: too many "if (enable)" throughout the code, which made the code difficult to follow. Add dev_dbg messages in case spi_nor_read_id() fails. Signed-off-by: Tudor Ambarus <[email protected]> Signed-off-by: Pratyush Yadav <[email protected]> Reviewed-by: Pratyush Yadav <[email protected]> Reviewed-by: Michael Walle <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions