diff options
| author | Vijendar Mukunda <Vijendar.Mukunda@amd.com> | 2026-10-13 21:11:38 +0530 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-13 20:08:04 +0100 |
| commit | b23e9b1f3b4c8f1be4e359cd576eda082391d0cd (patch) | |
| tree | 976bb63678bf2c1178ec053f6aafdfaaaf28412a | |
| parent | b2dc10ee0b51f52a5b9c3dceec848c619ec63082 (diff) | |
| download | linux-b23e9b1f3b4c8f1be4e359cd576eda082391d0cd.tar.gz linux-b23e9b1f3b4c8f1be4e359cd576eda082391d0cd.zip | |
ASoC: SOF: amd: consolidate local variable declarations
Use u32 instead of unsigned int for hardware register variables and
combine related declarations onto single lines in
sof_amd_check_and_handle_acp7x_sdw_wake_irq() and
handle_amd_sof_acp7x_sdw_pme_event().
No functional change.
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://patch.msgid.link/20261013154644.3788064-7-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | sound/soc/sof/amd/acp.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sound/soc/sof/amd/acp.c b/sound/soc/sof/amd/acp.c index 71c39eb36194..790af65be34a 100644 --- a/sound/soc/sof/amd/acp.c +++ b/sound/soc/sof/amd/acp.c @@ -674,9 +674,8 @@ static int sof_amd_check_and_handle_acp7x_sdw_wake_irq(struct snd_sof_dev *sdev) { struct acp_dev_data *adata = sdev->pdata->hw_pdata; const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); - unsigned int ext_intr_stat1; - unsigned int sdw_pme_stat, sdw_wake_en; - unsigned int i; + u32 ext_intr_stat1, sdw_pme_stat, sdw_wake_en; + u32 i; bool sdw_wake_irq = false; ext_intr_stat1 = snd_sof_dsp_read(sdev, ACP_DSP_BAR, desc->ext_intr_stat1); @@ -1445,10 +1444,7 @@ static void handle_amd_sof_acp7x_sdw_pme_event(struct snd_sof_dev *sdev) { struct acp_dev_data *adata; struct amd_sdw_manager *amd_manager; - u32 sdw_pme_stat; - u32 sdw_wake_en; - u32 pme_reg; - u32 wake_mask; + u32 sdw_pme_stat, sdw_wake_en, pme_reg, wake_mask; unsigned int instance; adata = sdev->pdata->hw_pdata; |
