uda1380.c (83970cd63b9f864525761137b500113ab0b49c94) | uda1380.c (cbd5ce7f428b4caf3f1e3b07cd068cc073eab909) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * uda1380.c - Philips UDA1380 ALSA SoC audio driver 4 * 5 * Copyright (c) 2007-2009 Philipp Zabel <philipp.zabel@gmail.com> 6 * 7 * Modified by Richard Purdie <richard@openedhand.com> to fit into SoC 8 * codec model. --- 725 unchanged lines hidden (view full) --- 734 .num_dapm_routes = ARRAY_SIZE(uda1380_dapm_routes), 735 .suspend_bias_off = 1, 736 .idle_bias_on = 1, 737 .use_pmdown_time = 1, 738 .endianness = 1, 739 .non_legacy_dai_naming = 1, 740}; 741 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * uda1380.c - Philips UDA1380 ALSA SoC audio driver 4 * 5 * Copyright (c) 2007-2009 Philipp Zabel <philipp.zabel@gmail.com> 6 * 7 * Modified by Richard Purdie <richard@openedhand.com> to fit into SoC 8 * codec model. --- 725 unchanged lines hidden (view full) --- 734 .num_dapm_routes = ARRAY_SIZE(uda1380_dapm_routes), 735 .suspend_bias_off = 1, 736 .idle_bias_on = 1, 737 .use_pmdown_time = 1, 738 .endianness = 1, 739 .non_legacy_dai_naming = 1, 740}; 741 |
742static int uda1380_i2c_probe(struct i2c_client *i2c, 743 const struct i2c_device_id *id) | 742static int uda1380_i2c_probe(struct i2c_client *i2c) |
744{ 745 struct uda1380_platform_data *pdata = i2c->dev.platform_data; 746 struct uda1380_priv *uda1380; 747 int ret; 748 749 if (!pdata) 750 return -EINVAL; 751 --- 43 unchanged lines hidden (view full) --- 795}; 796MODULE_DEVICE_TABLE(of, uda1380_of_match); 797 798static struct i2c_driver uda1380_i2c_driver = { 799 .driver = { 800 .name = "uda1380-codec", 801 .of_match_table = uda1380_of_match, 802 }, | 743{ 744 struct uda1380_platform_data *pdata = i2c->dev.platform_data; 745 struct uda1380_priv *uda1380; 746 int ret; 747 748 if (!pdata) 749 return -EINVAL; 750 --- 43 unchanged lines hidden (view full) --- 794}; 795MODULE_DEVICE_TABLE(of, uda1380_of_match); 796 797static struct i2c_driver uda1380_i2c_driver = { 798 .driver = { 799 .name = "uda1380-codec", 800 .of_match_table = uda1380_of_match, 801 }, |
803 .probe = uda1380_i2c_probe, | 802 .probe_new = uda1380_i2c_probe, |
804 .id_table = uda1380_i2c_id, 805}; 806 807module_i2c_driver(uda1380_i2c_driver); 808 809MODULE_AUTHOR("Giorgio Padrin"); 810MODULE_DESCRIPTION("Audio support for codec Philips UDA1380"); 811MODULE_LICENSE("GPL"); | 803 .id_table = uda1380_i2c_id, 804}; 805 806module_i2c_driver(uda1380_i2c_driver); 807 808MODULE_AUTHOR("Giorgio Padrin"); 809MODULE_DESCRIPTION("Audio support for codec Philips UDA1380"); 810MODULE_LICENSE("GPL"); |