Skip to content

Commit 67ba055

Browse files
andy-shevbroonie
authored andcommitted
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>
1 parent d939c02 commit 67ba055

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

include/linux/regulator/driver.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,7 @@ enum regulator_detection_severity {
5151

5252
/* Initialize struct linear_range for regulators */
5353
#define REGULATOR_LINEAR_RANGE(_min_uV, _min_sel, _max_sel, _step_uV) \
54-
{ \
55-
.min = _min_uV, \
56-
.min_sel = _min_sel, \
57-
.max_sel = _max_sel, \
58-
.step = _step_uV, \
59-
}
54+
LINEAR_RANGE(_min_uV, _min_sel, _max_sel, _step_uV)
6055

6156
/**
6257
* struct regulator_ops - regulator operations.

0 commit comments

Comments
 (0)