firmware: arm_scmi: refactor in preparation to support per-protocol channels
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 31 Jul 2017 14:25:32 +0000 (15:25 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 28 Feb 2018 16:37:57 +0000 (16:37 +0000)
commitfbc4d81ad28545714a1e367963aaf2ffd9be5239
tree141547659dc8f2b34eee76c7f042de3c3ec5e0d6
parent5c4ba3cc85296398855d621bf90b78866ea80444
firmware: arm_scmi: refactor in preparation to support per-protocol channels

In order to support per-protocol channels if available, we need to
factor out all the mailbox channel information(Tx/Rx payload and
channel handle) out of the main SCMI instance information structure.

This patch refactors the existing channel information into a separate
chan_info structure.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/driver.c