diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-12-19 18:40:12 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-12-19 19:15:14 +0300 |
commit | 67ba055dd7758c34f6e64c9d35132362c1e1f0b5 (patch) | |
tree | 1890e2ef9c27b44012630b3291433d0116816fd8 /include/linux/regulator/driver.h | |
parent | d939c02359a656a624d03c6f14ccadae4a1c66ac (diff) | |
download | linux-67ba055dd7758c34f6e64c9d35132362c1e1f0b5.tar.xz |
regulator: Reuse LINEAR_RANGE() in REGULATOR_LINEAR_RANGE()
REGULATOR_LINEAR_RANGE() repeats what LINEAR_RANGE() provides.
Deduplicate the former by using the latter. No functional change
intended.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://msgid.link/r/20231219154012.2478688-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator/driver.h')
-rw-r--r-- | include/linux/regulator/driver.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index 4b7eceb3828b..22a07c0900a4 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h @@ -51,12 +51,7 @@ enum regulator_detection_severity { /* Initialize struct linear_range for regulators */ #define REGULATOR_LINEAR_RANGE(_min_uV, _min_sel, _max_sel, _step_uV) \ -{ \ - .min = _min_uV, \ - .min_sel = _min_sel, \ - .max_sel = _max_sel, \ - .step = _step_uV, \ -} + LINEAR_RANGE(_min_uV, _min_sel, _max_sel, _step_uV) /** * struct regulator_ops - regulator operations. |