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.
Showing the changes to include (1 of 5 files). Show all
Unified · Split
| @@ -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 */ | |