sandbox: spi: Drop unused sandbox_spi_parse_spec function
Commit1289e96797
("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:1289e96797
("sandbox: spi: Drop command-line SPI option") Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:

committed by
Simon Glass

parent
3286d223fd
commit
1f6d618bb1
@@ -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)
|
||||
|
Reference in New Issue
Block a user