diff options
author | Alexander Koch <mail@alexanderkoch.net> | 2016-01-16 17:14:37 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-01-30 16:26:33 +0000 |
commit | 84e8d090c57522c5f8ae59f5b922bedb929165c7 (patch) | |
tree | f90afc289ea3a0d01f31cc77d880c50ed0548232 /drivers/iio | |
parent | 564cff826fd14b8a2f71e663dec8e53b2243a836 (diff) | |
download | linux-84e8d090c57522c5f8ae59f5b922bedb929165c7.tar.bz2 |
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/light/opt3001.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/light/opt3001.c b/drivers/iio/light/opt3001.c index aefbd7989bda..b05c484a1646 100644 --- a/drivers/iio/light/opt3001.c +++ b/drivers/iio/light/opt3001.c @@ -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; |