mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-28 23:23:30 +08:00
sf: ops: Add static qualifier to spi_flash_cmd_bankaddr_write
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
This commit is contained in:
parent
3ea708f0d3
commit
532f2f111c
@ -94,11 +94,6 @@ static inline int spi_flash_cmd_write_disable(struct spi_flash *flash)
|
||||
/* Program the status register. */
|
||||
int spi_flash_cmd_write_status(struct spi_flash *flash, u8 sr);
|
||||
|
||||
#ifdef CONFIG_SPI_FLASH_BAR
|
||||
/* Program the bank address register */
|
||||
int spi_flash_cmd_bankaddr_write(struct spi_flash *flash, u8 bank_sel);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Same as spi_flash_cmd_read() except it also claims/releases the SPI
|
||||
* bus. Used as common part of the ->read() operation.
|
||||
|
@ -39,7 +39,7 @@ int spi_flash_cmd_write_status(struct spi_flash *flash, u8 sr)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SPI_FLASH_BAR
|
||||
int spi_flash_cmd_bankaddr_write(struct spi_flash *flash, u8 bank_sel)
|
||||
static int spi_flash_cmd_bankaddr_write(struct spi_flash *flash, u8 bank_sel)
|
||||
{
|
||||
u8 cmd;
|
||||
int ret;
|
||||
|
Loading…
Reference in New Issue
Block a user