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:
Konstantin Makariev 2019-07-12 14:03:26 -05:00 • committed by Konstantin Makariev
commit bada97e392

View file

@ -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) {