This patch removes function pointer spi_max_speed of wilc_spi_t and just call
the function linux_spi_set_max_speed directly.
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
typedef struct {
void *os_context;
- int (*spi_max_speed)(void);
wilc_debug_func dPrint;
int crc_off;
int nint;
} else {
return 0;
}
- g_spi.spi_max_speed = inp->io_func.u.spi.spi_max_speed;
/**
* configure protocol
static void wilc_spi_max_bus_speed(void)
{
- g_spi.spi_max_speed();
+ linux_spi_set_max_speed();
}
static void wilc_spi_default_bus_speed(void)