Lines Matching refs:isp_i2c
40 struct fimc_is_i2c *isp_i2c; in fimc_is_i2c_probe() local
44 isp_i2c = devm_kzalloc(&pdev->dev, sizeof(*isp_i2c), GFP_KERNEL); in fimc_is_i2c_probe()
45 if (!isp_i2c) in fimc_is_i2c_probe()
48 isp_i2c->clock = devm_clk_get(&pdev->dev, "i2c_isp"); in fimc_is_i2c_probe()
49 if (IS_ERR(isp_i2c->clock)) { in fimc_is_i2c_probe()
51 return PTR_ERR(isp_i2c->clock); in fimc_is_i2c_probe()
54 i2c_adap = &isp_i2c->adapter; in fimc_is_i2c_probe()
62 platform_set_drvdata(pdev, isp_i2c); in fimc_is_i2c_probe()
87 struct fimc_is_i2c *isp_i2c = platform_get_drvdata(pdev); in fimc_is_i2c_remove() local
90 i2c_del_adapter(&isp_i2c->adapter); in fimc_is_i2c_remove()
96 struct fimc_is_i2c *isp_i2c = dev_get_drvdata(dev); in fimc_is_i2c_runtime_suspend() local
98 clk_disable_unprepare(isp_i2c->clock); in fimc_is_i2c_runtime_suspend()
104 struct fimc_is_i2c *isp_i2c = dev_get_drvdata(dev); in fimc_is_i2c_runtime_resume() local
106 return clk_prepare_enable(isp_i2c->clock); in fimc_is_i2c_runtime_resume()