diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2022-11-11 09:31:32 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-11-23 20:11:49 +0530 |
commit | 49c9ff45991a5a62e040c8b43c89a9ab38a0a91f (patch) | |
tree | 868d901b7c597b743a496154c0c5cba65e70164d /drivers/soundwire/intel.h | |
parent | 3db0c5a6a2832c7b4b40676299e4bbbe1a96bc8b (diff) | |
download | linux-stable-49c9ff45991a5a62e040c8b43c89a9ab38a0a91f.tar.gz linux-stable-49c9ff45991a5a62e040c8b43c89a9ab38a0a91f.tar.bz2 linux-stable-49c9ff45991a5a62e040c8b43c89a9ab38a0a91f.zip |
soundwire: intel: add link power management callbacks in hw_ops
No functionality change, only add indirection for link power
management helpers.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20221111013135.38289-6-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire/intel.h')
-rw-r--r-- | drivers/soundwire/intel.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/soundwire/intel.h b/drivers/soundwire/intel.h index 99a2d875a331..0f63e7584132 100644 --- a/drivers/soundwire/intel.h +++ b/drivers/soundwire/intel.h @@ -118,4 +118,18 @@ static inline int sdw_intel_stop_bus(struct sdw_intel *sdw, bool clock_stop) return -ENOTSUPP; } +static inline int sdw_intel_link_power_up(struct sdw_intel *sdw) +{ + if (SDW_INTEL_CHECK_OPS(sdw, link_power_up)) + return SDW_INTEL_OPS(sdw, link_power_up)(sdw); + return -ENOTSUPP; +} + +static inline int sdw_intel_link_power_down(struct sdw_intel *sdw) +{ + if (SDW_INTEL_CHECK_OPS(sdw, link_power_down)) + return SDW_INTEL_OPS(sdw, link_power_down)(sdw); + return -ENOTSUPP; +} + #endif /* __SDW_INTEL_LOCAL_H */ |