diff options
| author | Jaewon Kim <[email protected]> | 2014-12-17 10:31:08 -0800 |
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2014-12-21 18:59:20 -0800 |
| commit | d64cb71bede87dbca60d586a7bb4cef87fbe2731 (patch) | |
| tree | 739e9baeed3147f7c81cbd8ff7f4ec714acf7ec4 /include | |
| 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 <[email protected]>
Signed-off-by: Hyunhee Kim <[email protected]>
Acked-by: Kyungmin Park <[email protected]>
Tested-by: Chanwoo Choi <[email protected]>
Reviewed-by: Chanwoo Choi <[email protected]>
Reviewed-by: Pankaj Dubey <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'include')
| -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 @@ +/* + * Regulator Haptic Platform Data + * + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Author: Jaewon Kim <[email protected]> + * Author: Hyunhee Kim <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#ifndef _REGULATOR_HAPTIC_H +#define _REGULATOR_HAPTIC_H + +/* + * struct regulator_haptic_data - Platform device data + * + * @max_volt: maximum voltage value supplied to the haptic motor. + * <The unit of the voltage is a micro> + * @min_volt: minimum voltage value supplied to the haptic motor. + * <The unit of the voltage is a micro> + */ +struct regulator_haptic_data { + unsigned int max_volt; + unsigned int min_volt; +}; + +#endif /* _REGULATOR_HAPTIC_H */ |