Immutable branch for linear range and power-supply for v6.1

Immutable branch between linear range and power-supply for driver
 changes in MT6370.
 
 Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmMk3akACgkQ2O7X88g7
 +pobVQ/+NssJrruHXz+WFl6q7d0CPBtTfwUsvKYD0v7MH62hl/j8v5Sn0CqVcqHf
 dado/SuQgTlrp0SQajHo4QNugAnAnW+VuzcSIqly32WQefjWanrggWUAF7PgxQME
 FrLcNqdxBdZHwBs/uXy4mpZDGdlhA6v1xNDaP2Uek5SGSFn8dcSl/f9L4LTTIPif
 MtxrV4NiO4S1Nyl/8RuTyul9F10Cin7Or9xyw1R0jvX235gxaW+26BviO1I3vGw/
 hYJ8Fof4W81guQKPtl4DOdoHNb3ywTPeGqUw3qgmQd94MIb565bH64eAg1+i1jiS
 fhPAUY8OWZmgnxUITy/gPA9yprGmbsAJyOpePFhPiaYeAAPnjvyhWhPJyCBBlhon
 HVt0gKf7m0YvdcyQ99m8BdqIhT+gwtnL6+pdlYcRFkAVgdtZu+KYNajlajKeMjdn
 wpxDbTeNBCeow7U152iFMa+zC7YXcgFOBqda9QLyQG5eQ7AeWduZJzbOjzs1OGqD
 aZSKJKhLS1yeDYgKbW5CbnUROl2Kqfo/J/MXjHiJxVj28cjgDCgZbdpijDsd2TMU
 uuFClhgincWWRxtbDyC00xQPokRSi9uBIVnvDmlQwWAjOWlOJ5FJ1lirzxsHYsHp
 YW9OAoDnBx/s/jzLaPVUZPs4nco+4xCJR5X10b0DK6J2bF5zBzA=
 =fNL0
 -----END PGP SIGNATURE-----

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:
Sebastian Reichel 2022-09-16 22:34:19 +02:00
commit 3d568b4f4b

View File

@ -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);