summaryrefslogtreecommitdiff
path: root/include/media/nvc_debugfs.h
blob: c8ffa7e824eb19c6efc855ff08bad65c596333ec (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
/*
* nvc_debugfs.h
*
* Copyright (c) 2013, NVIDIA, All Rights Reserved.
*
* This file is licensed under the terms of the GNU General Public License
* version 2. This program is licensed "as is" without any warranty of any
* kind, whether express or implied.
*/

#ifndef __NVC_DEBUGFS_H__
#define __NVC_DEBUGFS_H__

#include <linux/i2c.h>

struct nvc_debugfs_info {
	const char *name;
	struct dentry *debugfs_root;
	u16 i2c_reg;
	u16 i2c_addr_limit;
	struct i2c_client *i2c_client;
	int (*i2c_rd8)(struct i2c_client*, u16, u8*);
	int (*i2c_wr8)(struct i2c_client*, u16, u8);
};

int nvc_debugfs_init(struct nvc_debugfs_info *info);
int nvc_debugfs_remove(struct nvc_debugfs_info *info);

#endif /* __NVC_DEBUGFS_H__ */