PageRenderTime 26ms CodeModel.GetById 18ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/include/linux/mfd/pm8xxx/vibrator.h

https://github.com/airy09/android_kernel_sony_apq8064
C Header | 39 lines | 21 code | 7 blank | 11 comment | 0 complexity | 34cd8860eab0f2554f136c34e41c9592 MD5 | raw file
 1/* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
 2 *
 3 * This program is free software; you can redistribute it and/or modify
 4 * it under the terms of the GNU General Public License version 2 and
 5 * only version 2 as published by the Free Software Foundation.
 6 *
 7 * This program is distributed in the hope that it will be useful,
 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef __PMIC8XXX_VIBRATOR_H__
14#define __PMIC8XXX_VIBRATOR_H__
15
16#define PM8XXX_VIBRATOR_DEV_NAME "pm8xxx-vib"
17
18enum pm8xxx_vib_en_mode {
19	PM8XXX_VIB_MANUAL,
20	PM8XXX_VIB_DTEST1,
21	PM8XXX_VIB_DTEST2,
22	PM8XXX_VIB_DTEST3
23};
24
25struct pm8xxx_vib_config {
26	u16			drive_mV;
27	u8			active_low;
28	enum pm8xxx_vib_en_mode	enable_mode;
29};
30
31struct pm8xxx_vibrator_platform_data {
32	int initial_vibrate_ms;
33	int max_timeout_ms;
34	int level_mV;
35};
36
37int pm8xxx_vibrator_config(struct pm8xxx_vib_config *vib_config);
38
39#endif /* __PMIC8XXX_VIBRATOR_H__ */