pcm1681.c (83970cd63b9f864525761137b500113ab0b49c94) | pcm1681.c (7f7d7214bb5208454aa4ce13780de326402e89c3) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * PCM1681 ASoC codec driver 4 * 5 * Copyright (c) StreamUnlimited GmbH 2013 6 * Marek Belisko <marek.belisko@streamunlimited.com> 7 */ 8 --- 285 unchanged lines hidden (view full) --- 294}; 295 296static const struct i2c_device_id pcm1681_i2c_id[] = { 297 {"pcm1681", 0}, 298 {} 299}; 300MODULE_DEVICE_TABLE(i2c, pcm1681_i2c_id); 301 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * PCM1681 ASoC codec driver 4 * 5 * Copyright (c) StreamUnlimited GmbH 2013 6 * Marek Belisko <marek.belisko@streamunlimited.com> 7 */ 8 --- 285 unchanged lines hidden (view full) --- 294}; 295 296static const struct i2c_device_id pcm1681_i2c_id[] = { 297 {"pcm1681", 0}, 298 {} 299}; 300MODULE_DEVICE_TABLE(i2c, pcm1681_i2c_id); 301 |
302static int pcm1681_i2c_probe(struct i2c_client *client, 303 const struct i2c_device_id *id) | 302static int pcm1681_i2c_probe(struct i2c_client *client) |
304{ 305 int ret; 306 struct pcm1681_private *priv; 307 308 priv = devm_kzalloc(&client->dev, sizeof(*priv), GFP_KERNEL); 309 if (!priv) 310 return -ENOMEM; 311 --- 12 unchanged lines hidden (view full) --- 324} 325 326static struct i2c_driver pcm1681_i2c_driver = { 327 .driver = { 328 .name = "pcm1681", 329 .of_match_table = of_match_ptr(pcm1681_dt_ids), 330 }, 331 .id_table = pcm1681_i2c_id, | 303{ 304 int ret; 305 struct pcm1681_private *priv; 306 307 priv = devm_kzalloc(&client->dev, sizeof(*priv), GFP_KERNEL); 308 if (!priv) 309 return -ENOMEM; 310 --- 12 unchanged lines hidden (view full) --- 323} 324 325static struct i2c_driver pcm1681_i2c_driver = { 326 .driver = { 327 .name = "pcm1681", 328 .of_match_table = of_match_ptr(pcm1681_dt_ids), 329 }, 330 .id_table = pcm1681_i2c_id, |
332 .probe = pcm1681_i2c_probe, | 331 .probe_new = pcm1681_i2c_probe, |
333}; 334 335module_i2c_driver(pcm1681_i2c_driver); 336 337MODULE_DESCRIPTION("Texas Instruments PCM1681 ALSA SoC Codec Driver"); 338MODULE_AUTHOR("Marek Belisko <marek.belisko@streamunlimited.com>"); 339MODULE_LICENSE("GPL"); | 332}; 333 334module_i2c_driver(pcm1681_i2c_driver); 335 336MODULE_DESCRIPTION("Texas Instruments PCM1681 ALSA SoC Codec Driver"); 337MODULE_AUTHOR("Marek Belisko <marek.belisko@streamunlimited.com>"); 338MODULE_LICENSE("GPL"); |