October 2017
Intermediate to advanced
586 pages
14h 8m
English
There are two ways to pass regulator_init_data to a driver; this can be done by platform data in the board initialization file or by a node in the device tree using the of_get_regulator_init_data function:
struct regulator_init_data {
struct regulation_constraints constraints;
/* optional regulator machine specific init */
int (*regulator_init)(void *driver_data);
void *driver_data; /* core does not touch this */
};
The following are the meanings of elements in the structure:
As you can see, the struct constraints ...