History

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.

Jaewon Kim committed 11 years ago

Commit d64cb711 parent 27a560b5 files · +342 −0Browse files

Showing the changes to include/linux/platform_data (1 of 5 files). Show all

Unified · Split

include/linux/platform_data/regulator-haptic.h+29−0
@@ -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 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t