Skip to contentSkip to conversation

ieee802154: trivial fixes

PATCH In review Alexander Aring 2 participants 8 messages Oct 25, 2014

Subsystems (5)
lore
Share & tools
lore

Alexander Aring

author maintainer
#0 lore raw

cover ieee802154: trivial fixes

This patch series contains checkpatch fixes and typos for the ieee802154/mac802154 branch.

Alexander Aring (6):
ieee802154: mac802154: remove FSF address
ieee802154: ieee802154_dev: fix align typo
mac802154: fix typo IEEE802515 to IEEE802154
ieee802154: wpan-phy: change to __aligned(size)
ieee802154: wpan-phy: use blank line after function
ieee802154: wpan-class: fix trailing semicolon

 drivers/net/ieee802154/at86rf230.c | 12 ++++--------
 drivers/net/ieee802154/cc2520.c    |  8 ++++----
 drivers/net/ieee802154/fakelb.c    |  4 ----
 drivers/net/ieee802154/mrf24j40.c  | 12 ++++--------
 include/linux/nl802154.h           |  4 ----
 include/net/af_ieee802154.h        |  4 ----
 include/net/ieee802154.h           |  4 ----
 include/net/ieee802154_netdev.h    |  4 ----
 include/net/mac802154.h            | 11 ++++-------
 include/net/nl802154.h             |  4 ----
 include/net/wpan-phy.h             |  7 ++-----
 net/ieee802154/af802154.h          |  4 ----
 net/ieee802154/af_ieee802154.c     |  4 ----
 net/ieee802154/dgram.c             |  4 ----
 net/ieee802154/ieee802154.h        |  4 ----
 net/ieee802154/netlink.c           |  4 ----
 net/ieee802154/nl-mac.c            |  4 ----
 net/ieee802154/nl-phy.c            |  4 ----
 net/ieee802154/nl_policy.c         |  4 ----
 net/ieee802154/raw.c               |  4 ----
 net/ieee802154/wpan-class.c        |  6 +-----
 net/mac802154/ieee802154_dev.c     |  6 +-----
 net/mac802154/mac802154.h          |  4 ----
 net/mac802154/mac_cmd.c            |  4 ----
 net/mac802154/mib.c                | 10 +++-------
 net/mac802154/monitor.c            |  4 ----
 net/mac802154/rx.c                 |  4 ----
 net/mac802154/tx.c                 |  4 ----
 net/mac802154/wpan.c               |  4 ----
 29 files changed, 23 insertions(+), 133 deletions(-)
Signature · 1 line
2.1.2
author maintainer
#1 lore raw

PATCH 1/6 ieee802154: mac802154: remove FSF address

This patch removes the FSF address in files which belongs to ieee802154 and mac802154.

---
 drivers/net/ieee802154/at86rf230.c | 4 ----
 drivers/net/ieee802154/fakelb.c    | 4 ----
 drivers/net/ieee802154/mrf24j40.c  | 4 ----
 include/linux/nl802154.h           | 4 ----
 include/net/af_ieee802154.h        | 4 ----
 include/net/ieee802154.h           | 4 ----
 include/net/ieee802154_netdev.h    | 4 ----
 include/net/mac802154.h            | 3 ---
 include/net/nl802154.h             | 4 ----
 include/net/wpan-phy.h             | 4 ----
 net/ieee802154/af802154.h          | 4 ----
 net/ieee802154/af_ieee802154.c     | 4 ----
 net/ieee802154/dgram.c             | 4 ----
 net/ieee802154/ieee802154.h        | 4 ----
 net/ieee802154/netlink.c           | 4 ----
 net/ieee802154/nl-mac.c            | 4 ----
 net/ieee802154/nl-phy.c            | 4 ----
 net/ieee802154/nl_policy.c         | 4 ----
 net/ieee802154/raw.c               | 4 ----
 net/ieee802154/wpan-class.c        | 4 ----
 net/mac802154/ieee802154_dev.c     | 4 ----
 net/mac802154/mac802154.h          | 4 ----
 net/mac802154/mac_cmd.c            | 4 ----
 net/mac802154/mib.c                | 4 ----
 net/mac802154/monitor.c            | 4 ----
 net/mac802154/rx.c                 | 4 ----
 net/mac802154/tx.c                 | 4 ----
 net/mac802154/wpan.c               | 4 ----
 28 files changed, 111 deletions(-)
drivers/net/ieee802154/at86rf230.c +0 -4
index 6ebd665..b8b1e40 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Dmitry Eremin-Solenikov <[email protected]>
  * Alexander Smirnov <[email protected]>
drivers/net/ieee802154/fakelb.c +0 -4
index 27d8320..e4b1b1f 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Sergey Lapin <[email protected]>
  * Dmitry Eremin-Solenikov <[email protected]>
drivers/net/ieee802154/mrf24j40.c +0 -4
index b1e73bc..ba9a396 100644
@@ -13,10 +13,6 @@
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
 #include <linux/spi/spi.h>
include/linux/nl802154.h +0 -4
index 20163b9..167342c 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  */
 
 #ifndef NL802154_H
include/net/af_ieee802154.h +0 -4
index 085940f..7d38e2f 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Sergey Lapin <[email protected]>
  * Dmitry Eremin-Solenikov <[email protected]>
include/net/ieee802154.h +0 -4
index 0aa7122..4db4e32 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Pavel Smolenskiy <[email protected]>
  * Maxim Gorbachyov <[email protected]>
include/net/ieee802154_netdev.h +0 -4
index 3b53c8e..f874206 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Pavel Smolenskiy <[email protected]>
  * Maxim Gorbachyov <[email protected]>
include/net/mac802154.h +0 -3
index 2e67cdd..f95b98e 100644
@@ -12,9 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 #ifndef NET_MAC802154_H
 #define NET_MAC802154_H
include/net/nl802154.h +0 -4
index b23548e..b5cdea2 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  */
 
 #ifndef IEEE802154_NL_H
include/net/wpan-phy.h +0 -4
index 10ab0fc..65a05f1 100644
@@ -10,10 +10,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Dmitry Eremin-Solenikov <[email protected]>
  */
net/ieee802154/af802154.h +0 -4
index 8330a09..343b63e 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Sergey Lapin <[email protected]>
  * Dmitry Eremin-Solenikov <[email protected]>
net/ieee802154/af_ieee802154.c +0 -4
index 29e0de6..26da1e1 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Sergey Lapin <[email protected]>
  * Maxim Gorbachyov <[email protected]>
net/ieee802154/dgram.c +0 -4
index ef2ad8a..71e99a0 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Sergey Lapin <[email protected]>
  * Dmitry Eremin-Solenikov <[email protected]>
net/ieee802154/ieee802154.h +0 -4
index 5d352f8..42ae63a 100644
@@ -10,10 +10,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  */
 #ifndef IEEE_802154_LOCAL_H
 #define IEEE_802154_LOCAL_H
net/ieee802154/netlink.c +0 -4
index 9222966..6c3c259 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Sergey Lapin <[email protected]>
  * Dmitry Eremin-Solenikov <[email protected]>
net/ieee802154/nl-mac.c +0 -4
index c6bfe22..78a1529 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Sergey Lapin <[email protected]>
  * Dmitry Eremin-Solenikov <[email protected]>
net/ieee802154/nl-phy.c +0 -4
index 972baf8..e943e20 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Sergey Lapin <[email protected]>
  * Dmitry Eremin-Solenikov <[email protected]>
net/ieee802154/nl_policy.c +0 -4
index 3a703ab8..35c4326 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  */
 
 #include <linux/kernel.h>
net/ieee802154/raw.c +0 -4
index 9d1f648..3ffcf4a 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Sergey Lapin <[email protected]>
  * Dmitry Eremin-Solenikov <[email protected]>
net/ieee802154/wpan-class.c +0 -4
index 4955e0f..9a2dfab 100644
@@ -10,10 +10,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  */
 
 #include <linux/slab.h>
net/mac802154/ieee802154_dev.c +0 -4
index b36b2b9..6af6a24 100644
@@ -14,10 +14,6 @@
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #include <linux/kernel.h>
net/mac802154/mac802154.h +0 -4
index 762a6f8..e3503c1 100644
@@ -10,10 +10,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Pavel Smolenskiy <[email protected]>
  * Maxim Gorbachyov <[email protected]>
net/mac802154/mac_cmd.c +0 -4
index bf80913..85f70ed 100644
@@ -12,10 +12,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Sergey Lapin <[email protected]>
  * Dmitry Eremin-Solenikov <[email protected]>
net/mac802154/mib.c +0 -4
index 868a040..d7e5df8 100644
@@ -10,10 +10,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Dmitry Eremin-Solenikov <[email protected]>
  * Sergey Lapin <[email protected]>
net/mac802154/monitor.c +0 -4
index a68230e..81249bb 100644
@@ -10,10 +10,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Dmitry Eremin-Solenikov <[email protected]>
  * Sergey Lapin <[email protected]>
net/mac802154/rx.c +0 -4
index a14cf9e..e99d939 100644
@@ -10,10 +10,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Pavel Smolenskiy <[email protected]>
  * Maxim Gorbachyov <[email protected]>
net/mac802154/tx.c +0 -4
index fdf4c0e6..95ea412 100644
@@ -10,10 +10,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Dmitry Eremin-Solenikov <[email protected]>
  * Sergey Lapin <[email protected]>
net/mac802154/wpan.c +0 -4
index b796112..c47c96c 100644
@@ -10,10 +10,6 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  * Written by:
  * Dmitry Eremin-Solenikov <[email protected]>
  * Sergey Lapin <[email protected]>
Signature · 1 line
2.1.2
author maintainer
#2 lore raw

PATCH 2/6 ieee802154: ieee802154_dev: fix align typo

In reply to Alexander Aring

This patch fix a typo and fix align instead allign.

---
 net/mac802154/ieee802154_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac802154/ieee802154_dev.c +1 -1
index 6af6a24..086d4a9 100644
@@ -263,7 +263,7 @@ ieee802154_alloc_device(size_t priv_data_len, struct ieee802154_ops *ops)
 	 * +-----------------------+
 	 *
 	 * Due to ieee802154 layer isn't aware of driver and MAC structures,
-	 * so lets allign them here.
+	 * so lets align them here.
 	 */
 
 	priv_size = ALIGN(sizeof(*priv), NETDEV_ALIGN) + priv_data_len;
Signature · 1 line
2.1.2
author maintainer
#3 lore raw

PATCH 3/6 mac802154: fix typo IEEE802515 to IEEE802154

In reply to Alexander Aring

This patch fixs a typo in address filter defines from IEEE802515 to IEEE802154.

---
 drivers/net/ieee802154/at86rf230.c | 8 ++++----
 drivers/net/ieee802154/cc2520.c    | 8 ++++----
 drivers/net/ieee802154/mrf24j40.c  | 8 ++++----
 include/net/mac802154.h            | 8 ++++----
 net/mac802154/mib.c                | 6 +++---
 5 files changed, 19 insertions(+), 19 deletions(-)
drivers/net/ieee802154/at86rf230.c +4 -4
index b8b1e40..83a635f 100644
@@ -1097,7 +1097,7 @@ at86rf230_set_hw_addr_filt(struct ieee802154_dev *dev,
 {
 	struct at86rf230_local *lp = dev->priv;
 
-	if (changed & IEEE802515_AFILT_SADDR_CHANGED) {
+	if (changed & IEEE802154_AFILT_SADDR_CHANGED) {
 		u16 addr = le16_to_cpu(filt->short_addr);
 
 		dev_vdbg(&lp->spi->dev,
@@ -1106,7 +1106,7 @@ at86rf230_set_hw_addr_filt(struct ieee802154_dev *dev,
 		__at86rf230_write(lp, RG_SHORT_ADDR_1, addr >> 8);
 	}
 
-	if (changed & IEEE802515_AFILT_PANID_CHANGED) {
+	if (changed & IEEE802154_AFILT_PANID_CHANGED) {
 		u16 pan = le16_to_cpu(filt->pan_id);
 
 		dev_vdbg(&lp->spi->dev,
@@ -1115,7 +1115,7 @@ at86rf230_set_hw_addr_filt(struct ieee802154_dev *dev,
 		__at86rf230_write(lp, RG_PAN_ID_1, pan >> 8);
 	}
 
-	if (changed & IEEE802515_AFILT_IEEEADDR_CHANGED) {
+	if (changed & IEEE802154_AFILT_IEEEADDR_CHANGED) {
 		u8 i, addr[8];
 
 		memcpy(addr, &filt->ieee_addr, 8);
@@ -1125,7 +1125,7 @@ at86rf230_set_hw_addr_filt(struct ieee802154_dev *dev,
 			__at86rf230_write(lp, RG_IEEE_ADDR_0 + i, addr[i]);
 	}
 
-	if (changed & IEEE802515_AFILT_PANC_CHANGED) {
+	if (changed & IEEE802154_AFILT_PANC_CHANGED) {
 		dev_vdbg(&lp->spi->dev,
 			"at86rf230_set_hw_addr_filt called for panc change\n");
 		if (filt->pan_coord)
drivers/net/ieee802154/cc2520.c +4 -4
index 8a5ac7a..571f280 100644
@@ -593,7 +593,7 @@ cc2520_filter(struct ieee802154_dev *dev,
 {
 	struct cc2520_private *priv = dev->priv;
 
-	if (changed & IEEE802515_AFILT_PANID_CHANGED) {
+	if (changed & IEEE802154_AFILT_PANID_CHANGED) {
 		u16 panid = le16_to_cpu(filt->pan_id);
 
 		dev_vdbg(&priv->spi->dev,
@@ -602,7 +602,7 @@ cc2520_filter(struct ieee802154_dev *dev,
 				 sizeof(panid), (u8 *)&panid);
 	}
 
-	if (changed & IEEE802515_AFILT_IEEEADDR_CHANGED) {
+	if (changed & IEEE802154_AFILT_IEEEADDR_CHANGED) {
 		dev_vdbg(&priv->spi->dev,
 			 "cc2520_filter called for IEEE addr\n");
 		cc2520_write_ram(priv, CC2520RAM_IEEEADDR,
@@ -610,7 +610,7 @@ cc2520_filter(struct ieee802154_dev *dev,
 				 (u8 *)&filt->ieee_addr);
 	}
 
-	if (changed & IEEE802515_AFILT_SADDR_CHANGED) {
+	if (changed & IEEE802154_AFILT_SADDR_CHANGED) {
 		u16 addr = le16_to_cpu(filt->short_addr);
 
 		dev_vdbg(&priv->spi->dev,
@@ -619,7 +619,7 @@ cc2520_filter(struct ieee802154_dev *dev,
 				 sizeof(addr), (u8 *)&addr);
 	}
 
-	if (changed & IEEE802515_AFILT_PANC_CHANGED) {
+	if (changed & IEEE802154_AFILT_PANC_CHANGED) {
 		dev_vdbg(&priv->spi->dev,
 			 "cc2520_filter called for panc change\n");
 		if (filt->pan_coord)
drivers/net/ieee802154/mrf24j40.c +4 -4
index ba9a396..0006b9a 100644
@@ -462,7 +462,7 @@ static int mrf24j40_filter(struct ieee802154_dev *dev,
 
 	dev_dbg(printdev(devrec), "filter\n");
 
-	if (changed & IEEE802515_AFILT_SADDR_CHANGED) {
+	if (changed & IEEE802154_AFILT_SADDR_CHANGED) {
 		/* Short Addr */
 		u8 addrh, addrl;
 
@@ -475,7 +475,7 @@ static int mrf24j40_filter(struct ieee802154_dev *dev,
 			"Set short addr to %04hx\n", filt->short_addr);
 	}
 
-	if (changed & IEEE802515_AFILT_IEEEADDR_CHANGED) {
+	if (changed & IEEE802154_AFILT_IEEEADDR_CHANGED) {
 		/* Device Address */
 		u8 i, addr[8];
 
@@ -491,7 +491,7 @@ static int mrf24j40_filter(struct ieee802154_dev *dev,
 #endif
 	}
 
-	if (changed & IEEE802515_AFILT_PANID_CHANGED) {
+	if (changed & IEEE802154_AFILT_PANID_CHANGED) {
 		/* PAN ID */
 		u8 panidl, panidh;
 
@@ -503,7 +503,7 @@ static int mrf24j40_filter(struct ieee802154_dev *dev,
 		dev_dbg(printdev(devrec), "Set PANID to %04hx\n", filt->pan_id);
 	}
 
-	if (changed & IEEE802515_AFILT_PANC_CHANGED) {
+	if (changed & IEEE802154_AFILT_PANC_CHANGED) {
 		/* Pan Coordinator */
 		u8 val;
 		int ret;
include/net/mac802154.h +4 -4
index f95b98e..70351de 100644
@@ -32,13 +32,13 @@
  */
 
 /* indicates that the Short Address changed */
-#define IEEE802515_AFILT_SADDR_CHANGED		0x00000001
+#define IEEE802154_AFILT_SADDR_CHANGED		0x00000001
 /* indicates that the IEEE Address changed */
-#define IEEE802515_AFILT_IEEEADDR_CHANGED	0x00000002
+#define IEEE802154_AFILT_IEEEADDR_CHANGED	0x00000002
 /* indicates that the PAN ID changed */
-#define IEEE802515_AFILT_PANID_CHANGED		0x00000004
+#define IEEE802154_AFILT_PANID_CHANGED		0x00000004
 /* indicates that PAN Coordinator status changed */
-#define	IEEE802515_AFILT_PANC_CHANGED		0x00000008
+#define IEEE802154_AFILT_PANC_CHANGED		0x00000008
 
 struct ieee802154_hw_addr_filt {
 	__le16	pan_id;		/* Each independent PAN selects a unique
net/mac802154/mib.c +3 -3
index d7e5df8..3ee6042 100644
@@ -89,7 +89,7 @@ void mac802154_dev_set_short_addr(struct net_device *dev, __le16 val)
 	if ((priv->hw->ops->set_hw_addr_filt) &&
 	    (priv->hw->hw.hw_filt.short_addr != priv->short_addr)) {
 		priv->hw->hw.hw_filt.short_addr = priv->short_addr;
-		set_hw_addr_filt(dev, IEEE802515_AFILT_SADDR_CHANGED);
+		set_hw_addr_filt(dev, IEEE802154_AFILT_SADDR_CHANGED);
 	}
 }
 
@@ -117,7 +117,7 @@ void mac802154_dev_set_ieee_addr(struct net_device *dev)
 	if (mac->ops->set_hw_addr_filt &&
 	    mac->hw.hw_filt.ieee_addr != priv->extended_addr) {
 		mac->hw.hw_filt.ieee_addr = priv->extended_addr;
-		set_hw_addr_filt(dev, IEEE802515_AFILT_IEEEADDR_CHANGED);
+		set_hw_addr_filt(dev, IEEE802154_AFILT_IEEEADDR_CHANGED);
 	}
 }
 
@@ -148,7 +148,7 @@ void mac802154_dev_set_pan_id(struct net_device *dev, __le16 val)
 	if ((priv->hw->ops->set_hw_addr_filt) &&
 	    (priv->hw->hw.hw_filt.pan_id != priv->pan_id)) {
 		priv->hw->hw.hw_filt.pan_id = priv->pan_id;
-		set_hw_addr_filt(dev, IEEE802515_AFILT_PANID_CHANGED);
+		set_hw_addr_filt(dev, IEEE802154_AFILT_PANID_CHANGED);
 	}
 }
 
Signature · 1 line
2.1.2
author maintainer
#4 lore raw

PATCH 4/6 ieee802154: wpan-phy: change to __aligned(size)

In reply to Alexander Aring

This patch fix a checkpatch warning that __aligned(size) is preferred over __attribute__((aligned(size))).

---
 include/net/wpan-phy.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/wpan-phy.h +1 -1
index 65a05f1..fa827c9 100644
@@ -65,7 +65,7 @@ struct wpan_phy {
 			       u8 retries);
 	int (*set_frame_retries)(struct wpan_phy *phy, s8 retries);
 
-	char priv[0] __attribute__((__aligned__(NETDEV_ALIGN)));
+	char priv[0] __aligned(NETDEV_ALIGN);
 };
 
 #define to_phy(_dev)	container_of(_dev, struct wpan_phy, dev)
Signature · 1 line
2.1.2
author maintainer
#5 lore raw

PATCH 5/6 ieee802154: wpan-phy: use blank line after function

In reply to Alexander Aring

This patch adds a blank line after function declaration.

---
 include/net/wpan-phy.h | 1 +
 1 file changed, 1 insertion(+)
include/net/wpan-phy.h +1 -0
index fa827c9..1e9795f 100644
@@ -75,6 +75,7 @@ static inline void wpan_phy_set_dev(struct wpan_phy *phy, struct device *dev)
 {
 	phy->dev.parent = dev;
 }
+
 int wpan_phy_register(struct wpan_phy *phy);
 void wpan_phy_unregister(struct wpan_phy *phy);
 void wpan_phy_free(struct wpan_phy *phy);
Signature · 1 line
2.1.2
author maintainer
#6 lore raw

PATCH 6/6 ieee802154: wpan-class: fix trailing semicolon

In reply to Alexander Aring

This patch removes an unnecessary tailing semicolon after macro define. Otherwise we get a trailing semicolon while using this macro.

---
 net/ieee802154/wpan-class.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ieee802154/wpan-class.c +1 -1
index 9a2dfab..e4c6fb3 100644
@@ -33,7 +33,7 @@ static ssize_t name ## _show(struct device *dev,			\
 	mutex_unlock(&phy->pib_lock);					\
 	return ret;							\
 }									\
-static DEVICE_ATTR_RO(name);
+static DEVICE_ATTR_RO(name)
 
 #define MASTER_SHOW(field, format_string)				\
 	MASTER_SHOW_COMPLEX(field, format_string, phy->field)
Signature · 1 line
2.1.2
#7 lore raw
In reply to Alexander Aring

Hi Alex,

Quoted 33 lines

This patch series contains checkpatch fixes and typos for the ieee802154/mac802154 branch.

Alexander Aring (6):
ieee802154: mac802154: remove FSF address
ieee802154: ieee802154_dev: fix align typo
mac802154: fix typo IEEE802515 to IEEE802154
ieee802154: wpan-phy: change to __aligned(size)
ieee802154: wpan-phy: use blank line after function
ieee802154: wpan-class: fix trailing semicolon

drivers/net/ieee802154/at86rf230.c | 12 ++++--------
drivers/net/ieee802154/cc2520.c    |  8 ++++----
drivers/net/ieee802154/fakelb.c    |  4 ----
drivers/net/ieee802154/mrf24j40.c  | 12 ++++--------
include/linux/nl802154.h           |  4 ----
include/net/af_ieee802154.h        |  4 ----
include/net/ieee802154.h           |  4 ----
include/net/ieee802154_netdev.h    |  4 ----
include/net/mac802154.h            | 11 ++++-------
include/net/nl802154.h             |  4 ----
include/net/wpan-phy.h             |  7 ++-----
net/ieee802154/af802154.h          |  4 ----
net/ieee802154/af_ieee802154.c     |  4 ----
net/ieee802154/dgram.c             |  4 ----
net/ieee802154/ieee802154.h        |  4 ----
net/ieee802154/netlink.c           |  4 ----
net/ieee802154/nl-mac.c            |  4 ----
net/ieee802154/nl-phy.c            |  4 ----
net/ieee802154/nl_policy.c         |  4 ----
net/ieee802154/raw.c               |  4 ----
net/ieee802154/wpan-class.c        |  6 +-----
net/mac802154/ieee802154_dev.c     |  6 +-----
Quoted 8 lines
net/mac802154/mac802154.h          |  4 ----
net/mac802154/mac_cmd.c            |  4 ----
net/mac802154/mib.c                | 10 +++-------
net/mac802154/monitor.c            |  4 ----
net/mac802154/rx.c                 |  4 ----
net/mac802154/tx.c                 |  4 ----
net/mac802154/wpan.c               |  4 ----
29 files changed, 23 insertions(+), 133 deletions(-)

all 6 patches have been applied to bluetooth-next tree.

Regards

Marcel