summaryrefslogtreecommitdiffstats
path: root/include/media/i2c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2022-02-24 01:13:07 +0100
committerSakari Ailus <sakari.ailus@linux.intel.com>2022-03-04 08:36:26 +0100
commitaaaf357fa61c00376cd8718d36bf06b7f0cbeead (patch)
tree69fd080ea40b9497059f16eb3b65e168cf5c4899 /include/media/i2c
parentmedia: noon010p30: Convert to use GPIO descriptors (diff)
downloadlinux-aaaf357fa61c00376cd8718d36bf06b7f0cbeead.tar.xz
linux-aaaf357fa61c00376cd8718d36bf06b7f0cbeead.zip
media: m5mols: Convert to use GPIO descriptors
The Fujitsu M5MOLS sensor driver is using a reset GPIO number passed from platform data. No machine/board descriptor file in the kernel is using this so let's replace it with a GPIO descriptor. Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Heungjun Kim <riverful.kim@samsung.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Diffstat (limited to 'include/media/i2c')
-rw-r--r--include/media/i2c/m5mols.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/media/i2c/m5mols.h b/include/media/i2c/m5mols.h
index 9cec5a09e125..a56ae353c891 100644
--- a/include/media/i2c/m5mols.h
+++ b/include/media/i2c/m5mols.h
@@ -14,15 +14,11 @@
/**
* struct m5mols_platform_data - platform data for M-5MOLS driver
- * @gpio_reset: GPIO driving the reset pin of M-5MOLS
- * @reset_polarity: active state for gpio_reset pin, 0 or 1
* @set_power: an additional callback to the board setup code
* to be called after enabling and before disabling
* the sensor's supply regulators
*/
struct m5mols_platform_data {
- int gpio_reset;
- u8 reset_polarity;
int (*set_power)(struct device *dev, int on);
};