diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2022-02-24 01:11:29 +0100 |
---|---|---|
committer | Sakari Ailus <sakari.ailus@linux.intel.com> | 2022-03-04 09:36:26 +0200 |
commit | b70f5cd874ccf85c20882e12ba75a61a11ce4018 (patch) | |
tree | b2e0f9638447b8a65ae61e703a66f2030b01fa87 /include/media | |
parent | 200ae4b56891707ef9ab2f7ca4e8d0daeea32e39 (diff) | |
download | linux-b70f5cd874ccf85c20882e12ba75a61a11ce4018.tar.bz2 |
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>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/i2c/noon010pc30.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/media/i2c/noon010pc30.h b/include/media/i2c/noon010pc30.h index d1b2e06a1de0..1880dad25cf0 100644 --- a/include/media/i2c/noon010pc30.h +++ b/include/media/i2c/noon010pc30.h @@ -12,14 +12,10 @@ /** * struct noon010pc30_platform_data - platform data * @clk_rate: the clock frequency in Hz - * @gpio_nreset: GPIO driving nRESET pin - * @gpio_nstby: GPIO driving nSTBY pin */ struct noon010pc30_platform_data { unsigned long clk_rate; - int gpio_nreset; - int gpio_nstby; }; #endif /* NOON010PC30_H */ |