Re: [PATCH bluetooth-next 1/8] mac802154: remove unneeded vif struct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Saturday 06 June 2015 09:00 PM, Alexander Aring wrote:

This patch removes the virtual interface structure from sub if data
struct, because it isn't used anywhere. This structure could be useful
for give per interface information at softmac driver layer. Nevertheless
there exist no use case currently and it contains the interface type
information currently. This information is also stored inside wpan dev
which is now used to check on the wpan dev interface type.

Cc: Varka Bhadram <varkab@xxxxxxx>
Signed-off-by: Alexander Aring <alex.aring@xxxxxxxxx>
---
  drivers/net/ieee802154/at86rf230.c | 1 -
  drivers/net/ieee802154/cc2520.c    | 1 -
  include/net/mac802154.h            | 8 --------
  net/mac802154/ieee802154_i.h       | 2 --
  net/mac802154/iface.c              | 9 ++++-----
  net/mac802154/rx.c                 | 4 ++--
  6 files changed, 6 insertions(+), 19 deletions(-)

diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index 2f25a5e..6e20e9c 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -1602,7 +1602,6 @@ static int at86rf230_probe(struct spi_device *spi)
  	lp->spi = spi;
  	lp->slp_tr = slp_tr;
  	hw->parent = &spi->dev;
-	hw->vif_data_size = sizeof(*lp);
  	ieee802154_random_extended_addr(&hw->phy->perm_extended_addr);
lp->regmap = devm_regmap_init_spi(spi, &at86rf230_regmap_spi_config);
diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c
index 8141353..a8bafd6 100644
--- a/drivers/net/ieee802154/cc2520.c
+++ b/drivers/net/ieee802154/cc2520.c
@@ -742,7 +742,6 @@ static int cc2520_register(struct cc2520_private *priv)
  	priv->hw->priv = priv;
  	priv->hw->parent = &priv->spi->dev;
  	priv->hw->extra_tx_headroom = 0;
-	priv->hw->vif_data_size = sizeof(*priv);
  	ieee802154_random_extended_addr(&priv->hw->phy->perm_extended_addr);

Acked-by: Varka Bhadram <varkabhadram@xxxxxxxxx>

Thanks.

--
Varka Bhadram.

--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux