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: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user