diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2020-12-14 20:06:46 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-12-23 06:39:25 +0300 |
commit | 1f6d618bb16e10bdba5cb08733e228367662b12c (patch) | |
tree | 1959b126f3d48049cdb615fa47a2c4c273db8c8e /drivers/spi/sandbox_spi.c | |
parent | 3286d223fd715a79accfc66039f3f6f52e9a8896 (diff) | |
download | u-boot-1f6d618bb16e10bdba5cb08733e228367662b12c.tar.xz |
sandbox: spi: Drop unused sandbox_spi_parse_spec function
Commit 1289e96797bf ("sandbox: spi: Drop command-line SPI option") dropped
support for specifying SPI devices on the command line, removing the only
user of sandbox_spi_parse_spec(). Remove the function too.
Fixes: 1289e96797bf ("sandbox: spi: Drop command-line SPI option")
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/spi/sandbox_spi.c')
-rw-r--r-- | drivers/spi/sandbox_spi.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/spi/sandbox_spi.c b/drivers/spi/sandbox_spi.c index 3c780bae71..6adddd77b8 100644 --- a/drivers/spi/sandbox_spi.c +++ b/drivers/spi/sandbox_spi.c @@ -28,22 +28,6 @@ # define CONFIG_SPI_IDLE_VAL 0xFF #endif -const char *sandbox_spi_parse_spec(const char *arg, unsigned long *bus, - unsigned long *cs) -{ - char *endp; - - *bus = simple_strtoul(arg, &endp, 0); - if (*endp != ':' || *bus >= CONFIG_SANDBOX_SPI_MAX_BUS) - return NULL; - - *cs = simple_strtoul(endp + 1, &endp, 0); - if (*endp != ':' || *cs >= CONFIG_SANDBOX_SPI_MAX_CS) - return NULL; - - return endp + 1; -} - __weak int sandbox_spi_get_emul(struct sandbox_state *state, struct udevice *bus, struct udevice *slave, struct udevice **emulp) |