Merge branches 'acpi-apei', 'acpi-doc' and 'acpi-soc'
[linux-block.git] / include / media / i2c / m5mols.h
CommitLineData
2874c5fd 1/* SPDX-License-Identifier: GPL-2.0-or-later */
bc125106
HK
2/*
3 * Driver header for M-5MOLS 8M Pixel camera sensor with ISP
4 *
5 * Copyright (C) 2011 Samsung Electronics Co., Ltd.
c3070113 6 * Author: HeungJun Kim <riverful.kim@samsung.com>
bc125106
HK
7 *
8 * Copyright (C) 2009 Samsung Electronics Co., Ltd.
c3070113 9 * Author: Dongsoo Nathaniel Kim <dongsoo45.kim@samsung.com>
bc125106
HK
10 */
11
12#ifndef MEDIA_M5MOLS_H
13#define MEDIA_M5MOLS_H
14
15/**
16 * struct m5mols_platform_data - platform data for M-5MOLS driver
bc125106 17 * @gpio_reset: GPIO driving the reset pin of M-5MOLS
5b3bdfce 18 * @reset_polarity: active state for gpio_reset pin, 0 or 1
bc125106
HK
19 * @set_power: an additional callback to the board setup code
20 * to be called after enabling and before disabling
21 * the sensor's supply regulators
22 */
23struct m5mols_platform_data {
bc125106
HK
24 int gpio_reset;
25 u8 reset_polarity;
26 int (*set_power)(struct device *dev, int on);
27};
28
29#endif /* MEDIA_M5MOLS_H */