firmware: ti_sci: Use list_for_each_entry() helper
authorJinjie Ruan <ruanjinjie@huawei.com>
Wed, 30 Aug 2023 09:03:44 +0000 (17:03 +0800)
committerNishanth Menon <nm@ti.com>
Wed, 20 Sep 2023 12:51:54 +0000 (07:51 -0500)
commitbe6d43efb12455dbf85c96ff67582a463d34a0fc
tree917b08064868b878e78c8fdd8208ab2dbe5901fd
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
firmware: ti_sci: Use list_for_each_entry() helper

Convert list_for_each() to list_for_each_entry() so that the p
list_head pointer and list_entry() call are no longer needed, which
can reduce a few lines of code. No functional changed.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230830090344.528818-1-ruanjinjie@huawei.com
Signed-off-by: Nishanth Menon <nm@ti.com>
drivers/firmware/ti_sci.c