android_kernel_google_msm/include/linux/android_vibrator.h
Devin Kim be65d0bafa android_vibrator: warmup delay for vibration sensitivity
add warmup delay before vibrator off

Change-Id: Ie6dd325cc6c6b0f6d4501414442472cd40beb4df
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:45:54 -08:00

30 lines
987 B
C

/*
* Copyright (C) 2011, 2012 LGE, 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_ANDROID_VIBRATOR_H
#define __LINUX_ANDROID_VIBRATOR_H
/* android vibrator platform data */
struct android_vibrator_platform_data {
int enable_status;
int amp;
int vibe_n_value;
int vibe_warmup_delay; /* in ms */
int (*power_set)(int enable); /* LDO Power Set Function */
int (*pwm_set)(int enable, int gain, int n_value); /* PWM Set Function */
int (*ic_enable_set)(int enable); /* Motor IC Set Function */
int (*vibrator_init)(void);
};
#endif