mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 20:05:14 +07:00
d64cb71bed
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>
30 lines
837 B
C
30 lines
837 B
C
/*
|
|
* Regulator Haptic Platform Data
|
|
*
|
|
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
|
|
* Author: Jaewon Kim <jaewon02.kim@samsung.com>
|
|
* Author: Hyunhee Kim <hyunhee.kim@samsung.com>
|
|
*
|
|
* 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 */
|