提交 84e8d090 编写于 作者: A Alexander Koch 提交者: Jonathan Cameron

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: NAlexander Koch <mail@alexanderkoch.net>
Signed-off-by: NMichael Hornung <mhornung.linux@gmail.com>
Tested-by: NAndreas Dannenberg <dannenberg@ti.com>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 564cff82
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册