Commit 802df330 authored by Jinjie Ruan's avatar Jinjie Ruan Committed by Mark Brown

spi: cadence: Make cdns_mrvl_xspi_clk_div_list static

The sparse tool complains as follows:

drivers/spi/spi-cadence-xspi.c:334:11: warning:
	symbol 'cdns_mrvl_xspi_clk_div_list' was not declared. Should it be static?

This symbol is not used outside spi-cadence-xspi.c, so marks it static.
Signed-off-by: default avatarJinjie Ruan <ruanjinjie@huawei.com>
Link: https://patch.msgid.link/20240819120031.3884913-1-ruanjinjie@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent d6d0af1b
...@@ -331,7 +331,7 @@ static struct cdns_xspi_driver_data cdns_driver_data = { ...@@ -331,7 +331,7 @@ static struct cdns_xspi_driver_data cdns_driver_data = {
.mrvl_hw_overlay = false, .mrvl_hw_overlay = false,
}; };
const int cdns_mrvl_xspi_clk_div_list[] = { static const int cdns_mrvl_xspi_clk_div_list[] = {
4, //0x0 = Divide by 4. SPI clock is 200 MHz. 4, //0x0 = Divide by 4. SPI clock is 200 MHz.
6, //0x1 = Divide by 6. SPI clock is 133.33 MHz. 6, //0x1 = Divide by 6. SPI clock is 133.33 MHz.
8, //0x2 = Divide by 8. SPI clock is 100 MHz. 8, //0x2 = Divide by 8. SPI clock is 100 MHz.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment