Replace C99 types by kernel types

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Remove leading double underscore from endianess function calls

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Remove redundancy in read and write register functions
if-statement shouldn't be time critical

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Change return type to something realistic 

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Avoid unnecessary cast and bit shift

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Replace global net_device with link in spi_device

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Move interrupt counter to struct qcaspi

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Handle net_device structure stats directly

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Remove unnecessary private net device stats

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Fix kernel NULL pointer dereference

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Make clear that qcaspi_qca7k_sync() handles a fsm by using switch

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
After the spi thread is running, the packet queueing can be started

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
First stop queueing packets in qcaspi_netdev_close()

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
GFP_KERNEL should suffice in ndo_init()

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reduce the indentation and refuse probing if there are no Device
Tree

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Simplify DT property handling

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Add I2SE Copyright

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Add error handling in case request_irq() fails

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Call gpio_to_irq() earlier to avoid stopping kthread in error case
Handle error case if kthread doesn't start

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>