diff options
author | Yicong Yang <[email protected]> | 2020-09-24 20:24:27 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-09-25 21:26:26 +0100 |
commit | 2c8af6a59744b242a193118c799a45621476f8ed (patch) | |
tree | 30d727d344ce48c776b180ca5cdbe893621ccb90 /lib/mpi/mpi-mod.c | |
parent | f09a433b1e4057e6379b7e1207548fff30d5dca3 (diff) |
spi: hisi-sfc-v3xx: factor out IO modes configuration
Factor IO modes configuration out of hisi_sfc_v3xx_generic_exec_op()
using an IO modes lookup table. This will make the process a bit clearer
and reduce the cyclomatic complexity. Simplify the IO mode definition
macros a little bit as well.
Also add the .supports_op() method for the controller mem ops, in order
to avoid OOB access.
Acked-by: John Garry <[email protected]>
Signed-off-by: Yicong Yang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions