max98371.c (408ef7e18097810f160629447e6ebe979a0b4282) max98371.c (209c721ce27022656a9d792b89572c4fdd7d31a7)
1/*
2 * max98371.c -- ALSA SoC Stereo MAX98371 driver
3 *
4 * Copyright 2015-16 Maxim Integrated Products
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 398 unchanged lines hidden (view full) ---

407static int max98371_i2c_remove(struct i2c_client *client)
408{
409 snd_soc_unregister_codec(&client->dev);
410 return 0;
411}
412
413static const struct i2c_device_id max98371_i2c_id[] = {
414 { "max98371", 0 },
1/*
2 * max98371.c -- ALSA SoC Stereo MAX98371 driver
3 *
4 * Copyright 2015-16 Maxim Integrated Products
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 398 unchanged lines hidden (view full) ---

407static int max98371_i2c_remove(struct i2c_client *client)
408{
409 snd_soc_unregister_codec(&client->dev);
410 return 0;
411}
412
413static const struct i2c_device_id max98371_i2c_id[] = {
414 { "max98371", 0 },
415 { }
415};
416
417MODULE_DEVICE_TABLE(i2c, max98371_i2c_id);
418
419static const struct of_device_id max98371_of_match[] = {
420 { .compatible = "maxim,max98371", },
421 { }
422};
423MODULE_DEVICE_TABLE(of, max98371_of_match);
424
425static struct i2c_driver max98371_i2c_driver = {
426 .driver = {
427 .name = "max98371",
416};
417
418MODULE_DEVICE_TABLE(i2c, max98371_i2c_id);
419
420static const struct of_device_id max98371_of_match[] = {
421 { .compatible = "maxim,max98371", },
422 { }
423};
424MODULE_DEVICE_TABLE(of, max98371_of_match);
425
426static struct i2c_driver max98371_i2c_driver = {
427 .driver = {
428 .name = "max98371",
429 .owner = THIS_MODULE,
428 .pm = NULL,
429 .of_match_table = of_match_ptr(max98371_of_match),
430 },
431 .probe = max98371_i2c_probe,
432 .remove = max98371_i2c_remove,
433 .id_table = max98371_i2c_id,
434};
435
436module_i2c_driver(max98371_i2c_driver);
437
438MODULE_AUTHOR("anish kumar <yesanishhere@gmail.com>");
439MODULE_DESCRIPTION("ALSA SoC MAX98371 driver");
440MODULE_LICENSE("GPL");
430 .pm = NULL,
431 .of_match_table = of_match_ptr(max98371_of_match),
432 },
433 .probe = max98371_i2c_probe,
434 .remove = max98371_i2c_remove,
435 .id_table = max98371_i2c_id,
436};
437
438module_i2c_driver(max98371_i2c_driver);
439
440MODULE_AUTHOR("anish kumar <yesanishhere@gmail.com>");
441MODULE_DESCRIPTION("ALSA SoC MAX98371 driver");
442MODULE_LICENSE("GPL");