From cbbded765755c9ccee37a3ae1fc9d53cdd6492fc Mon Sep 17 00:00:00 2001 From: wutao Date: Thu, 2 Dec 2021 16:29:55 +0800 Subject: [PATCH] bq2597x: bq2597x cp_enable interface does not work bq2597x cp_enable interface does not work,the interface name is worng; so change to PSY_IIO_CP_ENABLE Change-Id: I9851dc7933680f9fcc727c362d16fb7777b1ee31 Signed-off-by: wutao Reviewed-on: https://gerrit.mot.com/2133077 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- drivers/power/bq2597x_mmi_iio/bq2597x_mmi_iio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/bq2597x_mmi_iio/bq2597x_mmi_iio.c b/drivers/power/bq2597x_mmi_iio/bq2597x_mmi_iio.c index 627327dd6873..009c7c54e88d 100644 --- a/drivers/power/bq2597x_mmi_iio/bq2597x_mmi_iio.c +++ b/drivers/power/bq2597x_mmi_iio/bq2597x_mmi_iio.c @@ -1833,11 +1833,11 @@ static int bq2597x_iio_write_raw(struct iio_dev *indio_dev, int rc = 0; switch (chan->channel) { - case PSY_IIO_CHARGING_ENABLED: + case PSY_IIO_CP_ENABLE: bq2597x_enable_charge(bq, val1); bq2597x_check_charge_enabled(bq, &bq->charge_enabled); - pr_info("PSY_IIO_CHARGING_ENABLED: %s\n", + pr_info("PSY_IIO_CP_ENABLE: %s\n", val1 ? "enable" : "disable"); break;