Lines Matching refs:i2c
100 static int hdmi_i2c_xfer(struct i2c_adapter *i2c, in hdmi_i2c_xfer() argument
103 struct hdmi_i2c_adapter *hdmi_i2c = to_hdmi_i2c_adapter(i2c); in hdmi_i2c_xfer()
229 void hdmi_i2c_irq(struct i2c_adapter *i2c) in hdmi_i2c_irq() argument
231 struct hdmi_i2c_adapter *hdmi_i2c = to_hdmi_i2c_adapter(i2c); in hdmi_i2c_irq()
237 void hdmi_i2c_destroy(struct i2c_adapter *i2c) in hdmi_i2c_destroy() argument
239 struct hdmi_i2c_adapter *hdmi_i2c = to_hdmi_i2c_adapter(i2c); in hdmi_i2c_destroy()
240 i2c_del_adapter(i2c); in hdmi_i2c_destroy()
248 struct i2c_adapter *i2c = NULL; in hdmi_i2c_init() local
257 i2c = &hdmi_i2c->base; in hdmi_i2c_init()
263 i2c->owner = THIS_MODULE; in hdmi_i2c_init()
264 i2c->class = I2C_CLASS_DDC; in hdmi_i2c_init()
265 snprintf(i2c->name, sizeof(i2c->name), "msm hdmi i2c"); in hdmi_i2c_init()
266 i2c->dev.parent = &hdmi->pdev->dev; in hdmi_i2c_init()
267 i2c->algo = &hdmi_i2c_algorithm; in hdmi_i2c_init()
269 ret = i2c_add_adapter(i2c); in hdmi_i2c_init()
275 return i2c; in hdmi_i2c_init()
278 if (i2c) in hdmi_i2c_init()
279 hdmi_i2c_destroy(i2c); in hdmi_i2c_init()