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 21:56:35 +0000 (23:56 +0200)
commit1478f641bd0234d2af8fee9855624f2ae93833bf
treefb7934a4ed284c73b750bcccf4ab197962a0c04d
parentf791ec1f6d0986d62e90c3259a42573fcfdd9729
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
(cherry picked from commit e33ebdd00e5aedacb996fd48987067c77e43f5f4)
Link: https://github.com/openwrt/openwrt/pull/16023
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