summaryrefslogtreecommitdiff
path: root/rust/helpers/security.c
diff options
context:
space:
mode:
authorJames Clark <james.clark@linaro.org>2025-08-28 11:14:46 +0100
committerMark Brown <broonie@kernel.org>2025-09-01 13:12:29 +0100
commit9bbfb1ec959ce95f91cfab544f705e5257be3be1 (patch)
treee85e7781559bb7dbb75cbf403c5269e9d269df70 /rust/helpers/security.c
parentfb4273faa4d0eeca8cb7265531d48eb084bcceea (diff)
spi: spi-fsl-lpspi: Treat prescale_max == 0 as no erratum
This erratum only ever results in a max value of 1, otherwise the full 3 bits are available. To avoid repeating the same default prescale value for every new device's devdata, treat 0 as no limit (7) and only set a value when the erratum is present. Change the field to be 3 bits to catch out of range definitions. No functionality change. Signed-off-by: James Clark <james.clark@linaro.org> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://patch.msgid.link/20250828-james-nxp-lpspi-v2-7-6262b9aa9be4@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions