Commit 3d568b4f authored by Sebastian Reichel's avatar Sebastian Reichel

Merge tag 'psy-linear-range-for-v6.1-signed' into psy-next

Immutable branch between linear range and power-supply for driver
changes in MT6370.
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parents 55cafd4b c2f2e2c3
......@@ -26,6 +26,17 @@ struct linear_range {
unsigned int step;
};
#define LINEAR_RANGE(_min, _min_sel, _max_sel, _step) \
{ \
.min = _min, \
.min_sel = _min_sel, \
.max_sel = _max_sel, \
.step = _step, \
}
#define LINEAR_RANGE_IDX(_idx, _min, _min_sel, _max_sel, _step) \
[_idx] = LINEAR_RANGE(_min, _min_sel, _max_sel, _step)
unsigned int linear_range_values_in_range(const struct linear_range *r);
unsigned int linear_range_values_in_range_array(const struct linear_range *r,
int ranges);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment