diff options
author | Amitkumar Karwar <amit.karwar@redpinesignals.com> | 2017-07-11 19:57:51 +0530 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-07-28 17:27:18 +0300 |
commit | 523b724a769b69963ef46efa14b8b730b40419d5 (patch) | |
tree | 21fa765a364c3ee2dbd185ff61a5c701557de2e3 /drivers/net/wireless/rsi/rsi_usb.h | |
parent | d7203a83f065dc78d907c2a2f5d317972ec28d52 (diff) | |
download | lwn-523b724a769b69963ef46efa14b8b730b40419d5.tar.gz lwn-523b724a769b69963ef46efa14b8b730b40419d5.zip |
rsi: use macro for allocating USB buffer
4 bytes is fixed size for reading or writing USB register. We
will use a macro instead of hardcoding this.
Fixes: b97e9b94ad75c ("rsi: Add new host interface operations")
Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/rsi/rsi_usb.h')
-rw-r--r-- | drivers/net/wireless/rsi/rsi_usb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rsi/rsi_usb.h b/drivers/net/wireless/rsi/rsi_usb.h index 3babf81f5a39..891daea2d932 100644 --- a/drivers/net/wireless/rsi/rsi_usb.h +++ b/drivers/net/wireless/rsi/rsi_usb.h @@ -37,6 +37,7 @@ #define BT_EP 2 #define RSI_USB_BUF_SIZE 4096 +#define RSI_USB_CTRL_BUF_SIZE 0x04 struct rsi_91x_usbdev { struct rsi_thread rx_thread; |