firmware: arm_scmi: Keep the discrete clock rates sorted
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 9 Jul 2020 08:17:04 +0000 (09:17 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Fri, 10 Jul 2020 11:06:27 +0000 (12:06 +0100)
commitdccec73de91de04f2a62c877411ecbe368a775f7
treec15c104363f66bd32173f03c3c4b28611dac47d0
parent585dfab3fb80e67b3a54790b3d5ef2991feb3950
firmware: arm_scmi: Keep the discrete clock rates sorted

Instead of relying on the firmware to keep the clock rates sorted, let
us sort the list. This is not essential for clock layer but it helps
to find the min and max rates easily from the list.

Link: https://lore.kernel.org/r/20200709081705.46084-1-sudeep.holla@arm.com
Fixes: 5f6c6430e904 ("firmware: arm_scmi: add initial support for clock protocol")
Reported-and-tested-by: Dien Pham <dien.pham.ry@renesas.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/clock.c