Searched refs:chost (Results 1 – 1 of 1) sorted by relevance
| /Linux-v5.15/drivers/i2c/busses/ |
| D | i2c-cbus-gpio.c | 175 struct cbus_host *chost = i2c_get_adapdata(adapter); in cbus_i2c_smbus_xfer() local 181 ret = cbus_transfer(chost, read_write == I2C_SMBUS_READ, addr, in cbus_i2c_smbus_xfer() 214 struct cbus_host *chost; in cbus_i2c_probe() local 221 chost = devm_kzalloc(&pdev->dev, sizeof(*chost), GFP_KERNEL); in cbus_i2c_probe() 222 if (!chost) in cbus_i2c_probe() 227 chost->clk = devm_gpiod_get_index(&pdev->dev, NULL, 0, GPIOD_OUT_LOW); in cbus_i2c_probe() 228 if (IS_ERR(chost->clk)) in cbus_i2c_probe() 229 return PTR_ERR(chost->clk); in cbus_i2c_probe() 230 chost->dat = devm_gpiod_get_index(&pdev->dev, NULL, 1, GPIOD_IN); in cbus_i2c_probe() 231 if (IS_ERR(chost->dat)) in cbus_i2c_probe() [all …]
|