shaoxing | c0dbf64 | 2018-03-20 19:43:05 +0800 | [diff] [blame] | 1 | /* |
| 2 | * stmvl53l0x-i2c.h - Linux kernel modules for |
| 3 | * STM VL53L0 FlightSense TOF sensor |
| 4 | * |
| 5 | * Copyright (C) 2016 STMicroelectronics Imaging Division. |
| 6 | * Copyright (c) 2018, The Linux Foundation. All rights reserved. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | */ |
| 18 | |
| 19 | #ifndef STMVL_I2C_H |
| 20 | #define STMVL_I2C_H |
| 21 | #include <linux/types.h> |
| 22 | |
| 23 | #ifndef CAMERA_CCI |
| 24 | struct i2c_data { |
| 25 | struct i2c_client *client; |
| 26 | struct regulator *vana; |
| 27 | uint8_t power_up; |
| 28 | }; |
| 29 | int stmvl53l0x_init_i2c(void); |
| 30 | void stmvl53l0x_exit_i2c(void *i2c_object); |
| 31 | int stmvl53l0x_power_up_i2c(void *i2c_object, unsigned int *preset_flag); |
| 32 | int stmvl53l0x_power_down_i2c(void *i2c_object); |
| 33 | |
| 34 | #endif /* NOT CAMERA_CCI */ |
| 35 | #endif /* STMVL_I2C_H */ |