Home
last modified time | relevance | path

Searched refs:i2c_client (Results 1 – 25 of 182) sorted by relevance

12345678

/sound/soc/codecs/
Dcs35l32.c270 static int cs35l32_handle_of_data(struct i2c_client *i2c_client, in cs35l32_handle_of_data() argument
273 struct device_node *np = i2c_client->dev.of_node; in cs35l32_handle_of_data()
291 dev_err(&i2c_client->dev, in cs35l32_handle_of_data()
307 dev_err(&i2c_client->dev, in cs35l32_handle_of_data()
323 dev_err(&i2c_client->dev, in cs35l32_handle_of_data()
341 dev_err(&i2c_client->dev, in cs35l32_handle_of_data()
349 static int cs35l32_i2c_probe(struct i2c_client *i2c_client, in cs35l32_i2c_probe() argument
354 dev_get_platdata(&i2c_client->dev); in cs35l32_i2c_probe()
358 cs35l32 = devm_kzalloc(&i2c_client->dev, sizeof(*cs35l32), GFP_KERNEL); in cs35l32_i2c_probe()
362 i2c_set_clientdata(i2c_client, cs35l32); in cs35l32_i2c_probe()
[all …]
Dcs4270.c663 static int cs4270_i2c_remove(struct i2c_client *i2c_client) in cs4270_i2c_remove() argument
665 struct cs4270_private *cs4270 = i2c_get_clientdata(i2c_client); in cs4270_i2c_remove()
680 static int cs4270_i2c_probe(struct i2c_client *i2c_client, in cs4270_i2c_probe() argument
687 cs4270 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs4270_private), in cs4270_i2c_probe()
696 ret = devm_regulator_bulk_get(&i2c_client->dev, in cs4270_i2c_probe()
703 cs4270->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, "reset", in cs4270_i2c_probe()
706 dev_dbg(&i2c_client->dev, "Error getting CS4270 reset GPIO\n"); in cs4270_i2c_probe()
711 dev_dbg(&i2c_client->dev, "Found reset GPIO\n"); in cs4270_i2c_probe()
718 cs4270->regmap = devm_regmap_init_i2c(i2c_client, &cs4270_regmap); in cs4270_i2c_probe()
725 dev_err(&i2c_client->dev, "failed to read i2c at addr %X\n", in cs4270_i2c_probe()
[all …]
Dcs35l34.c807 static int cs35l34_handle_of_data(struct i2c_client *i2c_client, in cs35l34_handle_of_data() argument
810 struct device_node *np = i2c_client->dev.of_node; in cs35l34_handle_of_data()
817 dev_err(&i2c_client->dev, in cs35l34_handle_of_data()
826 dev_warn(&i2c_client->dev, in cs35l34_handle_of_data()
833 dev_err(&i2c_client->dev, "Inductor not specified.\n"); in cs35l34_handle_of_data()
839 dev_err(&i2c_client->dev, in cs35l34_handle_of_data()
995 static int cs35l34_i2c_probe(struct i2c_client *i2c_client, in cs35l34_i2c_probe() argument
1000 dev_get_platdata(&i2c_client->dev); in cs35l34_i2c_probe()
1005 cs35l34 = devm_kzalloc(&i2c_client->dev, sizeof(*cs35l34), GFP_KERNEL); in cs35l34_i2c_probe()
1009 i2c_set_clientdata(i2c_client, cs35l34); in cs35l34_i2c_probe()
[all …]
Dcs35l33.c1117 static int cs35l33_i2c_probe(struct i2c_client *i2c_client, in cs35l33_i2c_probe() argument
1121 struct cs35l33_pdata *pdata = dev_get_platdata(&i2c_client->dev); in cs35l33_i2c_probe()
1125 cs35l33 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs35l33_private), in cs35l33_i2c_probe()
1130 i2c_set_clientdata(i2c_client, cs35l33); in cs35l33_i2c_probe()
1131 cs35l33->regmap = devm_regmap_init_i2c(i2c_client, &cs35l33_regmap); in cs35l33_i2c_probe()
1134 dev_err(&i2c_client->dev, "regmap_init() failed: %d\n", ret); in cs35l33_i2c_probe()
1145 ret = devm_regulator_bulk_get(&i2c_client->dev, in cs35l33_i2c_probe()
1149 dev_err(&i2c_client->dev, in cs35l33_i2c_probe()
1158 cs35l33_of_get_pdata(&i2c_client->dev, cs35l33); in cs35l33_i2c_probe()
1162 ret = devm_request_threaded_irq(&i2c_client->dev, i2c_client->irq, NULL, in cs35l33_i2c_probe()
[all …]
Dcs42l56.c1132 static int cs42l56_handle_of_data(struct i2c_client *i2c_client, in cs42l56_handle_of_data() argument
1135 struct device_node *np = i2c_client->dev.of_node; in cs42l56_handle_of_data()
1170 static int cs42l56_i2c_probe(struct i2c_client *i2c_client, in cs42l56_i2c_probe() argument
1175 dev_get_platdata(&i2c_client->dev); in cs42l56_i2c_probe()
1181 cs42l56 = devm_kzalloc(&i2c_client->dev, sizeof(*cs42l56), GFP_KERNEL); in cs42l56_i2c_probe()
1184 cs42l56->dev = &i2c_client->dev; in cs42l56_i2c_probe()
1186 cs42l56->regmap = devm_regmap_init_i2c(i2c_client, &cs42l56_regmap); in cs42l56_i2c_probe()
1189 dev_err(&i2c_client->dev, "regmap_init() failed: %d\n", ret); in cs42l56_i2c_probe()
1196 if (i2c_client->dev.of_node) { in cs42l56_i2c_probe()
1197 ret = cs42l56_handle_of_data(i2c_client, in cs42l56_i2c_probe()
[all …]
Dcs4265.c571 static int cs4265_i2c_probe(struct i2c_client *i2c_client, in cs4265_i2c_probe() argument
579 cs4265 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs4265_private), in cs4265_i2c_probe()
584 cs4265->regmap = devm_regmap_init_i2c(i2c_client, &cs4265_regmap); in cs4265_i2c_probe()
587 dev_err(&i2c_client->dev, "regmap_init() failed: %d\n", ret); in cs4265_i2c_probe()
591 cs4265->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, in cs4265_i2c_probe()
601 i2c_set_clientdata(i2c_client, cs4265); in cs4265_i2c_probe()
605 dev_err(&i2c_client->dev, "Failed to read chip ID: %d\n", ret); in cs4265_i2c_probe()
612 dev_err(&i2c_client->dev, in cs4265_i2c_probe()
617 dev_info(&i2c_client->dev, in cs4265_i2c_probe()
623 return devm_snd_soc_register_component(&i2c_client->dev, in cs4265_i2c_probe()
Dcs42l52.c1091 static int cs42l52_i2c_probe(struct i2c_client *i2c_client, in cs42l52_i2c_probe() argument
1095 struct cs42l52_platform_data *pdata = dev_get_platdata(&i2c_client->dev); in cs42l52_i2c_probe()
1101 cs42l52 = devm_kzalloc(&i2c_client->dev, sizeof(*cs42l52), GFP_KERNEL); in cs42l52_i2c_probe()
1104 cs42l52->dev = &i2c_client->dev; in cs42l52_i2c_probe()
1106 cs42l52->regmap = devm_regmap_init_i2c(i2c_client, &cs42l52_regmap); in cs42l52_i2c_probe()
1109 dev_err(&i2c_client->dev, "regmap_init() failed: %d\n", ret); in cs42l52_i2c_probe()
1115 pdata = devm_kzalloc(&i2c_client->dev, sizeof(*pdata), in cs42l52_i2c_probe()
1120 if (i2c_client->dev.of_node) { in cs42l52_i2c_probe()
1121 if (of_property_read_bool(i2c_client->dev.of_node, in cs42l52_i2c_probe()
1125 if (of_property_read_bool(i2c_client->dev.of_node, in cs42l52_i2c_probe()
[all …]
Dcs42l73.c1277 static int cs42l73_i2c_probe(struct i2c_client *i2c_client, in cs42l73_i2c_probe() argument
1281 struct cs42l73_platform_data *pdata = dev_get_platdata(&i2c_client->dev); in cs42l73_i2c_probe()
1286 cs42l73 = devm_kzalloc(&i2c_client->dev, sizeof(*cs42l73), GFP_KERNEL); in cs42l73_i2c_probe()
1290 cs42l73->regmap = devm_regmap_init_i2c(i2c_client, &cs42l73_regmap); in cs42l73_i2c_probe()
1293 dev_err(&i2c_client->dev, "regmap_init() failed: %d\n", ret); in cs42l73_i2c_probe()
1300 pdata = devm_kzalloc(&i2c_client->dev, sizeof(*pdata), in cs42l73_i2c_probe()
1305 if (i2c_client->dev.of_node) { in cs42l73_i2c_probe()
1306 if (of_property_read_u32(i2c_client->dev.of_node, in cs42l73_i2c_probe()
1310 pdata->reset_gpio = of_get_named_gpio(i2c_client->dev.of_node, in cs42l73_i2c_probe()
1315 i2c_set_clientdata(i2c_client, cs42l73); in cs42l73_i2c_probe()
[all …]
Dcs42l42.c1888 static int cs42l42_i2c_probe(struct i2c_client *i2c_client, in cs42l42_i2c_probe() argument
1895 cs42l42 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs42l42_private), in cs42l42_i2c_probe()
1900 i2c_set_clientdata(i2c_client, cs42l42); in cs42l42_i2c_probe()
1902 cs42l42->regmap = devm_regmap_init_i2c(i2c_client, &cs42l42_regmap); in cs42l42_i2c_probe()
1905 dev_err(&i2c_client->dev, "regmap_init() failed: %d\n", ret); in cs42l42_i2c_probe()
1912 ret = devm_regulator_bulk_get(&i2c_client->dev, in cs42l42_i2c_probe()
1916 dev_err(&i2c_client->dev, in cs42l42_i2c_probe()
1924 dev_err(&i2c_client->dev, in cs42l42_i2c_probe()
1930 cs42l42->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, in cs42l42_i2c_probe()
1938 dev_dbg(&i2c_client->dev, "Found reset GPIO\n"); in cs42l42_i2c_probe()
[all …]
Dwm2000.c61 struct i2c_client *i2c;
81 static int wm2000_write(struct i2c_client *i2c, unsigned int reg, in wm2000_write()
90 struct i2c_client *i2c = wm2000->i2c; in wm2000_reset()
99 static int wm2000_poll_bit(struct i2c_client *i2c, in wm2000_poll_bit()
119 static int wm2000_power_up(struct i2c_client *i2c, int analogue) in wm2000_power_up()
234 static int wm2000_power_down(struct i2c_client *i2c, int analogue) in wm2000_power_down()
268 static int wm2000_enter_bypass(struct i2c_client *i2c, int analogue) in wm2000_enter_bypass()
307 static int wm2000_exit_bypass(struct i2c_client *i2c, int analogue) in wm2000_exit_bypass()
342 static int wm2000_enter_standby(struct i2c_client *i2c, int analogue) in wm2000_enter_standby()
386 static int wm2000_exit_standby(struct i2c_client *i2c, int analogue) in wm2000_exit_standby()
[all …]
Dcs35l36.c1432 static int cs35l36_handle_of_data(struct i2c_client *i2c_client, in cs35l36_handle_of_data() argument
1435 struct device_node *np = i2c_client->dev.of_node; in cs35l36_handle_of_data()
1447 dev_err(&i2c_client->dev, in cs35l36_handle_of_data()
1453 dev_err(&i2c_client->dev, in cs35l36_handle_of_data()
1465 dev_err(&i2c_client->dev, in cs35l36_handle_of_data()
1472 dev_err(&i2c_client->dev, in cs35l36_handle_of_data()
1498 dev_err(&i2c_client->dev, "Inductor not specified.\n"); in cs35l36_handle_of_data()
1704 static int cs35l36_i2c_probe(struct i2c_client *i2c_client, in cs35l36_i2c_probe() argument
1708 struct device *dev = &i2c_client->dev; in cs35l36_i2c_probe()
1720 i2c_set_clientdata(i2c_client, cs35l36); in cs35l36_i2c_probe()
[all …]
Dcs4234.c734 static int cs4234_i2c_probe(struct i2c_client *i2c_client, const struct i2c_device_id *id) in cs4234_i2c_probe() argument
737 struct device *dev = &i2c_client->dev; in cs4234_i2c_probe()
746 i2c_set_clientdata(i2c_client, cs4234); in cs4234_i2c_probe()
780 cs4234->regmap = devm_regmap_init_i2c(i2c_client, &cs4234_regmap); in cs4234_i2c_probe()
831 pm_runtime_set_active(&i2c_client->dev); in cs4234_i2c_probe()
832 pm_runtime_enable(&i2c_client->dev); in cs4234_i2c_probe()
841 pm_runtime_disable(&i2c_client->dev); in cs4234_i2c_probe()
853 static int cs4234_i2c_remove(struct i2c_client *i2c_client) in cs4234_i2c_remove() argument
855 struct cs4234 *cs4234 = i2c_get_clientdata(i2c_client); in cs4234_i2c_remove()
856 struct device *dev = &i2c_client->dev; in cs4234_i2c_remove()
Dcs35l35.c1240 static int cs35l35_handle_of_data(struct i2c_client *i2c_client, in cs35l35_handle_of_data() argument
1243 struct device_node *np = i2c_client->dev.of_node; in cs35l35_handle_of_data()
1262 dev_err(&i2c_client->dev, in cs35l35_handle_of_data()
1272 dev_err(&i2c_client->dev, in cs35l35_handle_of_data()
1284 dev_err(&i2c_client->dev, "Inductor not specified.\n"); in cs35l35_handle_of_data()
1469 static int cs35l35_i2c_probe(struct i2c_client *i2c_client, in cs35l35_i2c_probe() argument
1473 struct device *dev = &i2c_client->dev; in cs35l35_i2c_probe()
1485 i2c_set_clientdata(i2c_client, cs35l35); in cs35l35_i2c_probe()
1486 cs35l35->regmap = devm_regmap_init_i2c(i2c_client, &cs35l35_regmap); in cs35l35_i2c_probe()
1512 if (i2c_client->dev.of_node) { in cs35l35_i2c_probe()
[all …]
Dwm1250-ev1.c150 static int wm1250_ev1_pdata(struct i2c_client *i2c) in wm1250_ev1_pdata()
187 static void wm1250_ev1_free(struct i2c_client *i2c) in wm1250_ev1_free()
195 static int wm1250_ev1_probe(struct i2c_client *i2c, in wm1250_ev1_probe()
233 static int wm1250_ev1_remove(struct i2c_client *i2c) in wm1250_ev1_remove()
Dpcm3168a-i2c.c18 static int pcm3168a_i2c_probe(struct i2c_client *i2c, in pcm3168a_i2c_probe()
30 static int pcm3168a_i2c_remove(struct i2c_client *i2c) in pcm3168a_i2c_remove()
Dcs42xx8-i2c.c20 static int cs42xx8_i2c_probe(struct i2c_client *i2c, in cs42xx8_i2c_probe()
34 static int cs42xx8_i2c_remove(struct i2c_client *i2c) in cs42xx8_i2c_remove()
Dcs42l51-i2c.c28 static int cs42l51_i2c_probe(struct i2c_client *i2c, in cs42l51_i2c_probe()
38 static int cs42l51_i2c_remove(struct i2c_client *i2c) in cs42l51_i2c_remove()
Dadau1781-i2c.c17 static int adau1781_i2c_probe(struct i2c_client *client, in adau1781_i2c_probe()
31 static int adau1781_i2c_remove(struct i2c_client *client) in adau1781_i2c_remove()
Dpcm1789-i2c.c15 static int pcm1789_i2c_probe(struct i2c_client *client, in pcm1789_i2c_probe()
31 static int pcm1789_i2c_remove(struct i2c_client *client) in pcm1789_i2c_remove()
Dadau1761-i2c.c17 static int adau1761_i2c_probe(struct i2c_client *client, in adau1761_i2c_probe()
31 static int adau1761_i2c_remove(struct i2c_client *client) in adau1761_i2c_remove()
Dwm8804-i2c.c17 static int wm8804_i2c_probe(struct i2c_client *i2c, in wm8804_i2c_probe()
29 static int wm8804_i2c_remove(struct i2c_client *i2c) in wm8804_i2c_remove()
Dtlv320aic3x-i2c.c20 static int aic3x_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) in aic3x_i2c_probe()
33 static int aic3x_i2c_remove(struct i2c_client *i2c) in aic3x_i2c_remove()
Des8316.c797 static int es8316_i2c_probe(struct i2c_client *i2c_client, in es8316_i2c_probe() argument
800 struct device *dev = &i2c_client->dev; in es8316_i2c_probe()
804 es8316 = devm_kzalloc(&i2c_client->dev, sizeof(struct es8316_priv), in es8316_i2c_probe()
809 i2c_set_clientdata(i2c_client, es8316); in es8316_i2c_probe()
811 es8316->regmap = devm_regmap_init_i2c(i2c_client, &es8316_regmap); in es8316_i2c_probe()
815 es8316->irq = i2c_client->irq; in es8316_i2c_probe()
828 return devm_snd_soc_register_component(&i2c_client->dev, in es8316_i2c_probe()
Dpcm512x-i2c.c16 static int pcm512x_i2c_probe(struct i2c_client *i2c, in pcm512x_i2c_probe()
33 static int pcm512x_i2c_remove(struct i2c_client *i2c) in pcm512x_i2c_remove()
/sound/ppc/
Dkeywest.c19 static int keywest_probe(struct i2c_client *client, in keywest_probe()
38 struct i2c_client *client; in keywest_attach_adapter()
74 static int keywest_remove(struct i2c_client *client) in keywest_remove()

12345678