xref: /openbmc/linux/drivers/media/pci/cx18/cx18-i2c.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*c942fddfSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
2b285192aSMauro Carvalho Chehab /*
3b285192aSMauro Carvalho Chehab  *  cx18 I2C functions
4b285192aSMauro Carvalho Chehab  *
5b285192aSMauro Carvalho Chehab  *  Derived from ivtv-i2c.h
6b285192aSMauro Carvalho Chehab  *
7b285192aSMauro Carvalho Chehab  *  Copyright (C) 2007  Hans Verkuil <hverkuil@xs4all.nl>
8b285192aSMauro Carvalho Chehab  */
9b285192aSMauro Carvalho Chehab 
10b285192aSMauro Carvalho Chehab int cx18_i2c_register(struct cx18 *cx, unsigned idx);
11b285192aSMauro Carvalho Chehab struct v4l2_subdev *cx18_find_hw(struct cx18 *cx, u32 hw);
12b285192aSMauro Carvalho Chehab 
13b285192aSMauro Carvalho Chehab /* init + register i2c adapter */
14b285192aSMauro Carvalho Chehab int init_cx18_i2c(struct cx18 *cx);
15b285192aSMauro Carvalho Chehab void exit_cx18_i2c(struct cx18 *cx);
16