summaryrefstree
path: root/kernel/techpack/display/msm/dp/secdp_sysfs.h
blob: 37bf1f324f3450d0c4f1bedaffb66b3757378b66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * Copyright (c) 2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */
#ifndef __SECDP_SYSFS_H
#define __SECDP_SYSFS_H

#include "secdp.h"

struct secdp_sysfs {
	struct class	*dp_class;
};

struct secdp_sysfs *secdp_sysfs_init(void);
void secdp_sysfs_deinit(struct secdp_sysfs *sysfs);

/**
 * secdp_sysfs_get() - get the functionalities of dp test module
 *
 *
 * return: a pointer to dp_link struct
 */
struct secdp_sysfs *secdp_sysfs_get(struct device *dev, struct secdp_misc *sec);

/**
 * secdp_sysfs_put() - releases the dp test module's resources
 *
 * @dp_link: an instance of dp_link module
 *
 */
void secdp_sysfs_put(struct secdp_sysfs *dp_sysfs);

#endif /*__SECDP_SYSFS_H*/