diff options
author | 2024-07-10 11:14:01 +0200 | |
---|---|---|
committer | 2024-09-14 17:56:31 +0200 | |
commit | 18bcb4aa54eab75dce41e5c176a1c2bff94f0f79 (patch) | |
tree | 2eec312a90df3a54eae2a917d58a2ae79b38fc0c /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | Linux 6.11-rc1 (diff) | |
download | wireguard-linux-18bcb4aa54eab75dce41e5c176a1c2bff94f0f79.tar.xz wireguard-linux-18bcb4aa54eab75dce41e5c176a1c2bff94f0f79.zip |
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/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions