component: Add common helper for compare/release functions
authorYong Wu <yong.wu@mediatek.com>
Mon, 14 Feb 2022 06:07:57 +0000 (14:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Feb 2022 11:16:12 +0000 (12:16 +0100)
commit2502960fba7e94e090112069694365295c32ccc5
treea2b68a46e1c3b115f90f1e99ff543333d102eb75
parent36744c117ab4e3d7e114c10d66882c418ba6ea8a
component: Add common helper for compare/release functions

The component requires the compare/release functions, there are so many
copies in current kernel. Just define four common helpers for them.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Link: https://lore.kernel.org/r/20220214060819.7334-2-yong.wu@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/component.c
include/linux/component.h