firmware: arm_scmi: rename scmi_xfer_{init,get,put}
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 9 May 2018 16:52:06 +0000 (17:52 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 10 May 2018 09:51:57 +0000 (10:51 +0100)
commit14e297b3b896422b6c476f0a850c932c0e09b0e4
tree021f3c0b90b8fe8e837ed441352ef3f401d4b2a1
parent7859e08c1bdef00841d29e8ff320264fd6f9257b
firmware: arm_scmi: rename scmi_xfer_{init,get,put}

Just after the initial patches were queued, Jonathan Cameron mentioned
that scmi_one_xfer_{get_put} were not very clear and suggested to use
scmi_xfer_{alloc,free}. While I agree to some extent, the reason not to
have alloc/free as these are preallocated buffers and these functions
just returns a reference to free slot in that preallocated array.
However it was agreed to drop "_one" as it's implicit that we are always
dealing with one slot anyways.

This patch updates the name accordingly dropping "_one" in both {get,put}
functions. Also scmi_one_xfer_init is renamed as scmi_xfer_get_init to
reflect the fact that it gets the free slots and then initialise it.

Reported-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/base.c
drivers/firmware/arm_scmi/clock.c
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/driver.c
drivers/firmware/arm_scmi/perf.c
drivers/firmware/arm_scmi/power.c
drivers/firmware/arm_scmi/sensors.c