Skip to content

Commit bcaa59d

Browse files
duda-patrykkartben
authored andcommitted
drivers: dai: intel: ssp: Use IS_BIT_SET() macro from utils_macro.h
Replace DAI_INTEL_SSP_IS_BIT_SET() macro with IS_BIT_SET() macro from utils_macro.h. Signed-off-by: Patryk Duda <[email protected]>
1 parent 22d3173 commit bcaa59d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/dai/intel/ssp/ssp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ static void dai_ssp_program_channel_map(struct dai_intel_ssp *dp,
864864
/* Set upper slot number from configuration */
865865
pcmsycm = pcmsycm | (dp->ssp_plat_data->params.tdm_slots - 1) << 4;
866866

867-
if (DAI_INTEL_SSP_IS_BIT_SET(cfg->link_config, 15)) {
867+
if (IS_BIT_SET(cfg->link_config, 15)) {
868868
uint32_t reg_add = dai_ip_base(dp) + 0x1000 * ssp_index + PCMS0CM_OFFSET;
869869
/* Program HDA output stream parameters */
870870
sys_write16((pcmsycm & 0xffff), reg_add);
@@ -880,7 +880,7 @@ static void dai_ssp_program_channel_map(struct dai_intel_ssp *dp,
880880
uint16_t pcmsycm = cfg->link_config;
881881
uint8_t slot_count = 0;
882882

883-
if (DAI_INTEL_SSP_IS_BIT_SET(cfg->link_config, 15)) {
883+
if (IS_BIT_SET(cfg->link_config, 15)) {
884884
if (blob30->version == SSP_BLOB_VER_3_0) {
885885
time_slot_map =
886886
blob30->i2s_ssp_config.ssmidytsa[cfg->tdm_slot_group];

drivers/dai/intel/ssp/ssp.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
(((x) & (1ULL << (b))) >> (b))
4040
#define DAI_INTEL_SSP_GET_BITS(b_hi, b_lo, x) \
4141
(((x) & MASK(b_hi, b_lo)) >> (b_lo))
42-
#define DAI_INTEL_SSP_IS_BIT_SET(reg, bit) (((reg >> bit) & (0x1)) != 0)
4342

4443
/* ssp_freq array constants */
4544
#define DAI_INTEL_SSP_NUM_FREQ 3

0 commit comments

Comments
 (0)