driver: soc: xilinx: Update function prototype for xlnx_unregister_event
authorAbhyuday Godhasara <abhyuday.godhasara@xilinx.com>
Wed, 27 Apr 2022 07:48:03 +0000 (00:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 16:57:28 +0000 (18:57 +0200)
commite6d3c99adf54fc1dcd07729990dc32acd3be874b
tree53f40b1b021ac45849779b35928da535f4ce879e
parent05e5ba40ea7ab6a99bb8d6117c899d0e13ca8700
driver: soc: xilinx: Update function prototype for xlnx_unregister_event

As per the current implementation only single callback data gets saved per
event, driver is throwing an error if try to register multiple callback for
same event. So at time of unregistration of any event required things are
event details and callback handler as parameter of xlnx_unregister_event().

As part of adding support of multiple callbacks for same event also require
change in prototype of xlnx_unregister_event().
During unregistration of any events, now required things are event details,
callback handler and agent's private data as parameter of
xlnx_unregister_event().

Also modify the usage of xlnx_unregister_event() in xilinx/zynqmp_power.c
driver as per new implementation.

Signed-off-by: Abhyuday Godhasara <abhyuday.godhasara@xilinx.com>
Link: https://lore.kernel.org/r/20220427074803.19009-3-abhyuday.godhasara@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soc/xilinx/xlnx_event_manager.c
drivers/soc/xilinx/zynqmp_power.c
include/linux/firmware/xlnx-event-manager.h