device: Fix structure documentation

Switching to proper documentation format for structures.

Fixes #26284

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2020-06-19 08:05:56 +02:00 committed by Anas Nashif
commit 871c7105f6
2 changed files with 20 additions and 16 deletions

View file

@ -41,7 +41,13 @@ struct device;
* if the init entry is not used for a device driver but a service.
*/
struct init_entry {
/** Initialization function for the init entry which will take
* the dev attribute as parameter. See below.
*/
int (*init)(struct device *dev);
/** Pointer to a device driver instance structure. Can be NULL
* if the init entry is not used for a device driver but a services.
*/
struct device *dev;
};