drivers: gnss: quectel_lcx6g: fix compilation error when CONFIG_PM_DEVICE=y

Fixes a compilation error in quectel_lcx6g driver when CONFIG_PM_DEVICE=y.
Corrects the function call in quectel_lcx6g_suspend from
'modem_chat_run_script_run' to 'modem_chat_run_script'.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
This commit is contained in:
Pisit Sawangvonganan 2024-01-22 15:33:13 +07:00 committed by Fabio Baltieri
parent e51c47bf43
commit 78faf5eb8e

View file

@ -211,7 +211,7 @@ static int quectel_lcx6g_suspend(const struct device *dev)
struct quectel_lcx6g_data *data = dev->data;
int ret;
ret = modem_chat_run_script_run(&data->chat, &suspend_script);
ret = modem_chat_run_script(&data->chat, &suspend_script);
if (ret < 0) {
modem_pipe_close(data->uart_pipe);
}