rt700-sdw.c (9f771739a04919226081a107167596de75108fbb) | rt700-sdw.c (3f3d66ba998fb079c1239430e96e3b138bc63166) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2// 3// rt700-sdw.c -- rt700 ALSA SoC audio driver 4// 5// Copyright(c) 2019 Realtek Semiconductor Corp. 6// 7// 8 --- 438 unchanged lines hidden (view full) --- 447 if (IS_ERR(sdw_regmap)) 448 return PTR_ERR(sdw_regmap); 449 450 regmap = devm_regmap_init(&slave->dev, NULL, 451 &slave->dev, &rt700_regmap); 452 if (IS_ERR(regmap)) 453 return PTR_ERR(regmap); 454 | 1// SPDX-License-Identifier: GPL-2.0 2// 3// rt700-sdw.c -- rt700 ALSA SoC audio driver 4// 5// Copyright(c) 2019 Realtek Semiconductor Corp. 6// 7// 8 --- 438 unchanged lines hidden (view full) --- 447 if (IS_ERR(sdw_regmap)) 448 return PTR_ERR(sdw_regmap); 449 450 regmap = devm_regmap_init(&slave->dev, NULL, 451 &slave->dev, &rt700_regmap); 452 if (IS_ERR(regmap)) 453 return PTR_ERR(regmap); 454 |
455 rt700_init(&slave->dev, sdw_regmap, regmap, slave); 456 457 return 0; | 455 return rt700_init(&slave->dev, sdw_regmap, regmap, slave); |
458} 459 460static int rt700_sdw_remove(struct sdw_slave *slave) 461{ 462 struct rt700_priv *rt700 = dev_get_drvdata(&slave->dev); 463 464 if (rt700->hw_init) { 465 cancel_delayed_work_sync(&rt700->jack_detect_work); --- 111 unchanged lines hidden --- | 456} 457 458static int rt700_sdw_remove(struct sdw_slave *slave) 459{ 460 struct rt700_priv *rt700 = dev_get_drvdata(&slave->dev); 461 462 if (rt700->hw_init) { 463 cancel_delayed_work_sync(&rt700->jack_detect_work); --- 111 unchanged lines hidden --- |