]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit541dcb263af15050520e2b43bdbbcc91c00d1e32
tree53f40b1b021ac45849779b35928da535f4ce879e
parentf6d7f9dd133ebbc1097c38da71b1b34c5604970a
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