Lines Matching refs:dev
107 static bool cs35l35_volatile_register(struct device *dev, unsigned int reg) in cs35l35_volatile_register() argument
122 static bool cs35l35_readable_register(struct device *dev, unsigned int reg) in cs35l35_readable_register() argument
146 static bool cs35l35_precious_register(struct device *dev, unsigned int reg) in cs35l35_precious_register() argument
183 dev_err(cs35l35->dev, "PDN_DONE did not complete\n"); in cs35l35_wait_for_pdn()
230 dev_err(component->dev, "Invalid event = 0x%x\n", event); in cs35l35_sdin_event()
300 dev_err(component->dev, "Invalid event = 0x%x\n", event); in cs35l35_main_amp_event()
481 dev_err(component->dev, "Invalid CLK:Rate %d:%d\n", in cs35l35_hw_params()
489 dev_err(component->dev, "Failed to set port config %d\n", ret); in cs35l35_hw_params()
508 dev_err(component->dev, "Failed to set fet config %d\n", in cs35l35_hw_params()
530 dev_err(component->dev, "Unsupported Width %d\n", in cs35l35_hw_params()
553 dev_err(component->dev, "Unsupported sclk/fs ratio %d:%d\n", in cs35l35_hw_params()
567 dev_err(component->dev, "ratio not supported\n"); in cs35l35_hw_params()
577 dev_err(component->dev, "ratio not supported\n"); in cs35l35_hw_params()
586 dev_err(component->dev, "Failed to set fsclk %d\n", ret); in cs35l35_hw_params()
730 dev_err(component->dev, "Invalid CLK Source\n"); in cs35l35_component_set_sysclk()
748 dev_err(component->dev, "Invalid CLK Frequency Input : %d\n", freq); in cs35l35_component_set_sysclk()
756 dev_err(component->dev, "Failed to set sysclk %d\n", ret); in cs35l35_component_set_sysclk()
826 dev_err(cs35l35->dev, "Invalid Inductor Value %d uH\n", in cs35l35_boost_inductor()
1137 dev_crit(cs35l35->dev, "Calibration Error\n"); in cs35l35_irq()
1156 dev_crit(cs35l35->dev, "AMP Short Error\n"); in cs35l35_irq()
1159 dev_dbg(cs35l35->dev, "Amp short error release\n"); in cs35l35_irq()
1174 dev_warn(cs35l35->dev, "Over temperature warning\n"); in cs35l35_irq()
1178 dev_dbg(cs35l35->dev, "Over temperature warn release\n"); in cs35l35_irq()
1193 dev_crit(cs35l35->dev, "Over temperature error\n"); in cs35l35_irq()
1196 dev_dbg(cs35l35->dev, "Over temperature error release\n"); in cs35l35_irq()
1211 dev_crit(cs35l35->dev, "VBST error: powering off!\n"); in cs35l35_irq()
1219 dev_crit(cs35l35->dev, "LBST error: powering off!\n"); in cs35l35_irq()
1227 dev_dbg(cs35l35->dev, "Error: Reactive Brownout\n"); in cs35l35_irq()
1230 dev_dbg(cs35l35->dev, "Error: VMON overflow\n"); in cs35l35_irq()
1233 dev_dbg(cs35l35->dev, "Error: IMON overflow\n"); in cs35l35_irq()
1242 struct device_node *np = i2c_client->dev.of_node; in cs35l35_handle_of_data()
1261 dev_err(&i2c_client->dev, in cs35l35_handle_of_data()
1271 dev_err(&i2c_client->dev, in cs35l35_handle_of_data()
1283 dev_err(&i2c_client->dev, "Inductor not specified.\n"); in cs35l35_handle_of_data()
1471 struct device *dev = &i2c_client->dev; in cs35l35_i2c_probe() local
1472 struct cs35l35_platform_data *pdata = dev_get_platdata(dev); in cs35l35_i2c_probe()
1477 cs35l35 = devm_kzalloc(dev, sizeof(struct cs35l35_private), GFP_KERNEL); in cs35l35_i2c_probe()
1481 cs35l35->dev = dev; in cs35l35_i2c_probe()
1487 dev_err(dev, "regmap_init() failed: %d\n", ret); in cs35l35_i2c_probe()
1496 ret = devm_regulator_bulk_get(dev, cs35l35->num_supplies, in cs35l35_i2c_probe()
1499 dev_err(dev, "Failed to request core supplies: %d\n", ret); in cs35l35_i2c_probe()
1506 pdata = devm_kzalloc(dev, sizeof(struct cs35l35_platform_data), in cs35l35_i2c_probe()
1510 if (i2c_client->dev.of_node) { in cs35l35_i2c_probe()
1522 dev_err(dev, "Failed to enable core supplies: %d\n", ret); in cs35l35_i2c_probe()
1527 cs35l35->reset_gpio = devm_gpiod_get_optional(dev, "reset", in cs35l35_i2c_probe()
1533 dev_info(dev, in cs35l35_i2c_probe()
1536 dev_err(dev, "Failed to get reset GPIO: %d\n", ret); in cs35l35_i2c_probe()
1545 ret = devm_request_threaded_irq(dev, i2c_client->irq, NULL, cs35l35_irq, in cs35l35_i2c_probe()
1549 dev_err(dev, "Failed to request IRQ: %d\n", ret); in cs35l35_i2c_probe()
1556 dev_err(dev, "Failed to read device ID: %d\n", ret); in cs35l35_i2c_probe()
1561 dev_err(dev, "CS35L35 Device ID (%X). Expected ID %X\n", in cs35l35_i2c_probe()
1569 dev_err(dev, "Get Revision ID failed: %d\n", ret); in cs35l35_i2c_probe()
1576 dev_err(dev, "Failed to apply errata patch: %d\n", ret); in cs35l35_i2c_probe()
1580 dev_info(dev, "Cirrus Logic CS35L35 (%x), Revision: %02X\n", in cs35l35_i2c_probe()
1613 ret = devm_snd_soc_register_component(dev, &soc_component_dev_cs35l35, in cs35l35_i2c_probe()
1616 dev_err(dev, "Failed to register component: %d\n", ret); in cs35l35_i2c_probe()