xref: /OK3568_Linux_fs/kernel/drivers/media/pci/ivtv/ivtv-i2c.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun     I2C functions
4*4882a593Smuzhiyun     Copyright (C) 2003-2004  Kevin Thayer <nufan_wfk at yahoo.com>
5*4882a593Smuzhiyun     Copyright (C) 2005-2007  Hans Verkuil <hverkuil@xs4all.nl>
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun  */
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun #ifndef IVTV_I2C_H
10*4882a593Smuzhiyun #define IVTV_I2C_H
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun void ivtv_i2c_new_ir_legacy(struct ivtv *itv);
13*4882a593Smuzhiyun int ivtv_i2c_register(struct ivtv *itv, unsigned idx);
14*4882a593Smuzhiyun struct v4l2_subdev *ivtv_find_hw(struct ivtv *itv, u32 hw);
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun /* init + register i2c adapter */
17*4882a593Smuzhiyun int init_ivtv_i2c(struct ivtv *itv);
18*4882a593Smuzhiyun void exit_ivtv_i2c(struct ivtv *itv);
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #endif
21