projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d939c02
)
regulator: Reuse LINEAR_RANGE() in REGULATOR_LINEAR_RANGE()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Tue, 19 Dec 2023 15:40:12 +0000
(17:40 +0200)
committer
Mark Brown
<broonie@kernel.org>
Tue, 19 Dec 2023 16:15:14 +0000
(16:15 +0000)
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>
include/linux/regulator/driver.h
patch
|
blob
|
history
diff --git
a/include/linux/regulator/driver.h
b/include/linux/regulator/driver.h
index 4b7eceb3828b0aced64147df1271f029c61fb059..22a07c0900a4136729aaab6834a9589aee84f1b5 100644
(file)
--- 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.