]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: iss: extract and constify network callbacks
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 8 Apr 2022 08:22:34 +0000 (01:22 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 2 May 2022 02:51:20 +0000 (19:51 -0700)
commit70a99d2ce6340bac5404e8eba2f75a1f9b4435c8
treed8b47313bd7fcadcbd31d59f605f529db430f9ab
parent4e65c244876241b7879fbdd96ca4e4ed18c6521f
xtensa: iss: extract and constify network callbacks

Instead of storing pointers to callback functions in the
struct iss_net_private::tp move them to struct struct iss_net_ops and
store a const pointer to it. Make static const tuntap_ops structure with
tuntap callbacks and initialize tp.net_ops with it in the tuntap_probe.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/platforms/iss/network.c