]> asedeno.scripts.mit.edu Git - linux.git/commit
media: tw9910: add helper function for setting gpiod value
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sun, 30 Dec 2018 11:41:41 +0000 (06:41 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 16 Jan 2019 16:30:38 +0000 (11:30 -0500)
commitcf6a9896622da6233f8b25beeabb4a98729a49c3
tree4c52eb8055f9d3057a419173ff7047a7adc76d95
parentd6b10dd0017641fee31daa84e478708a33d2f00a
media: tw9910: add helper function for setting gpiod value

tw9910 driver tries to sleep for the same period of time
after each gpiod_set_value(). The patch moves duplicated code
to a helper function.

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/tw9910.c