net: Clarify the documentation of net_if_dev

The documentation of net_if_dev was missing information how
it should be instantiated.

Fixes #59975

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2023-07-04 15:48:29 +03:00 committed by Carles Cufí
commit 77c86e8ad3

View file

@ -465,7 +465,8 @@ typedef int (*net_socket_create_t)(int, int, int);
* and the network device.
*
* Because of the strong relationship between a device driver and such
* network interface, each net_if_dev should be instantiated by
* network interface, each net_if_dev should be instantiated by one of the
* network device init macros found in net_if.h.
*/
struct net_if_dev {
/** The actually device driver instance the net_if is related to */