media: ov5647: Use gpiod_set_value_cansleep
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Tue, 18 Sep 2018 10:08:51 +0000 (11:08 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:18 +0000 (00:08 +0100)
commit89bb36f3124451d499ce8b33350d2dfcd38b4359
tree4f12c2d07694243239508e9a8d38392e91589ef7
parentcf2c6accdded904a4283e4c35b368200c232ca41
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: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/media/i2c/ov5647.c