media: noon010p30: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 24 Feb 2022 00:11:29 +0000 (01:11 +0100)
committerSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 4 Mar 2022 07:36:26 +0000 (09:36 +0200)
commitb70f5cd874ccf85c20882e12ba75a61a11ce4018
treeb2e0f9638447b8a65ae61e703a66f2030b01fa87
parent200ae4b56891707ef9ab2f7ca4e8d0daeea32e39
media: noon010p30: Convert to use GPIO descriptors

The noon010pc30 sensor driver is using legacy gpio numbers passed
through platform data and open coding reverse polarity on the
GPIOs used for reset and standby.

Nothing in the kernel defines any platform data for this driver
so we can just convert the driver to use GPIO descriptors and
requires that these specify the correct polarity instead.

Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/media/i2c/noon010pc30.c
include/media/i2c/noon010pc30.h