Lines Matching refs:dev
74 struct device *dev; member
111 dev_err(priv->dev, "signature mismatch!\n"); in tusb320_check_signature()
132 dev_err(priv->dev, "failed to write mode: %d\n", ret); in tusb320_set_mode()
147 dev_err(priv->dev, in tusb320l_set_mode()
157 dev_err(priv->dev, "failed to write mode: %d\n", ret); in tusb320l_set_mode()
167 dev_err(priv->dev, in tusb320l_set_mode()
180 dev_err(priv->dev, in tusb320_reset()
189 dev_err(priv->dev, in tusb320_reset()
259 dev_dbg(priv->dev, "attached state: %s, polarity: %d\n", in tusb320_extcon_irq_handler()
281 struct device *dev = priv->dev; in tusb320_typec_irq_handler() local
292 dev_err(dev, "error during reg8 i2c read, ret=%d!\n", ret); in tusb320_typec_irq_handler()
344 dev_warn(priv->dev, "unexpected ACCESSORY_CONNECTED state %d\n", in tusb320_typec_irq_handler()
379 dev_err(priv->dev, "error during i2c read!\n"); in tusb320_state_update_handler()
416 priv->edev = devm_extcon_dev_allocate(priv->dev, tusb320_extcon_cable); in tusb320_extcon_probe()
418 dev_err(priv->dev, "failed to allocate extcon device\n"); in tusb320_extcon_probe()
422 ret = devm_extcon_dev_register(priv->dev, priv->edev); in tusb320_extcon_probe()
424 dev_err(priv->dev, "failed to register extcon device\n"); in tusb320_extcon_probe()
444 connector = device_get_named_child_node(&client->dev, "connector"); in tusb320_typec_probe()
479 priv->port = typec_register_port(&client->dev, &priv->cap); in tusb320_typec_probe()
519 priv = devm_kzalloc(&client->dev, sizeof(*priv), GFP_KERNEL); in tusb320_probe()
523 priv->dev = &client->dev; in tusb320_probe()
534 match_data = device_get_match_data(&client->dev); in tusb320_probe()
543 dev_warn(priv->dev, in tusb320_probe()
546 dev_info(priv->dev, "chip revision %d\n", revision); in tusb320_probe()
563 dev_warn(priv->dev, "failed to reset chip: %d\n", ret); in tusb320_probe()
571 ret = devm_request_threaded_irq(priv->dev, client->irq, NULL, in tusb320_probe()