diff options
| author | Jaewon Kim <jaewon02.kim@samsung.com> | 2014-12-17 13:31:08 -0500 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-12-21 21:59:20 -0500 |
| commit | d64cb71bede87dbca60d586a7bb4cef87fbe2731 (patch) | |
| tree | 739e9baeed3147f7c81cbd8ff7f4ec714acf7ec4 /include/linux/platform_data | |
| parent | 27a560ba1d4f0a07a36e1de2cae839abe776e8f3 (diff) | |
Input: add regulator haptic driver
This change adds support for haptic driver controlled by voltage of a
regulator. Userspace can control the device via Force Feedback interface
from input framework.
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
Signed-off-by: Hyunhee Kim <hyunhee.kim@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/regulator-haptic.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/platform_data/regulator-haptic.h b/include/linux/platform_data/regulator-haptic.h new file mode 100644 index 000000000000..5658e58e0738 --- /dev/null +++ b/include/linux/platform_data/regulator-haptic.h | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | /* | ||
| 2 | * Regulator Haptic Platform Data | ||
| 3 | * | ||
| 4 | * Copyright (c) 2014 Samsung Electronics Co., Ltd. | ||
| 5 | * Author: Jaewon Kim <jaewon02.kim@samsung.com> | ||
| 6 | * Author: Hyunhee Kim <hyunhee.kim@samsung.com> | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License version 2 as | ||
| 10 | * published by the Free Software Foundation. | ||
| 11 | */ | ||
| 12 | |||
| 13 | #ifndef _REGULATOR_HAPTIC_H | ||
| 14 | #define _REGULATOR_HAPTIC_H | ||
| 15 | |||
| 16 | /* | ||
| 17 | * struct regulator_haptic_data - Platform device data | ||
| 18 | * | ||
| 19 | * @max_volt: maximum voltage value supplied to the haptic motor. | ||
| 20 | * <The unit of the voltage is a micro> | ||
| 21 | * @min_volt: minimum voltage value supplied to the haptic motor. | ||
| 22 | * <The unit of the voltage is a micro> | ||
| 23 | */ | ||
| 24 | struct regulator_haptic_data { | ||
| 25 | unsigned int max_volt; | ||
| 26 | unsigned int min_volt; | ||
| 27 | }; | ||
| 28 | |||
| 29 | #endif /* _REGULATOR_HAPTIC_H */ | ||
