]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
firmware: arm_scmi: Use proper iter_response_bound_cleanup() name
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 8 May 2026 15:32:57 +0000 (16:32 +0100)
committerSudeep Holla <sudeep.holla@kernel.org>
Tue, 12 May 2026 14:29:11 +0000 (15:29 +0100)
The documentation speaks of the "iter_response_bound_cleanup()" protocol
helper, while the actual helper is called "iter_response_cleanup()".
Settle on the former name, because the helper is only needed when using
bound-iterators.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20260508153300.2224715-13-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
drivers/firmware/arm_scmi/driver.c
drivers/firmware/arm_scmi/protocols.h

index 595ce7b33c612f8cf41f7bc9e3dd7fa356fc3289..3e0d975ec94c448555254978b6c741af5d977f71 100644 (file)
@@ -1875,7 +1875,7 @@ static int __scmi_iterator_run(void *iter, unsigned int *start, unsigned int *en
        return 0;
 }
 
-static void scmi_iterator_cleanup(void *iter)
+static void scmi_iterator_bound_cleanup(void *iter)
 {
        struct scmi_iterator *i = iter;
 
@@ -1888,7 +1888,7 @@ static int scmi_iterator_run(void *iter)
        int ret;
 
        ret = __scmi_iterator_run(iter, NULL, NULL);
-       scmi_iterator_cleanup(iter);
+       scmi_iterator_bound_cleanup(iter);
 
        return ret;
 }
@@ -2078,7 +2078,7 @@ static const struct scmi_proto_helpers_ops helpers_ops = {
        .iter_response_init = scmi_iterator_init,
        .iter_response_run = scmi_iterator_run,
        .iter_response_run_bound = scmi_iterator_run_bound,
-       .iter_response_cleanup = scmi_iterator_cleanup,
+       .iter_response_bound_cleanup = scmi_iterator_bound_cleanup,
        .protocol_msg_check = scmi_protocol_msg_check,
        .fastchannel_init = scmi_common_fastchannel_init,
        .fastchannel_db_ring = scmi_common_fastchannel_db_ring,
index e2ef604c16ef677187b02a91570c64cee85fa697..15ad5162e37a90ecc8f5df413635be6ce7d7f73b 100644 (file)
@@ -286,7 +286,7 @@ struct scmi_proto_helpers_ops {
        int (*iter_response_run)(void *iter);
        int (*iter_response_run_bound)(void *iter,
                                       unsigned int *start, unsigned int *end);
-       void (*iter_response_cleanup)(void *iter);
+       void (*iter_response_bound_cleanup)(void *iter);
        int (*protocol_msg_check)(const struct scmi_protocol_handle *ph,
                                  u32 message_id, u32 *attributes);
        void (*fastchannel_init)(const struct scmi_protocol_handle *ph,