net: wwan: core: Add WWAN device index sysfs attribute
authorLoic Poulain <loic.poulain@linaro.org>
Tue, 25 May 2021 16:31:18 +0000 (18:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 May 2021 22:51:37 +0000 (15:51 -0700)
commite4e92ee78702b13ad55118d8b66f06e1aef62586
tree006cc907936f000acba36e18e43efe9f15faf8e3
parent1b19b3f79063b202af3c8e1597320dee2f216756
net: wwan: core: Add WWAN device index sysfs attribute

Add index sysfs attribute for WWAN devices. This index is used to
uniquely indentify and reference a WWAN device. 'index' is the
attribute name that other device classes use (wireless, v4l2-dev,
rfkill, etc...).

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