Skip to content

Commit 1563fca

Browse files
committed
Merge tag 'soundwire-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire into char-misc-next
Vinod writes: soundwire updates for 5.17-rc1 - Remove redundant version number read in qcom driver * tag 'soundwire-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire: soundwire: qcom: remove redundant version number read
2 parents 0fa3287 + bb349fd commit 1563fca

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎drivers/soundwire/qcom.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,11 +1156,7 @@ static int qcom_swrm_get_port_config(struct qcom_swrm_ctrl *ctrl)
11561156
ret = of_property_read_u8_array(np, "qcom,ports-block-pack-mode",
11571157
bp_mode, nports);
11581158
if (ret) {
1159-
u32 version;
1160-
1161-
ctrl->reg_read(ctrl, SWRM_COMP_HW_VERSION, &version);
1162-
1163-
if (version <= 0x01030000)
1159+
if (ctrl->version <= 0x01030000)
11641160
memset(bp_mode, SWR_INVALID_PARAM, QCOM_SDW_MAX_PORTS);
11651161
else
11661162
return ret;

0 commit comments

Comments
 (0)