]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
samples: qmi: Use the unified QMI service ID instead of defining it locally
authorDaniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Mon, 9 Mar 2026 23:03:37 +0000 (00:03 +0100)
committerBjorn Andersson <andersson@kernel.org>
Mon, 16 Mar 2026 01:54:39 +0000 (20:54 -0500)
Instead of defining a local macro with a custom name for the QMI
service identifier, use the one provided in qmi.h and remove the
locally defined macro.

Signed-off-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260309230346.3584252-9-daniel.lezcano@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
samples/qmi/qmi_sample_client.c

index d1814582319bc43e3cdc3400efbe9fd4f704736f..247ec5e54c4f15cb1bd5038855ddad41a519cb5f 100644 (file)
@@ -592,7 +592,7 @@ static int qmi_sample_init(void)
        if (ret < 0)
                goto err_unregister_driver;
 
-       qmi_add_lookup(&lookup_client, 15, 0, 0);
+       qmi_add_lookup(&lookup_client, QMI_SERVICE_ID_TEST, 0, 0);
 
        return 0;