mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Correct typo while checking for asd regulator name
This patch contains changes for correcting typo which will correct expected result from strnstr() function while checking for asd regulator name. Change-Id: I85721e775f9bb0c13480ae15ad3b7f4e235e7942 Signed-off-by: priyankar <prigup@codeaurora.org>
This commit is contained in:
parent
e4d3a647b0
commit
95e63a815f
1 changed files with 2 additions and 2 deletions
|
|
@ -839,10 +839,10 @@ static int bt_disable_asd(void)
|
|||
int i;
|
||||
int num_vregs = bt_power_pdata->num_vregs;
|
||||
struct bt_power_vreg_data *vreg_info = NULL;
|
||||
|
||||
pr_warn("%s: Checking for ASD regulator\n", __func__);
|
||||
for (i = 0; i < num_vregs; i++) {
|
||||
vreg_info = &bt_power_pdata->vreg_info[i];
|
||||
if (strnstr(vreg_info->name, "bt-vdd-asd", sizeof(vreg_info->name))) {
|
||||
if (strnstr(vreg_info->name, "bt-vdd-asd", strlen(vreg_info->name))) {
|
||||
if (vreg_info->reg) {
|
||||
pr_warn("%s: Disabling ASD regulator\n", __func__);
|
||||
rc = bt_vreg_disable(vreg_info);
|
||||
|
|
|
|||
Loading…
Reference in a new issue