diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2022-09-22 04:08:07 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-09-22 12:33:20 +0100 |
commit | 077dac343b54babfd56b1a52cf1f091518118957 (patch) | |
tree | f5fff2a8a298928ca113ed8f9f43264359b1f7a3 /drivers | |
parent | e0437512081282559f5c50591f487149c31f867c (diff) | |
download | linux-stable-077dac343b54babfd56b1a52cf1f091518118957.tar.gz linux-stable-077dac343b54babfd56b1a52cf1f091518118957.tar.bz2 linux-stable-077dac343b54babfd56b1a52cf1f091518118957.zip |
spi: meson-spicc: make symbol 'meson_spicc_pow2_clk_ops' static
The sparse tool complains as follows:
drivers/spi/spi-meson-spicc.c:570:22: warning:
symbol 'meson_spicc_pow2_clk_ops' was not declared. Should it be static?
This symbol is not used outside of spi-meson-spicc.c, so marks it static.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20220922040807.1409540-1-weiyongjun@huaweicloud.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi-meson-spicc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-meson-spicc.c b/drivers/spi/spi-meson-spicc.c index 6974a1c947aa..bad201510a99 100644 --- a/drivers/spi/spi-meson-spicc.c +++ b/drivers/spi/spi-meson-spicc.c @@ -567,7 +567,7 @@ static int meson_spicc_pow2_set_rate(struct clk_hw *hw, unsigned long rate, return clk_divider_ops.set_rate(hw, rate, parent_rate); } -const struct clk_ops meson_spicc_pow2_clk_ops = { +static const struct clk_ops meson_spicc_pow2_clk_ops = { .recalc_rate = meson_spicc_pow2_recalc_rate, .determine_rate = meson_spicc_pow2_determine_rate, .set_rate = meson_spicc_pow2_set_rate, |