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