Skip to content

Commit

Permalink
iio: light: opt3001: trivial type refactoring
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michael Hornung <[email protected]>
Tested-by: Andreas Dannenberg <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
lynix authored and jic23 committed Jan 30, 2016
1 parent 564cff8 commit 84e8d09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/iio/light/opt3001.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ struct opt3001 {
struct device *dev;

struct mutex lock;
u16 ok_to_ignore_lock:1;
u16 result_ready:1;
bool ok_to_ignore_lock;
bool result_ready;
wait_queue_head_t result_ready_queue;
u16 result;

Expand Down

0 comments on commit 84e8d09

Please sign in to comment.