firmware: ti_sci: Use struct ti_sci_resource_desc in get_range ops
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Sun, 25 Oct 2020 19:10:03 +0000 (12:10 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 2 Nov 2020 03:37:59 +0000 (19:37 -0800)
commit967a020bd3deddf9a0af73aeb4d4b46d90030937
tree7623797b4e89c3dcb1e3c4fb5201d4f795f1a475
parent1c552e08b29895d31bbf82bdb549811cfde31db4
firmware: ti_sci: Use struct ti_sci_resource_desc in get_range ops

Use the ti_sci_resource_desc directly and update it's start and num members
directly instead of requiring individual parameters for them.

This will allow easy extension of the RM parameters without changing API.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/firmware/ti_sci.c
include/linux/soc/ti/ti_sci_protocol.h