Skip to content
Commit 675e29ff authored by Dave Stevenson's avatar Dave Stevenson Committed by Phil Elwell
Browse files

media: ov5647: Use gpiod_set_value_cansleep



All calls to the gpio library are in contexts that can sleep,
therefore there is no issue with having those GPIOs controlled
by controllers which require sleeping (eg I2C GPIO expanders).

Switch to using gpiod_set_value_cansleep instead of gpiod_set_value
to avoid triggering the warning in gpiolib should the GPIO
controller need to sleep.

Signed-off-by: default avatarDave Stevenson <dave.stevenson@raspberrypi.org>
parent 71538ec0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment