static int __exit wilc_bus_remove(struct spi_device *spi)
{
- /* linux_spi_deinit(NULL); */
-
return 0;
}
struct spi_message msg;
struct spi_transfer tr = {
.tx_buf = b + (i * TXRX_PHASE_SIZE),
- /* .rx_buf = NULL, */
.len = TXRX_PHASE_SIZE,
.speed_hz = SPEED,
.bits_per_word = 8,
.delay_usecs = 0,
};
- /*
- * char *r_buffer = (char*) kzalloc(TXRX_PHASE_SIZE, GFP_KERNEL);
- * if(! r_buffer){
- * PRINT_ER("Failed to allocate memory for r_buffer\n");
- * }
- */
+
tr.rx_buf = r_buffer;
memset(&msg, 0, sizeof(msg));
if (ret < 0) {
PRINT_ER("SPI transaction failed\n");
}
- /* i += MJ_WRITE_SIZE; */
i++;
}
struct spi_message msg;
struct spi_transfer tr = {
.tx_buf = b + (blk * TXRX_PHASE_SIZE),
- /* .rx_buf = NULL, */
.len = remainder,
.speed_hz = SPEED,
.bits_per_word = 8,
.delay_usecs = 0,
};
- /*
- * char *r_buffer = (char*) kzalloc(remainder, GFP_KERNEL);
- * if(! r_buffer){
- * PRINT_ER("Failed to allocate memory for r_buffer\n");
- * }
- */
tr.rx_buf = r_buffer;
memset(&msg, 0, sizeof(msg));
if (len > 0 && b != NULL) {
struct spi_transfer tr = {
.tx_buf = b,
- /* .rx_buf = r_buffer, */
.len = len,
.speed_hz = SPEED,
.delay_usecs = 0,
while (i < blk) {
struct spi_message msg;
struct spi_transfer tr = {
- /* .tx_buf = NULL, */
.rx_buf = rb + (i * TXRX_PHASE_SIZE),
.len = TXRX_PHASE_SIZE,
.speed_hz = SPEED,
if (remainder) {
struct spi_message msg;
struct spi_transfer tr = {
- /* .tx_buf = NULL, */
.rx_buf = rb + (blk * TXRX_PHASE_SIZE),
.len = remainder,
.speed_hz = SPEED,
.bits_per_word = 8,
.delay_usecs = 0,
};
- /*
- * char *t_buffer = (char*) kzalloc(remainder, GFP_KERNEL);
- * if(! t_buffer){
- * PRINT_ER("Failed to allocate memory for t_buffer\n");
- * }
- */
tr.tx_buf = t_buffer;
memset(&msg, 0, sizeof(msg));
if (rlen > 0) {
struct spi_message msg;
struct spi_transfer tr = {
- /* .tx_buf = t_buffer, */
.rx_buf = rb,
.len = rlen,
.speed_hz = SPEED,