usb: gadget: f_phonet: fix pn_net_xmit()'s return type
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Tue, 24 Apr 2018 13:18:41 +0000 (15:18 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 25 Apr 2018 09:46:53 +0000 (12:46 +0300)
commit064b40754291f95121bbdb05645a3a110d0ae346
tree326ce5225b64841772a48ea7fd7304a99724d081
parent6d08b06e67cd117f6992c46611dfb4ce267cd71e
usb: gadget: f_phonet: fix pn_net_xmit()'s return type

The method ndo_start_xmit() is defined as returning an 'netdev_tx_t',
which is a typedef for an enum type, but the implementation in this
driver returns an 'int'.

Fix this by returning 'netdev_tx_t' in this driver too.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_phonet.c