aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Koch <mail@alexanderkoch.net>2016-01-16 11:14:37 -0500
committerJonathan Cameron <jic23@kernel.org>2016-01-30 11:26:33 -0500
commit84e8d090c57522c5f8ae59f5b922bedb929165c7 (patch)
treef90afc289ea3a0d01f31cc77d880c50ed0548232
parent564cff826fd14b8a2f71e663dec8e53b2243a836 (diff)
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>
-rw-r--r--drivers/iio/light/opt3001.c4
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 {
79 struct device *dev; 79 struct device *dev;
80 80
81 struct mutex lock; 81 struct mutex lock;
82 u16 ok_to_ignore_lock:1; 82 bool ok_to_ignore_lock;
83 u16 result_ready:1; 83 bool result_ready;
84 wait_queue_head_t result_ready_queue; 84 wait_queue_head_t result_ready_queue;
85 u16 result; 85 u16 result;
86 86