Lines Matching refs:vb_i2c
358 struct vprbrd_i2c *vb_i2c; in vprbrd_i2c_probe() local
362 vb_i2c = devm_kzalloc(&pdev->dev, sizeof(*vb_i2c), GFP_KERNEL); in vprbrd_i2c_probe()
363 if (vb_i2c == NULL) in vprbrd_i2c_probe()
367 vb_i2c->i2c.owner = THIS_MODULE; in vprbrd_i2c_probe()
368 vb_i2c->i2c.class = I2C_CLASS_HWMON; in vprbrd_i2c_probe()
369 vb_i2c->i2c.algo = &vprbrd_algorithm; in vprbrd_i2c_probe()
370 vb_i2c->i2c.quirks = &vprbrd_quirks; in vprbrd_i2c_probe()
371 vb_i2c->i2c.algo_data = vb; in vprbrd_i2c_probe()
373 vb_i2c->bus_freq_param = i2c_bus_param; in vprbrd_i2c_probe()
375 snprintf(vb_i2c->i2c.name, sizeof(vb_i2c->i2c.name), in vprbrd_i2c_probe()
385 0x0000, 0x0000, &vb_i2c->bus_freq_param, 1, in vprbrd_i2c_probe()
398 vb_i2c->i2c.dev.parent = &pdev->dev; in vprbrd_i2c_probe()
401 i2c_add_adapter(&vb_i2c->i2c); in vprbrd_i2c_probe()
403 platform_set_drvdata(pdev, vb_i2c); in vprbrd_i2c_probe()
410 struct vprbrd_i2c *vb_i2c = platform_get_drvdata(pdev); in vprbrd_i2c_remove() local
412 i2c_del_adapter(&vb_i2c->i2c); in vprbrd_i2c_remove()