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)
commit2aed7af34fc67de08e0720c091ddf753e2e87710
treed8b47313bd7fcadcbd31d59f605f529db430f9ab
parentb7a861a6c3fb8903d4806a12b9ec7806472faa9a
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