mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
sf: Use static for file-scope functions
Used static for file-scope functions in sf_probe.c Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Jagan Teki <jteki@openedev.com>
This commit is contained in:
parent
bfdb07eb4b
commit
339fd6dca5
1 changed files with 5 additions and 5 deletions
|
@ -23,7 +23,7 @@
|
||||||
* @flashp: Pointer to place to put flash info, which may be NULL if the
|
* @flashp: Pointer to place to put flash info, which may be NULL if the
|
||||||
* space should be allocated
|
* space should be allocated
|
||||||
*/
|
*/
|
||||||
int spi_flash_probe_slave(struct spi_flash *flash)
|
static int spi_flash_probe_slave(struct spi_flash *flash)
|
||||||
{
|
{
|
||||||
struct spi_slave *spi = flash->spi;
|
struct spi_slave *spi = flash->spi;
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -57,7 +57,7 @@ err_read_id:
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CONFIG_DM_SPI_FLASH
|
#ifndef CONFIG_DM_SPI_FLASH
|
||||||
struct spi_flash *spi_flash_probe_tail(struct spi_slave *bus)
|
static struct spi_flash *spi_flash_probe_tail(struct spi_slave *bus)
|
||||||
{
|
{
|
||||||
struct spi_flash *flash;
|
struct spi_flash *flash;
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ static int spi_flash_std_read(struct udevice *dev, u32 offset, size_t len,
|
||||||
return spi_flash_cmd_read_ops(flash, offset, len, buf);
|
return spi_flash_cmd_read_ops(flash, offset, len, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
int spi_flash_std_write(struct udevice *dev, u32 offset, size_t len,
|
static int spi_flash_std_write(struct udevice *dev, u32 offset, size_t len,
|
||||||
const void *buf)
|
const void *buf)
|
||||||
{
|
{
|
||||||
struct spi_flash *flash = dev_get_uclass_priv(dev);
|
struct spi_flash *flash = dev_get_uclass_priv(dev);
|
||||||
|
@ -138,14 +138,14 @@ int spi_flash_std_write(struct udevice *dev, u32 offset, size_t len,
|
||||||
return spi_flash_cmd_write_ops(flash, offset, len, buf);
|
return spi_flash_cmd_write_ops(flash, offset, len, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
int spi_flash_std_erase(struct udevice *dev, u32 offset, size_t len)
|
static int spi_flash_std_erase(struct udevice *dev, u32 offset, size_t len)
|
||||||
{
|
{
|
||||||
struct spi_flash *flash = dev_get_uclass_priv(dev);
|
struct spi_flash *flash = dev_get_uclass_priv(dev);
|
||||||
|
|
||||||
return spi_flash_cmd_erase_ops(flash, offset, len);
|
return spi_flash_cmd_erase_ops(flash, offset, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
int spi_flash_std_probe(struct udevice *dev)
|
static int spi_flash_std_probe(struct udevice *dev)
|
||||||
{
|
{
|
||||||
struct spi_slave *slave = dev_get_parent_priv(dev);
|
struct spi_slave *slave = dev_get_parent_priv(dev);
|
||||||
struct dm_spi_slave_platdata *plat = dev_get_parent_platdata(dev);
|
struct dm_spi_slave_platdata *plat = dev_get_parent_platdata(dev);
|
||||||
|
|
Loading…
Add table
Reference in a new issue