diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-01-16 18:16:44 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-18 09:43:10 +0100 |
commit | 851960f4e8c9554b93402fab072acf243386fe42 (patch) | |
tree | 5e5f848c4db14cec7e325cfaf3366acf8705d54f /include | |
parent | 2787c15908a42dc3ee35e1a8037c634afe535b37 (diff) | |
download | barebox-851960f4e8c9554b93402fab072acf243386fe42.tar.gz barebox-851960f4e8c9554b93402fab072acf243386fe42.tar.xz |
regulator: Convert drivers to use struct regulator_desc
To simplify porting kernel code, port a very basic struct
regulator_desc and convert all of the code to use it.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/regulator.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/regulator.h b/include/regulator.h index 367e13f05b..907073607f 100644 --- a/include/regulator.h +++ b/include/regulator.h @@ -4,8 +4,12 @@ /* struct regulator is an opaque object for consumers */ struct regulator; +struct regulator_desc { + const struct regulator_ops *ops; +}; + struct regulator_dev { - struct regulator_ops *ops; + const struct regulator_desc *desc; int boot_on; }; |