firmware: arm_scmi: Segregate tx channel handling and prepare to add rx
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 8 Jul 2019 08:40:44 +0000 (09:40 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 12 Aug 2019 11:22:59 +0000 (12:22 +0100)
commit3748daf7fb6b5459c7a62d4976b9698b82ee9b48
tree363a1daae9f21ab74eae34a7c4fa0dd43f158c34
parent2747a967c85d1745c497599c632f1319a58aed5f
firmware: arm_scmi: Segregate tx channel handling and prepare to add rx

The transmit(Tx) channels are specified as the first entry and the
receive(Rx) channels are the second entry as per the device tree
bindings. Since we currently just support Tx, index 0 is hardcoded at
all required callsites.

In order to prepare for adding Rx support, let's remove those hardcoded
index and add boolean parameter to identify Tx/Rx channels when setting
them up.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/driver.c