aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/touchscreen/synaptics.h
blob: 044098ba0d5ae725d7808fdc944e298dcc3eba4a (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
/* drivers/input/touchscreen/synaptics_fw_updater.h
 *
 * Copyright (C) 2012 Samsung Electronics, Inc.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * 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 _LINUX_SYNAPTICS_FW_UPDATER_H
#define _LINUX_SYNAPTICS_FW_UPDATER_H

#include <linux/i2c.h>

struct synaptics_fw_info {
	char version[5];
	const char release_date[5];
	const int hw_id;
};

bool synaptics_fw_update(struct i2c_client *, const u8 *, const int);
bool F54_SetRawCapData(struct i2c_client *, s16 *);
bool F54_SetRxToRxData(struct i2c_client *, s16 *);
bool F54_TxToTest(struct i2c_client *, s16 *, int);
void F01_SetTABit(struct i2c_client *, int);

#endif