net: dsa: make dsa_slave_dev_check use const
authorVivien Didelot <vivien.didelot@gmail.com>
Fri, 14 Jun 2019 17:49:21 +0000 (13:49 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 03:20:07 +0000 (20:20 -0700)
commitf3b78049d4629b4fc565e225dda4e3ffdf907a84
treeb6961629e4411c9ab2b15e8600e7dc72021d9b3a
parent68b2d4a844e157c08773fcd8f412ba1a37bf45b8
net: dsa: make dsa_slave_dev_check use const

The switchdev handle helpers make use of a device checking helper
requiring a const net_device. Make dsa_slave_dev_check compliant
to this.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c