net: wwan: Add WWAN port type attribute
authorLoic Poulain <loic.poulain@linaro.org>
Mon, 17 May 2021 09:53:34 +0000 (11:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 May 2021 22:39:49 +0000 (15:39 -0700)
commitb3e22e10fdda8e7be3830289a4a63ae8b88d450c
treefc070bee795c093ec903de4ccf747ad28ad6f811
parent885e4056d56048a2dd38c693b257f1452e1fee68
net: wwan: Add WWAN port type attribute

The port type is by default part of the WWAN port device name.
However device name can not be considered as a 'stable' API and
may be subject to change in the future. This change adds a proper
device attribute that can be used to determine the WWAN protocol/
type.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/wwan_core.c