Home
last modified time | relevance | path

Searched refs:vb_i2c (Results 1 – 1 of 1) sorted by relevance

/drivers/i2c/busses/
A Di2c-viperboard.c359 struct vprbrd_i2c *vb_i2c; in vprbrd_i2c_probe() local
363 vb_i2c = devm_kzalloc(&pdev->dev, sizeof(*vb_i2c), GFP_KERNEL); in vprbrd_i2c_probe()
364 if (vb_i2c == NULL) in vprbrd_i2c_probe()
368 vb_i2c->i2c.owner = THIS_MODULE; in vprbrd_i2c_probe()
369 vb_i2c->i2c.class = I2C_CLASS_HWMON; in vprbrd_i2c_probe()
371 vb_i2c->i2c.quirks = &vprbrd_quirks; in vprbrd_i2c_probe()
372 vb_i2c->i2c.algo_data = vb; in vprbrd_i2c_probe()
376 snprintf(vb_i2c->i2c.name, sizeof(vb_i2c->i2c.name), in vprbrd_i2c_probe()
400 i2c_add_adapter(&vb_i2c->i2c); in vprbrd_i2c_probe()
402 platform_set_drvdata(pdev, vb_i2c); in vprbrd_i2c_probe()
[all …]

Completed in 3 milliseconds