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

2021-01-09 Thread Andy Shevchenko
On Sat, Jan 9, 2021 at 9:23 PM Jonathan Cameron wrote: > > On Thu, 7 Jan 2021 13:20:49 +0200 > 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 v8] iio: Handle enumerated properties with gaps

2021-01-09 Thread Jonathan Cameron
On Thu, 7 Jan 2021 13:20:49 +0200 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 v8] iio: Handle enumerated properties with gaps

2021-01-07 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