mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
be65d0bafa
add warmup delay before vibrator off Change-Id: Ie6dd325cc6c6b0f6d4501414442472cd40beb4df Signed-off-by: Iliyan Malchev <malchev@google.com>
30 lines
987 B
C
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
|
|
|