mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
soc: qcom: smd-rpm: Correct the active vs sleep state flagging
The BIT() was incorrectly inherited from family A and should not be used on family B where the state is denoted by an enum. Reported-by: Georgi Djakov <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Tested-by: Georgi Djakov <[email protected]> Signed-off-by: Andy Gross <[email protected]>
This commit is contained in:
parent
6083096d96
commit
a8ddd1b998
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ int qcom_rpm_smd_write(struct qcom_smd_rpm *rpm,
|
|||
pkt->hdr.length = cpu_to_le32(sizeof(struct qcom_rpm_request) + count);
|
||||
|
||||
pkt->req.msg_id = cpu_to_le32(msg_id++);
|
||||
pkt->req.flags = cpu_to_le32(BIT(state));
|
||||
pkt->req.flags = cpu_to_le32(state);
|
||||
pkt->req.type = cpu_to_le32(type);
|
||||
pkt->req.id = cpu_to_le32(id);
|
||||
pkt->req.data_len = cpu_to_le32(count);
|
||||
|
|
|
|||
Loading…
Reference in a new issue