]> git.karo-electronics.de Git - linux-beck.git/commit
iio: light: opt3001: trivial type refactoring
authorAlexander Koch <mail@alexanderkoch.net>
Sat, 16 Jan 2016 16:14:37 +0000 (17:14 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 30 Jan 2016 16:26:33 +0000 (16:26 +0000)
commit84e8d090c57522c5f8ae59f5b922bedb929165c7
treef90afc289ea3a0d01f31cc77d880c50ed0548232
parent564cff826fd14b8a2f71e663dec8e53b2243a836
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>
drivers/iio/light/opt3001.c