ltq-ptm: Fix netdev ioctls with kernel > 5.15
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 25 Jul 2024 19:51:42 +0000 (21:51 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 28 Jul 2024 14:12:51 +0000 (16:12 +0200)
commite33ebdd00e5aedacb996fd48987067c77e43f5f4
treeadd56343461479bf62c4f1f4c545eb2f0e2fd5ad
parent5e41b285119c1f8f534ab331728fef9679c42acb
ltq-ptm: Fix netdev ioctls with kernel > 5.15

.ndo_do_ioctl is not called for SIOCDEVPRIVATE any more, the kernel
calls .ndo_siocdevprivate now.

The function gets the data pointer from the callback directly, make use
of it.

See upstream Linux kernel commit:
https://git.kernel.org/linus/b9067f5dc4a07c8e24e01a1b277c6722d91be39e

Link: https://github.com/openwrt/openwrt/pull/16005
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_adsl.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c