summaryrefstree
path: root/kernel/drivers/sensorhub/stm/ssp_misc.h
blob: 1c67a7a07cd4445aa3218dc3bc8531c1807e6d79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 *  Copyright (C) 2014, Samsung Electronics Co. Ltd. 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 as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  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 __SSP_MISC_H__
#define __SSP_MISC_H__

#include "ssp.h"

#define	SHAKE_ON	1
#define	SHAKE_OFF	2

struct remove_af_noise {
	void *af_pdata;
	int16_t (*af_func)(void *, bool);
};

int remove_af_noise_register(struct remove_af_noise *af_cam);
EXPORT_SYMBOL(remove_af_noise_register);

void remove_af_noise_unregister(struct remove_af_noise *af_cam);
EXPORT_SYMBOL(remove_af_noise_unregister);

void report_shake_cam_data(struct ssp_data *data,
	struct sensor_value *shake_cam_data);

#endif