linux-yocto/drivers/net/ieee802154
Andy Shevchenko a3642d2d73 ieee802154: ca8210: Use proper setters and getters for bitwise types
[ Upstream commit 169b226220 ]

Sparse complains that the driver doesn't respect the bitwise types:

drivers/net/ieee802154/ca8210.c:1796:27: warning: incorrect type in assignment (different base types)
drivers/net/ieee802154/ca8210.c:1796:27:    expected restricted __le16 [addressable] [assigned] [usertype] pan_id
drivers/net/ieee802154/ca8210.c:1796:27:    got unsigned short [usertype]
drivers/net/ieee802154/ca8210.c:1801:25: warning: incorrect type in assignment (different base types)
drivers/net/ieee802154/ca8210.c:1801:25:    expected restricted __le16 [addressable] [assigned] [usertype] pan_id
drivers/net/ieee802154/ca8210.c:1801:25:    got unsigned short [usertype]
drivers/net/ieee802154/ca8210.c:1928:28: warning: incorrect type in argument 3 (different base types)
drivers/net/ieee802154/ca8210.c:1928:28:    expected unsigned short [usertype] dst_pan_id
drivers/net/ieee802154/ca8210.c:1928:28:    got restricted __le16 [addressable] [usertype] pan_id

Use proper setters and getters for bitwise types.

Note, in accordance with [1] the protocol is little endian.

Link: https://www.cascoda.com/wp-content/uploads/2018/11/CA-8210_datasheet_0418.pdf [1]
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/20250305105656.2133487-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-05-29 11:02:27 +02:00
..
adf7242.c
at86rf230.c ieee802154: at86rf230: Replace of_gpio.h by proper one 2024-03-06 21:13:25 +01:00
at86rf230.h
atusb.c
atusb.h
ca8210.c ieee802154: ca8210: Use proper setters and getters for bitwise types 2025-05-29 11:02:27 +02:00
cc2520.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
fakelb.c net: fill in MODULE_DESCRIPTION()s for ieee802154/fakelb 2024-02-15 08:03:45 -08:00
Kconfig ieee802154: Fix build error 2024-09-09 21:26:17 +02:00
mac802154_hwsim.c ieee802154: hwsim: Convert to platform remove callback returning void 2023-11-20 11:29:57 +01:00
mac802154_hwsim.h
Makefile
mcr20a.c net: ieee802154: mcr20a: Use IRQF_NO_AUTOEN flag in request_irq() 2024-09-27 10:47:53 +02:00
mcr20a.h
mrf24j40.c net: ieee802154: mrf24j40: convert to use maple tree register cache 2024-02-26 21:44:12 +01:00