riscv/espressif: Mark private data as static in esp_spi.c
These symbols only used in esp_spi.c and too simple to conflict with others, so mark them as static: - cfg - ctx - dev_cfg - timing_param Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
cbb07a595e
commit
f9cc33468f
@ -235,17 +235,17 @@ static void esp_spi_deinit(struct spi_dev_s *dev);
|
|||||||
|
|
||||||
#ifdef CONFIG_ESPRESSIF_SPI2
|
#ifdef CONFIG_ESPRESSIF_SPI2
|
||||||
|
|
||||||
spi_hal_config_t cfg =
|
static spi_hal_config_t cfg =
|
||||||
{
|
{
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
spi_hal_context_t ctx =
|
static spi_hal_context_t ctx =
|
||||||
{
|
{
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
spi_hal_dev_config_t dev_cfg =
|
static spi_hal_dev_config_t dev_cfg =
|
||||||
{
|
{
|
||||||
.mode = SPI_DEFAULT_MODE,
|
.mode = SPI_DEFAULT_MODE,
|
||||||
.cs_setup = 0,
|
.cs_setup = 0,
|
||||||
@ -260,7 +260,7 @@ spi_hal_dev_config_t dev_cfg =
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
spi_hal_timing_param_t timing_param =
|
static spi_hal_timing_param_t timing_param =
|
||||||
{
|
{
|
||||||
.no_compensate = 0,
|
.no_compensate = 0,
|
||||||
.half_duplex = 0,
|
.half_duplex = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user