Re: [PATCH v4] iio: Handle enumerated properties with gaps

2020-12-22 Thread Alexandru Ardelean
On Tue, Dec 22, 2020 at 9:21 AM Alexandru Ardelean wrote: > > On Mon, Dec 21, 2020 at 8:02 PM Andy Shevchenko > wrote: > > > > On Mon, Dec 21, 2020 at 5:11 PM Alexandru Ardelean > > wrote: > > > > > > From: Lars-Peter Clausen > > > > > > Some enums might have gaps or reserved values in the

Re: [PATCH v4] iio: Handle enumerated properties with gaps

2020-12-21 Thread Alexandru Ardelean
On Mon, Dec 21, 2020 at 8:02 PM Andy Shevchenko wrote: > > On Mon, Dec 21, 2020 at 5:11 PM Alexandru Ardelean > wrote: > > > > From: Lars-Peter Clausen > > > > Some enums might have gaps or reserved values in the middle of their value > > range. E.g. consider a 2-bit enum where the values 0, 1

Re: [PATCH v4] iio: Handle enumerated properties with gaps

2020-12-21 Thread Andy Shevchenko
On Mon, Dec 21, 2020 at 5:11 PM Alexandru Ardelean wrote: > > From: Lars-Peter Clausen > > Some enums might have gaps or reserved values in the middle of their value > range. E.g. consider a 2-bit enum where the values 0, 1 and 3 have a > meaning, but 2 is a reserved value and can not be used. >

[PATCH v4] iio: Handle enumerated properties with gaps

2020-12-21 Thread Alexandru Ardelean
From: Lars-Peter Clausen Some enums might have gaps or reserved values in the middle of their value range. E.g. consider a 2-bit enum where the values 0, 1 and 3 have a meaning, but 2 is a reserved value and can not be used. Add support for such enums to the IIO enum helper functions. A