]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32223fe288b69663ea6558d7c344b03204d4d6be
treeb2e0f9638447b8a65ae61e703a66f2030b01fa87
parent497d70ad3232804b7172e0d9e8b2ca6078bf3de3
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