media: c8sectpfe: switch to using gpiod API
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 3 Feb 2023 23:13:48 +0000 (15:13 -0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 25 May 2023 14:21:23 +0000 (16:21 +0200)
commit7d4be90b3deb6b32fb99644a158e6cff0a0520f4
treeb26259c85397478ce89e4d158eb38f5f4462011e
parenta650b821fa57989deab9f7274a33af6ffab28e7e
media: c8sectpfe: switch to using gpiod API

This switches the driver from using legacy gpio API and to the newer
gpiod API. Since ordinary gpiod APIs operate on logical and not
electrical levels, handling of the reset GPIO is adjusted accordingly.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c
drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.h