iio: light: opt3001: trivial type refactoring

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 <mail@alexanderkoch.net>
Signed-off-by: Michael Hornung <mhornung.linux@gmail.com>
Tested-by: Andreas Dannenberg <dannenberg@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
Alexander Koch 2016-01-16 17:14:37 +01:00 committed by Jonathan Cameron
parent 564cff826f
commit 84e8d090c5
1 changed files with 2 additions and 2 deletions

View File

@ -79,8 +79,8 @@ struct opt3001 {
struct device *dev; struct device *dev;
struct mutex lock; struct mutex lock;
u16 ok_to_ignore_lock:1; bool ok_to_ignore_lock;
u16 result_ready:1; bool result_ready;
wait_queue_head_t result_ready_queue; wait_queue_head_t result_ready_queue;
u16 result; u16 result;