firmware: arm_scmi: Introduce devres get/put protocols operations
authorCristian Marussi <cristian.marussi@arm.com>
Tue, 16 Mar 2021 12:48:28 +0000 (12:48 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 29 Mar 2021 09:00:16 +0000 (10:00 +0100)
commit23934efe3748f6d9d8ac0760178a5ef1ed8320f4
treee4ce4707a5ed15c78028a90ad1e11693c7eb8659
parentd7b6cc563a600762597ff608f487f90dc8b66f16
firmware: arm_scmi: Introduce devres get/put protocols operations

Expose to the SCMI drivers a new devres managed common protocols API
based on generic get/put methods and protocol handles.

All drivers still keep using the old API, no functional change.

Link: https://lore.kernel.org/r/20210316124903.35011-4-cristian.marussi@arm.com
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/driver.c
include/linux/scmi_protocol.h