Re: [PATCH] iio: adc: max9611: explicitly cast gain_selectors

2018-08-19 Thread Jonathan Cameron
On Sat, 11 Aug 2018 11:12:19 +0200 Stefan Agner wrote: > After finding a reasonable gain, the function converts the configured > gain to a gain configuration option selector enum max9611_csa_gain. > Make the conversion clearly visible by using an explicit cast. This > also avoids a warning seen

Re: [PATCH] iio: adc: max9611: explicitly cast gain_selectors

2018-08-19 Thread Jonathan Cameron
On Sat, 11 Aug 2018 11:12:19 +0200 Stefan Agner wrote: > After finding a reasonable gain, the function converts the configured > gain to a gain configuration option selector enum max9611_csa_gain. > Make the conversion clearly visible by using an explicit cast. This > also avoids a warning seen

[PATCH] iio: adc: max9611: explicitly cast gain_selectors

2018-08-11 Thread Stefan Agner
After finding a reasonable gain, the function converts the configured gain to a gain configuration option selector enum max9611_csa_gain. Make the conversion clearly visible by using an explicit cast. This also avoids a warning seen with clang: drivers/iio/adc/max9611.c:292:16: warning: implicit

[PATCH] iio: adc: max9611: explicitly cast gain_selectors

2018-08-11 Thread Stefan Agner
After finding a reasonable gain, the function converts the configured gain to a gain configuration option selector enum max9611_csa_gain. Make the conversion clearly visible by using an explicit cast. This also avoids a warning seen with clang: drivers/iio/adc/max9611.c:292:16: warning: implicit