diff options
| author | Linus Walleij <[email protected]> | 2016-08-26 00:10:08 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2016-08-29 19:41:09 +0100 |
| commit | aeb55fff3891834e07a3144159a7298a19696af8 (patch) | |
| tree | 5d6dcd79f4f0bd4fac0a9b26b0e1e413e46798eb /tools/perf/scripts/python | |
| parent | 7f270bc9a2d95967c09e759776a28a8d2a345c74 (diff) | |
iio: st_sensors: fetch and enable regulators unconditionally
These sensors all have Vdd and Vdd_IO lines. This means the
supplies are *not* optional (optional means that the supply is
optional in the electrical sense, not the software sense)
so we need to get the and enable them at all times.
If the device tree or board file does not define suitable
regulators for the component, it will be substituted by a
dummy regulator, or, if regulators are disabled altogether,
by stubs. There is no need to use the IS_ERR_OR_NULL() check
that is considered harmful.
Cc: Giuseppe Barba <[email protected]>
Cc: Denis Ciocca <[email protected]>
Cc: Crestez Dan Leonard <[email protected]>
Cc: Gregor Boirie <[email protected]>
Cc: Mark Brown <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions