October 2017
Intermediate to advanced
586 pages
14h 8m
English
The kernel describes every regulator provided by a PMIC by means of a struct regulator_desc structure, which characterizes a regulator. By regulator, I mean any independent regulated output. For example, the ISL6271A from Intersil is a PMIC with three independent regulated outputs. There should then be three instances of regulator_desc in its driver. This structure, which contains the fixed properties of a regulator, looks like the following:
struct regulator_desc {
const char *name;
const char *of_match;
int id;
unsigned n_voltages;
const struct regulator_ops *ops;
int irq;
enum regulator_type type;
struct module *owner;
unsigned int min_uV;
unsigned int uV_step;
};
Let's omit some fields for the sake of simplicity. ...