projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc0505b
)
ASoC: Intel: catpt: Drop redundant enum constant
author
Cezary Rojewski
<cezary.rojewski@intel.com>
Sun, 3 Apr 2022 14:16:47 +0000
(16:16 +0200)
committer
Mark Brown
<broonie@kernel.org>
Tue, 5 Apr 2022 09:23:22 +0000
(10:23 +0100)
CATPT_SSP_IFACE_LAST is being used only to calculate CATPT_SSP_COUNT.
Make CATPT_SSP_COUNT part of the enum directly and remove the redundant
constant.
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link:
https://lore.kernel.org/r/20220403141647.1037173-1-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/catpt/messages.h
patch
|
blob
|
history
diff --git
a/sound/soc/intel/catpt/messages.h
b/sound/soc/intel/catpt/messages.h
index 978a20b3f471ac65649618b42dbe746b2382ffd9..c17e948d9f52fbb00e5956cec93a291c226652d4 100644
(file)
--- a/
sound/soc/intel/catpt/messages.h
+++ b/
sound/soc/intel/catpt/messages.h
@@
-219,11
+219,9
@@
int catpt_ipc_free_stream(struct catpt_dev *cdev, u8 stream_hw_id);
enum catpt_ssp_iface {
CATPT_SSP_IFACE_0 = 0,
CATPT_SSP_IFACE_1 = 1,
- CATPT_SSP_
IFACE_LAST = CATPT_SSP_IFACE_1
,
+ CATPT_SSP_
COUNT
,
};
-#define CATPT_SSP_COUNT (CATPT_SSP_IFACE_LAST + 1)
-
enum catpt_mclk_frequency {
CATPT_MCLK_OFF = 0,
CATPT_MCLK_FREQ_6_MHZ = 1,