Lines Matching refs:vb_i2c
360 struct vprbrd_i2c *vb_i2c; in vprbrd_i2c_probe() local
364 vb_i2c = devm_kzalloc(&pdev->dev, sizeof(*vb_i2c), GFP_KERNEL); in vprbrd_i2c_probe()
365 if (vb_i2c == NULL) in vprbrd_i2c_probe()
369 vb_i2c->i2c.owner = THIS_MODULE; in vprbrd_i2c_probe()
370 vb_i2c->i2c.class = I2C_CLASS_HWMON; in vprbrd_i2c_probe()
371 vb_i2c->i2c.algo = &vprbrd_algorithm; in vprbrd_i2c_probe()
372 vb_i2c->i2c.quirks = &vprbrd_quirks; in vprbrd_i2c_probe()
373 vb_i2c->i2c.algo_data = vb; in vprbrd_i2c_probe()
375 vb_i2c->bus_freq_param = i2c_bus_param; in vprbrd_i2c_probe()
377 snprintf(vb_i2c->i2c.name, sizeof(vb_i2c->i2c.name), in vprbrd_i2c_probe()
387 0x0000, 0x0000, &vb_i2c->bus_freq_param, 1, in vprbrd_i2c_probe()
400 vb_i2c->i2c.dev.parent = &pdev->dev; in vprbrd_i2c_probe()
403 i2c_add_adapter(&vb_i2c->i2c); in vprbrd_i2c_probe()
405 platform_set_drvdata(pdev, vb_i2c); in vprbrd_i2c_probe()
412 struct vprbrd_i2c *vb_i2c = platform_get_drvdata(pdev); in vprbrd_i2c_remove() local
414 i2c_del_adapter(&vb_i2c->i2c); in vprbrd_i2c_remove()