Lines Matching full:ec
2 // Expose an I2C passthrough to the ChromeOS EC.
21 * @ec: Pointer to EC device
22 * @remote_bus: The EC bus number we tunnel to on the other side.
30 struct cros_ec_device *ec; member
61 * ec_i2c_construct_message - construct a message to go to the EC
64 * a format that the EC understands.
129 * ec_i2c_parse_response - Parse a response from the EC
131 * We'll take the EC's response and copy it back into msgs.
206 dev_err(dev, "Error constructing EC i2c message %d\n", result); in ec_i2c_xfer()
215 result = cros_ec_cmd_xfer_status(bus->ec, msg); in ec_i2c_xfer()
217 dev_err(dev, "Error transferring EC i2c message %d\n", result); in ec_i2c_xfer()
244 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in ec_i2c_probe() local
250 if (!ec) in ec_i2c_probe()
251 return dev_err_probe(dev, -EPROBE_DEFER, "couldn't find parent EC device\n"); in ec_i2c_probe()
253 if (!ec->cmd_xfer) { in ec_i2c_probe()
269 bus->ec = ec; in ec_i2c_probe()
273 strscpy(bus->adap.name, "cros-ec-i2c-tunnel", sizeof(bus->adap.name)); in ec_i2c_probe()
297 { .compatible = "google,cros-ec-i2c-tunnel" },
312 .name = "cros-ec-i2c-tunnel",
321 MODULE_DESCRIPTION("EC I2C tunnel driver");
322 MODULE_ALIAS("platform:cros-ec-i2c-tunnel");