blob: 516ac889c6ce1ac95434cab940001184ba211152 [file] [log] [blame]
/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _CAM_OIS_CORE_H_
#define _CAM_OIS_CORE_H_
#include "cam_ois_dev.h"
/**
* @power_info: power setting info to control the power
*
* This API construct the default ois power setting.
*
* @return Status of operation. Negative in case of error. Zero otherwise.
*/
int32_t cam_ois_construct_default_power_setting(
struct cam_sensor_power_ctrl_t *power_info);
int cam_ois_driver_cmd(struct cam_ois_ctrl_t *e_ctrl, void *arg);
/**
* @o_ctrl: OIS ctrl structure
*
* This API handles the shutdown ioctl/close
*/
void cam_ois_shutdown(struct cam_ois_ctrl_t *o_ctrl);
#endif
/* _CAM_OIS_CORE_H_ */