net: qualcomm: rmnet: Refactor the new rmnet dev creation
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Sun, 3 Sep 2017 05:30:44 +0000 (23:30 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Sep 2017 04:27:18 +0000 (21:27 -0700)
commit032ee46828e7a2531c77bf80052fa1237820ec9c
treeb965ca4c6f864f474c4ea69824f8b45406cefba9
parent2d516c0d904af52967bb974ee58aa74819d8d05f
net: qualcomm: rmnet: Refactor the new rmnet dev creation

Data format can be directly set from rmnet_newlink() since the
rmnet real dev info is already available.

Since __rmnet_get_real_dev_info() is no longer used in rmnet_config.c
after removal of those functions, move content to
rmnet_get_real_dev_info().

__rmnet_set_endpoint_config() is collapsed into
rmnet_set_endpoint_config() since only mux_id was being set additionally
within it. Remove an unnecessary mux_id check.

Set the mux_id for the rmnet_dev within rmnet_vnd_newlink() itself.

Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Cc: Dan Williams <dcbw@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.h