summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorCsókás, Bence <csokas.bence@prolan.hu>2024-07-10 12:14:01 +0300
committerPratyush Yadav <pratyush@kernel.org>2024-09-14 18:56:31 +0300
commit18bcb4aa54eab75dce41e5c176a1c2bff94f0f79 (patch)
tree2eec312a90df3a54eae2a917d58a2ae79b38fc0c /tools/perf/scripts/python/export-to-sqlite.py
parent8400291e289ee6b2bf9779ff1c83a291501f017b (diff)
downloadlinux-18bcb4aa54eab75dce41e5c176a1c2bff94f0f79.tar.xz
mtd: spi-nor: sst: Factor out common write operation to `sst_nor_write_data()`
Writing to the Flash in `sst_nor_write()` is a 3-step process: first an optional one-byte write to get 2-byte-aligned, then the bulk of the data is written out in vendor-specific 2-byte writes. Finally, if there's a byte left over, another one-byte write. This was implemented 3 times in the body of `sst_nor_write()`. To reduce code duplication, factor out these sub-steps to their own function. Signed-off-by: Csókás, Bence <csokas.bence@prolan.hu> Reviewed-by: Pratyush Yadav <pratyush@kernel.org> [pratyush@kernel.org: fixup whitespace, use %zu instead of %i in WARN()] Signed-off-by: Pratyush Yadav <pratyush@kernel.org> Link: https://lore.kernel.org/r/20240710091401.1282824-1-csokas.bence@prolan.hu
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions