rt1308-sdw.c (fb95aae6e67c4e319a24b3eea32032d4246a5335) | rt1308-sdw.c (faa37a9318899752d85761d47e79a42f3a0aa1b9) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2// 3// rt1308-sdw.c -- rt1308 ALSA SoC audio driver 4// 5// Copyright(c) 2019 Realtek Semiconductor Corp. 6// 7// 8#include <linux/delay.h> --- 659 unchanged lines hidden (view full) --- 668} 669 670static const struct sdw_device_id rt1308_id[] = { 671 SDW_SLAVE_ENTRY(0x025d, 0x1308, 0), 672 {}, 673}; 674MODULE_DEVICE_TABLE(sdw, rt1308_id); 675 | 1// SPDX-License-Identifier: GPL-2.0 2// 3// rt1308-sdw.c -- rt1308 ALSA SoC audio driver 4// 5// Copyright(c) 2019 Realtek Semiconductor Corp. 6// 7// 8#include <linux/delay.h> --- 659 unchanged lines hidden (view full) --- 668} 669 670static const struct sdw_device_id rt1308_id[] = { 671 SDW_SLAVE_ENTRY(0x025d, 0x1308, 0), 672 {}, 673}; 674MODULE_DEVICE_TABLE(sdw, rt1308_id); 675 |
676static int rt1308_dev_suspend(struct device *dev) | 676static int __maybe_unused rt1308_dev_suspend(struct device *dev) |
677{ 678 struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(dev); 679 680 if (!rt1308->hw_init) 681 return 0; 682 683 regcache_cache_only(rt1308->regmap, true); 684 685 return 0; 686} 687 688#define RT1308_PROBE_TIMEOUT 2000 689 | 677{ 678 struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(dev); 679 680 if (!rt1308->hw_init) 681 return 0; 682 683 regcache_cache_only(rt1308->regmap, true); 684 685 return 0; 686} 687 688#define RT1308_PROBE_TIMEOUT 2000 689 |
690static int rt1308_dev_resume(struct device *dev) | 690static int __maybe_unused rt1308_dev_resume(struct device *dev) |
691{ 692 struct sdw_slave *slave = dev_to_sdw_dev(dev); 693 struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(dev); 694 unsigned long time; 695 696 if (!rt1308->hw_init) 697 return 0; 698 --- 38 unchanged lines hidden --- | 691{ 692 struct sdw_slave *slave = dev_to_sdw_dev(dev); 693 struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(dev); 694 unsigned long time; 695 696 if (!rt1308->hw_init) 697 return 0; 698 --- 38 unchanged lines hidden --- |