mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
synaptics_mmi: export touchscreen class get/set functions
Export touchscreen class get/set functions to allow Synaptics driver to co-exist with Samsung. Change-Id: Iadac17f1b8e80a00974c6b58571a55ebe29e2ef2 Signed-off-by: Konstantin Makariev <hcv867@motorola.com> Reviewed-on: https://gerrit.mot.com/1385480 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Konstantin Makariev <kmakariev@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
f87ee46a09
commit
bada97e392
1 changed files with 13 additions and 1 deletions
|
|
@ -7227,13 +7227,25 @@ static struct device_attribute touchscreen_attributes[] = {
|
|||
#define TSDEV_MINOR_BASE 128
|
||||
#define TSDEV_MINOR_MAX 32
|
||||
|
||||
static struct class *touchscreen_class;
|
||||
struct class *get_touchscreen_class_ptr(void)
|
||||
{
|
||||
return touchscreen_class;
|
||||
}
|
||||
EXPORT_SYMBOL(get_touchscreen_class_ptr);
|
||||
|
||||
void set_touchscreen_class_ptr(struct class *ptr)
|
||||
{
|
||||
touchscreen_class = ptr;
|
||||
}
|
||||
EXPORT_SYMBOL(set_touchscreen_class_ptr);
|
||||
|
||||
static int synaptics_dsx_sysfs_touchscreen(
|
||||
struct synaptics_rmi4_data *rmi4_data, bool create)
|
||||
{
|
||||
struct device_attribute *attrs = touchscreen_attributes;
|
||||
int i, error = 0;
|
||||
char *class_fname = CLASS_PRIMARY_FNAME;
|
||||
static struct class *touchscreen_class;
|
||||
static int minor;
|
||||
|
||||
if (create) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue