driver: eth: enc28j60: Convert to use k_timeout_t

Convert the code to use k_timeout_t when applicable.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2020-04-30 23:17:22 +03:00
commit 104ffabab2

View file

@ -564,7 +564,7 @@ static int eth_enc28j60_rx(struct device *dev, u16_t *vlan_tag)
/* Get the frame from the buffer */ /* Get the frame from the buffer */
pkt = net_pkt_rx_alloc_with_buffer( pkt = net_pkt_rx_alloc_with_buffer(
get_iface(context, *vlan_tag), frm_len, get_iface(context, *vlan_tag), frm_len,
AF_UNSPEC, 0, config->timeout); AF_UNSPEC, 0, K_MSEC(config->timeout));
if (!pkt) { if (!pkt) {
LOG_ERR("Could not allocate rx buffer"); LOG_ERR("Could not allocate rx buffer");
eth_stats_update_errors_rx(get_iface(context, eth_stats_update_errors_rx(get_iface(context,