Re: [PATCH v2 2/3] iio: light: opt3001: trivial type refactoring

2016-01-29 Thread Andreas Dannenberg
On Sat, Jan 16, 2016 at 05:14:37PM +0100, Alexander Koch wrote: > Change variable type of struct opt3001 members 'ok_to_ignore_lock' and > 'result_ready' uint16-bitfield of length one to bool. > > They are used as bool, let the compiler do the optimization. > > Signed-off-by: Alexander Koch > Si

Re: [PATCH v2 2/3] iio: light: opt3001: trivial type refactoring

2016-01-24 Thread Jonathan Cameron
On 16/01/16 16:14, Alexander Koch wrote: > Change variable type of struct opt3001 members 'ok_to_ignore_lock' and > 'result_ready' uint16-bitfield of length one to bool. > > They are used as bool, let the compiler do the optimization. > > Signed-off-by: Alexander Koch > Signed-off-by: Michael Ho