spi: spi-sn-f-ospi: Make read-only array `width_available` static const
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 28 May 2023 19:58:30 +0000 (12:58 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 30 May 2023 12:47:03 +0000 (13:47 +0100)
commit81ea9a0710bcf74934446f63898f0186aeb2b5b8
treece2c70e7ae47f66fe77ea48af8b4e0387e5abd96
parent282152fa9d54a84a486b93a913934c21503fb5db
spi: spi-sn-f-ospi: Make read-only array `width_available` static const

The `width_available` array is currently placed on the
`f_ospi_supports_op_width()` function's stack.

But the array is never modified. Make it `static const`. This makes the
code slightly smaller and more efficient.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20230528195830.164669-3-lars@metafoo.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sn-f-ospi.c