* [PATCH 00/23] component: Add common helpers for compare/release
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel
The component requires the compare/release functions, there are many
copies in current kernel. This patchset just defines four common helpers
for them. No functional change.
Change note:
v1: a) Split the original patch into many small patches.
b) Use device_match_of_node helper.
c) Move the functions into c and export since
the callback doesn't look like it should be "inline".
d) Add "component_" prefix for the functon names.
e) Add a new component_compare_dev_name.
RFC: https://lore.kernel.org/dri-devel/20220128081101.27837-1-yong.wu@mediatek.com/
rebase on v5.17-rc1
Yong Wu (23):
component: Add common helper for compare/release functions
drm/komeda: Make use of the helper component_compare_of
drm/armada: Make use of the helper component_compare_of/dev_name
drm/etnaviv: Make use of the helper component_compare_of/dev_name
drm/hirin: Make use of the helper component_compare_of
drm/ingenic: Make use of the helper component_compare_of
drm/mediatek: Make use of the helper component_compare_of
drm/meson: Make use of the helper component_compare_of
drm/msm: Make use of the helper component_compare_of
drm/sprd: Make use of the helper component_compare_of
drm/sti: Make use of the helper component_compare_of
drm/sun4i: Make use of the helper component_compare_of
drm/rockchip: Make use of the helper component_compare_dev
drm/exynos: Make use of the helper component_compare_dev
drm/mcde: Make use of the helper component_compare_dev
drm/omap: dss: Make use of the helper component_compare_dev
drm/vc4: Make use of the helper component_compare_dev
drm: of: Make use of the helper component_release_of
iommu/mediatek: Make use of the helper component_compare/release_of
ASoC: codecs: wcd938x: Make use of the helper
component_compare/release_of
power: supply: ab8500: Make use of the helper component_compare_dev
video: omapfb: dss: Make use of the helper component_compare_dev
ALSA: hda/realtek: Make use of the helper component_compare_dev_name
drivers/base/component.c | 58 +++++++++++++++++++
.../gpu/drm/arm/display/komeda/komeda_drv.c | 7 +--
drivers/gpu/drm/armada/armada_drv.c | 17 +-----
drivers/gpu/drm/drm_of.c | 7 +--
drivers/gpu/drm/etnaviv/etnaviv_drv.c | 16 +----
drivers/gpu/drm/exynos/exynos_drm_drv.c | 8 +--
.../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 7 +--
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +--
drivers/gpu/drm/mcde/mcde_drv.c | 7 +--
drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 +--
drivers/gpu/drm/meson/meson_drv.c | 10 +---
drivers/gpu/drm/msm/msm_drv.c | 15 +----
drivers/gpu/drm/omapdrm/dss/dss.c | 8 +--
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +--
drivers/gpu/drm/sprd/sprd_drm.c | 7 +--
drivers/gpu/drm/sti/sti_drv.c | 7 +--
drivers/gpu/drm/sun4i/sun4i_drv.c | 11 +---
drivers/gpu/drm/vc4/vc4_drv.c | 7 +--
drivers/iommu/mtk_iommu.c | 4 +-
drivers/iommu/mtk_iommu.h | 10 ----
drivers/iommu/mtk_iommu_v1.c | 4 +-
drivers/power/supply/ab8500_charger.c | 8 +--
drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +--
include/linux/component.h | 6 ++
sound/pci/hda/patch_realtek.c | 11 +---
sound/soc/codecs/wcd938x.c | 18 ++----
26 files changed, 99 insertions(+), 183 deletions(-)
--
2.18.0
^ permalink raw reply [flat|nested] 163+ messages in thread
* [PATCH 00/23] component: Add common helpers for compare/release
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, James Wang, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-arm-kernel, AngeloGioacchino Del Regno, srv_heupstream,
Stephen Boyd, Sebastian Reichel, iommu, Robin Murphy
The component requires the compare/release functions, there are many
copies in current kernel. This patchset just defines four common helpers
for them. No functional change.
Change note:
v1: a) Split the original patch into many small patches.
b) Use device_match_of_node helper.
c) Move the functions into c and export since
the callback doesn't look like it should be "inline".
d) Add "component_" prefix for the functon names.
e) Add a new component_compare_dev_name.
RFC: https://lore.kernel.org/dri-devel/20220128081101.27837-1-yong.wu@mediatek.com/
rebase on v5.17-rc1
Yong Wu (23):
component: Add common helper for compare/release functions
drm/komeda: Make use of the helper component_compare_of
drm/armada: Make use of the helper component_compare_of/dev_name
drm/etnaviv: Make use of the helper component_compare_of/dev_name
drm/hirin: Make use of the helper component_compare_of
drm/ingenic: Make use of the helper component_compare_of
drm/mediatek: Make use of the helper component_compare_of
drm/meson: Make use of the helper component_compare_of
drm/msm: Make use of the helper component_compare_of
drm/sprd: Make use of the helper component_compare_of
drm/sti: Make use of the helper component_compare_of
drm/sun4i: Make use of the helper component_compare_of
drm/rockchip: Make use of the helper component_compare_dev
drm/exynos: Make use of the helper component_compare_dev
drm/mcde: Make use of the helper component_compare_dev
drm/omap: dss: Make use of the helper component_compare_dev
drm/vc4: Make use of the helper component_compare_dev
drm: of: Make use of the helper component_release_of
iommu/mediatek: Make use of the helper component_compare/release_of
ASoC: codecs: wcd938x: Make use of the helper
component_compare/release_of
power: supply: ab8500: Make use of the helper component_compare_dev
video: omapfb: dss: Make use of the helper component_compare_dev
ALSA: hda/realtek: Make use of the helper component_compare_dev_name
drivers/base/component.c | 58 +++++++++++++++++++
.../gpu/drm/arm/display/komeda/komeda_drv.c | 7 +--
drivers/gpu/drm/armada/armada_drv.c | 17 +-----
drivers/gpu/drm/drm_of.c | 7 +--
drivers/gpu/drm/etnaviv/etnaviv_drv.c | 16 +----
drivers/gpu/drm/exynos/exynos_drm_drv.c | 8 +--
.../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 7 +--
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +--
drivers/gpu/drm/mcde/mcde_drv.c | 7 +--
drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 +--
drivers/gpu/drm/meson/meson_drv.c | 10 +---
drivers/gpu/drm/msm/msm_drv.c | 15 +----
drivers/gpu/drm/omapdrm/dss/dss.c | 8 +--
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +--
drivers/gpu/drm/sprd/sprd_drm.c | 7 +--
drivers/gpu/drm/sti/sti_drv.c | 7 +--
drivers/gpu/drm/sun4i/sun4i_drv.c | 11 +---
drivers/gpu/drm/vc4/vc4_drv.c | 7 +--
drivers/iommu/mtk_iommu.c | 4 +-
drivers/iommu/mtk_iommu.h | 10 ----
drivers/iommu/mtk_iommu_v1.c | 4 +-
drivers/power/supply/ab8500_charger.c | 8 +--
drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +--
include/linux/component.h | 6 ++
sound/pci/hda/patch_realtek.c | 11 +---
sound/soc/codecs/wcd938x.c | 18 ++----
26 files changed, 99 insertions(+), 183 deletions(-)
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 163+ messages in thread
* [PATCH 00/23] component: Add common helpers for compare/release
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, Joerg Roedel, iommu,
James Wang, Chun-Kuang Hu, Arnd Bergmann, linux-mediatek,
Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, Tomasz Figa, Robin Murphy
The component requires the compare/release functions, there are many
copies in current kernel. This patchset just defines four common helpers
for them. No functional change.
Change note:
v1: a) Split the original patch into many small patches.
b) Use device_match_of_node helper.
c) Move the functions into c and export since
the callback doesn't look like it should be "inline".
d) Add "component_" prefix for the functon names.
e) Add a new component_compare_dev_name.
RFC: https://lore.kernel.org/dri-devel/20220128081101.27837-1-yong.wu@mediatek.com/
rebase on v5.17-rc1
Yong Wu (23):
component: Add common helper for compare/release functions
drm/komeda: Make use of the helper component_compare_of
drm/armada: Make use of the helper component_compare_of/dev_name
drm/etnaviv: Make use of the helper component_compare_of/dev_name
drm/hirin: Make use of the helper component_compare_of
drm/ingenic: Make use of the helper component_compare_of
drm/mediatek: Make use of the helper component_compare_of
drm/meson: Make use of the helper component_compare_of
drm/msm: Make use of the helper component_compare_of
drm/sprd: Make use of the helper component_compare_of
drm/sti: Make use of the helper component_compare_of
drm/sun4i: Make use of the helper component_compare_of
drm/rockchip: Make use of the helper component_compare_dev
drm/exynos: Make use of the helper component_compare_dev
drm/mcde: Make use of the helper component_compare_dev
drm/omap: dss: Make use of the helper component_compare_dev
drm/vc4: Make use of the helper component_compare_dev
drm: of: Make use of the helper component_release_of
iommu/mediatek: Make use of the helper component_compare/release_of
ASoC: codecs: wcd938x: Make use of the helper
component_compare/release_of
power: supply: ab8500: Make use of the helper component_compare_dev
video: omapfb: dss: Make use of the helper component_compare_dev
ALSA: hda/realtek: Make use of the helper component_compare_dev_name
drivers/base/component.c | 58 +++++++++++++++++++
.../gpu/drm/arm/display/komeda/komeda_drv.c | 7 +--
drivers/gpu/drm/armada/armada_drv.c | 17 +-----
drivers/gpu/drm/drm_of.c | 7 +--
drivers/gpu/drm/etnaviv/etnaviv_drv.c | 16 +----
drivers/gpu/drm/exynos/exynos_drm_drv.c | 8 +--
.../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 7 +--
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +--
drivers/gpu/drm/mcde/mcde_drv.c | 7 +--
drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 +--
drivers/gpu/drm/meson/meson_drv.c | 10 +---
drivers/gpu/drm/msm/msm_drv.c | 15 +----
drivers/gpu/drm/omapdrm/dss/dss.c | 8 +--
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +--
drivers/gpu/drm/sprd/sprd_drm.c | 7 +--
drivers/gpu/drm/sti/sti_drv.c | 7 +--
drivers/gpu/drm/sun4i/sun4i_drv.c | 11 +---
drivers/gpu/drm/vc4/vc4_drv.c | 7 +--
drivers/iommu/mtk_iommu.c | 4 +-
drivers/iommu/mtk_iommu.h | 10 ----
drivers/iommu/mtk_iommu_v1.c | 4 +-
drivers/power/supply/ab8500_charger.c | 8 +--
drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +--
include/linux/component.h | 6 ++
sound/pci/hda/patch_realtek.c | 11 +---
sound/soc/codecs/wcd938x.c | 18 ++----
26 files changed, 99 insertions(+), 183 deletions(-)
--
2.18.0
^ permalink raw reply [flat|nested] 163+ messages in thread
* [PATCH 00/23] component: Add common helpers for compare/release
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel
The component requires the compare/release functions, there are many
copies in current kernel. This patchset just defines four common helpers
for them. No functional change.
Change note:
v1: a) Split the original patch into many small patches.
b) Use device_match_of_node helper.
c) Move the functions into c and export since
the callback doesn't look like it should be "inline".
d) Add "component_" prefix for the functon names.
e) Add a new component_compare_dev_name.
RFC: https://lore.kernel.org/dri-devel/20220128081101.27837-1-yong.wu@mediatek.com/
rebase on v5.17-rc1
Yong Wu (23):
component: Add common helper for compare/release functions
drm/komeda: Make use of the helper component_compare_of
drm/armada: Make use of the helper component_compare_of/dev_name
drm/etnaviv: Make use of the helper component_compare_of/dev_name
drm/hirin: Make use of the helper component_compare_of
drm/ingenic: Make use of the helper component_compare_of
drm/mediatek: Make use of the helper component_compare_of
drm/meson: Make use of the helper component_compare_of
drm/msm: Make use of the helper component_compare_of
drm/sprd: Make use of the helper component_compare_of
drm/sti: Make use of the helper component_compare_of
drm/sun4i: Make use of the helper component_compare_of
drm/rockchip: Make use of the helper component_compare_dev
drm/exynos: Make use of the helper component_compare_dev
drm/mcde: Make use of the helper component_compare_dev
drm/omap: dss: Make use of the helper component_compare_dev
drm/vc4: Make use of the helper component_compare_dev
drm: of: Make use of the helper component_release_of
iommu/mediatek: Make use of the helper component_compare/release_of
ASoC: codecs: wcd938x: Make use of the helper
component_compare/release_of
power: supply: ab8500: Make use of the helper component_compare_dev
video: omapfb: dss: Make use of the helper component_compare_dev
ALSA: hda/realtek: Make use of the helper component_compare_dev_name
drivers/base/component.c | 58 +++++++++++++++++++
.../gpu/drm/arm/display/komeda/komeda_drv.c | 7 +--
drivers/gpu/drm/armada/armada_drv.c | 17 +-----
drivers/gpu/drm/drm_of.c | 7 +--
drivers/gpu/drm/etnaviv/etnaviv_drv.c | 16 +----
drivers/gpu/drm/exynos/exynos_drm_drv.c | 8 +--
.../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 7 +--
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +--
drivers/gpu/drm/mcde/mcde_drv.c | 7 +--
drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 +--
drivers/gpu/drm/meson/meson_drv.c | 10 +---
drivers/gpu/drm/msm/msm_drv.c | 15 +----
drivers/gpu/drm/omapdrm/dss/dss.c | 8 +--
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +--
drivers/gpu/drm/sprd/sprd_drm.c | 7 +--
drivers/gpu/drm/sti/sti_drv.c | 7 +--
drivers/gpu/drm/sun4i/sun4i_drv.c | 11 +---
drivers/gpu/drm/vc4/vc4_drv.c | 7 +--
drivers/iommu/mtk_iommu.c | 4 +-
drivers/iommu/mtk_iommu.h | 10 ----
drivers/iommu/mtk_iommu_v1.c | 4 +-
drivers/power/supply/ab8500_charger.c | 8 +--
drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +--
include/linux/component.h | 6 ++
sound/pci/hda/patch_realtek.c | 11 +---
sound/soc/codecs/wcd938x.c | 18 ++----
26 files changed, 99 insertions(+), 183 deletions(-)
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 163+ messages in thread
* [PATCH 00/23] component: Add common helpers for compare/release
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel
The component requires the compare/release functions, there are many
copies in current kernel. This patchset just defines four common helpers
for them. No functional change.
Change note:
v1: a) Split the original patch into many small patches.
b) Use device_match_of_node helper.
c) Move the functions into c and export since
the callback doesn't look like it should be "inline".
d) Add "component_" prefix for the functon names.
e) Add a new component_compare_dev_name.
RFC: https://lore.kernel.org/dri-devel/20220128081101.27837-1-yong.wu@mediatek.com/
rebase on v5.17-rc1
Yong Wu (23):
component: Add common helper for compare/release functions
drm/komeda: Make use of the helper component_compare_of
drm/armada: Make use of the helper component_compare_of/dev_name
drm/etnaviv: Make use of the helper component_compare_of/dev_name
drm/hirin: Make use of the helper component_compare_of
drm/ingenic: Make use of the helper component_compare_of
drm/mediatek: Make use of the helper component_compare_of
drm/meson: Make use of the helper component_compare_of
drm/msm: Make use of the helper component_compare_of
drm/sprd: Make use of the helper component_compare_of
drm/sti: Make use of the helper component_compare_of
drm/sun4i: Make use of the helper component_compare_of
drm/rockchip: Make use of the helper component_compare_dev
drm/exynos: Make use of the helper component_compare_dev
drm/mcde: Make use of the helper component_compare_dev
drm/omap: dss: Make use of the helper component_compare_dev
drm/vc4: Make use of the helper component_compare_dev
drm: of: Make use of the helper component_release_of
iommu/mediatek: Make use of the helper component_compare/release_of
ASoC: codecs: wcd938x: Make use of the helper
component_compare/release_of
power: supply: ab8500: Make use of the helper component_compare_dev
video: omapfb: dss: Make use of the helper component_compare_dev
ALSA: hda/realtek: Make use of the helper component_compare_dev_name
drivers/base/component.c | 58 +++++++++++++++++++
.../gpu/drm/arm/display/komeda/komeda_drv.c | 7 +--
drivers/gpu/drm/armada/armada_drv.c | 17 +-----
drivers/gpu/drm/drm_of.c | 7 +--
drivers/gpu/drm/etnaviv/etnaviv_drv.c | 16 +----
drivers/gpu/drm/exynos/exynos_drm_drv.c | 8 +--
.../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 7 +--
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +--
drivers/gpu/drm/mcde/mcde_drv.c | 7 +--
drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 +--
drivers/gpu/drm/meson/meson_drv.c | 10 +---
drivers/gpu/drm/msm/msm_drv.c | 15 +----
drivers/gpu/drm/omapdrm/dss/dss.c | 8 +--
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +--
drivers/gpu/drm/sprd/sprd_drm.c | 7 +--
drivers/gpu/drm/sti/sti_drv.c | 7 +--
drivers/gpu/drm/sun4i/sun4i_drv.c | 11 +---
drivers/gpu/drm/vc4/vc4_drv.c | 7 +--
drivers/iommu/mtk_iommu.c | 4 +-
drivers/iommu/mtk_iommu.h | 10 ----
drivers/iommu/mtk_iommu_v1.c | 4 +-
drivers/power/supply/ab8500_charger.c | 8 +--
drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +--
include/linux/component.h | 6 ++
sound/pci/hda/patch_realtek.c | 11 +---
sound/soc/codecs/wcd938x.c | 18 ++----
26 files changed, 99 insertions(+), 183 deletions(-)
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 163+ messages in thread
* [PATCH 01/23] component: Add common helper for compare/release functions
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:07 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Rafael J. Wysocki
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>
---
I have run "make htmldocs". Due to my poor english, If the grammer is
wrong or need more comments, please help to correct or supplement.
Thanks.
---
drivers/base/component.c | 58 +++++++++++++++++++++++++++++++++++++++
include/linux/component.h | 6 ++++
2 files changed, 64 insertions(+)
diff --git a/drivers/base/component.c b/drivers/base/component.c
index 2d25a6416587..3d72d2820d7d 100644
--- a/drivers/base/component.c
+++ b/drivers/base/component.c
@@ -11,6 +11,7 @@
#include <linux/device.h>
#include <linux/list.h>
#include <linux/mutex.h>
+#include <linux/of.h>
#include <linux/slab.h>
#include <linux/debugfs.h>
@@ -287,6 +288,63 @@ static void take_down_master(struct master *master)
}
}
+/**
+ * component_compare_of - A common component compare function for of_node
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is device of_node. e.g.
+ * component_match_add_release(masterdev, &match, component_release_of,
+ * component_compare_of, component_dev_of_node)
+ */
+int component_compare_of(struct device *dev, void *data)
+{
+ return device_match_of_node(dev, data);
+}
+EXPORT_SYMBOL_GPL(component_compare_of);
+
+/**
+ * component_release_of - A common component release function for of_node
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * About the example, Please see component_compare_of().
+ */
+void component_release_of(struct device *dev, void *data)
+{
+ of_node_put(data);
+}
+EXPORT_SYMBOL_GPL(component_release_of);
+
+/**
+ * component_compare_dev - A common component compare function for dev
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is struce device. e.g.
+ * component_match_add(masterdev, &match, component_compare_dev, component_dev)
+ */
+int component_compare_dev(struct device *dev, void *data)
+{
+ return dev == data;
+}
+EXPORT_SYMBOL_GPL(component_compare_dev);
+
+/**
+ * component_compare_dev_name - A common component compare function for device name
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is device name string. e.g.
+ * component_match_add(masterdev, &match, component_compare_dev_name,
+ * "component_dev_name")
+ */
+int component_compare_dev_name(struct device *dev, void *data)
+{
+ return device_match_name(dev, data);
+}
+EXPORT_SYMBOL_GPL(component_compare_dev_name);
+
static void devm_component_match_release(struct device *parent, void *res)
{
struct component_match *match = res;
diff --git a/include/linux/component.h b/include/linux/component.h
index 16de18f473d7..6bc1c6e7f76d 100644
--- a/include/linux/component.h
+++ b/include/linux/component.h
@@ -82,6 +82,12 @@ struct component_master_ops {
void (*unbind)(struct device *master);
};
+/* A set helper functions for component compare/release */
+int component_compare_of(struct device *dev, void *data);
+void component_release_of(struct device *dev, void *data);
+int component_compare_dev(struct device *dev, void *data);
+int component_compare_dev_name(struct device *dev, void *data);
+
void component_master_del(struct device *,
const struct component_master_ops *);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 01/23] component: Add common helper for compare/release functions
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Rafael J. Wysocki, Liviu Dudau, linux-kernel,
Srinivas Kandagatla, Laurent Pinchart, Will Deacon,
Krzysztof Kozlowski, James Wang, Chun-Kuang Hu, Arnd Bergmann,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, iommu, Robin Murphy
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>
---
I have run "make htmldocs". Due to my poor english, If the grammer is
wrong or need more comments, please help to correct or supplement.
Thanks.
---
drivers/base/component.c | 58 +++++++++++++++++++++++++++++++++++++++
include/linux/component.h | 6 ++++
2 files changed, 64 insertions(+)
diff --git a/drivers/base/component.c b/drivers/base/component.c
index 2d25a6416587..3d72d2820d7d 100644
--- a/drivers/base/component.c
+++ b/drivers/base/component.c
@@ -11,6 +11,7 @@
#include <linux/device.h>
#include <linux/list.h>
#include <linux/mutex.h>
+#include <linux/of.h>
#include <linux/slab.h>
#include <linux/debugfs.h>
@@ -287,6 +288,63 @@ static void take_down_master(struct master *master)
}
}
+/**
+ * component_compare_of - A common component compare function for of_node
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is device of_node. e.g.
+ * component_match_add_release(masterdev, &match, component_release_of,
+ * component_compare_of, component_dev_of_node)
+ */
+int component_compare_of(struct device *dev, void *data)
+{
+ return device_match_of_node(dev, data);
+}
+EXPORT_SYMBOL_GPL(component_compare_of);
+
+/**
+ * component_release_of - A common component release function for of_node
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * About the example, Please see component_compare_of().
+ */
+void component_release_of(struct device *dev, void *data)
+{
+ of_node_put(data);
+}
+EXPORT_SYMBOL_GPL(component_release_of);
+
+/**
+ * component_compare_dev - A common component compare function for dev
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is struce device. e.g.
+ * component_match_add(masterdev, &match, component_compare_dev, component_dev)
+ */
+int component_compare_dev(struct device *dev, void *data)
+{
+ return dev == data;
+}
+EXPORT_SYMBOL_GPL(component_compare_dev);
+
+/**
+ * component_compare_dev_name - A common component compare function for device name
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is device name string. e.g.
+ * component_match_add(masterdev, &match, component_compare_dev_name,
+ * "component_dev_name")
+ */
+int component_compare_dev_name(struct device *dev, void *data)
+{
+ return device_match_name(dev, data);
+}
+EXPORT_SYMBOL_GPL(component_compare_dev_name);
+
static void devm_component_match_release(struct device *parent, void *res)
{
struct component_match *match = res;
diff --git a/include/linux/component.h b/include/linux/component.h
index 16de18f473d7..6bc1c6e7f76d 100644
--- a/include/linux/component.h
+++ b/include/linux/component.h
@@ -82,6 +82,12 @@ struct component_master_ops {
void (*unbind)(struct device *master);
};
+/* A set helper functions for component compare/release */
+int component_compare_of(struct device *dev, void *data);
+void component_release_of(struct device *dev, void *data);
+int component_compare_dev(struct device *dev, void *data);
+int component_compare_dev_name(struct device *dev, void *data);
+
void component_master_del(struct device *,
const struct component_master_ops *);
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 01/23] component: Add common helper for compare/release functions
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Rafael J. Wysocki, Liviu Dudau, linux-kernel,
Srinivas Kandagatla, Laurent Pinchart, Will Deacon,
Krzysztof Kozlowski, Joerg Roedel, iommu, James Wang, Yong Wu,
Chun-Kuang Hu, Arnd Bergmann, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, Sebastian Reichel, Tomasz Figa,
Robin Murphy
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>
---
I have run "make htmldocs". Due to my poor english, If the grammer is
wrong or need more comments, please help to correct or supplement.
Thanks.
---
drivers/base/component.c | 58 +++++++++++++++++++++++++++++++++++++++
include/linux/component.h | 6 ++++
2 files changed, 64 insertions(+)
diff --git a/drivers/base/component.c b/drivers/base/component.c
index 2d25a6416587..3d72d2820d7d 100644
--- a/drivers/base/component.c
+++ b/drivers/base/component.c
@@ -11,6 +11,7 @@
#include <linux/device.h>
#include <linux/list.h>
#include <linux/mutex.h>
+#include <linux/of.h>
#include <linux/slab.h>
#include <linux/debugfs.h>
@@ -287,6 +288,63 @@ static void take_down_master(struct master *master)
}
}
+/**
+ * component_compare_of - A common component compare function for of_node
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is device of_node. e.g.
+ * component_match_add_release(masterdev, &match, component_release_of,
+ * component_compare_of, component_dev_of_node)
+ */
+int component_compare_of(struct device *dev, void *data)
+{
+ return device_match_of_node(dev, data);
+}
+EXPORT_SYMBOL_GPL(component_compare_of);
+
+/**
+ * component_release_of - A common component release function for of_node
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * About the example, Please see component_compare_of().
+ */
+void component_release_of(struct device *dev, void *data)
+{
+ of_node_put(data);
+}
+EXPORT_SYMBOL_GPL(component_release_of);
+
+/**
+ * component_compare_dev - A common component compare function for dev
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is struce device. e.g.
+ * component_match_add(masterdev, &match, component_compare_dev, component_dev)
+ */
+int component_compare_dev(struct device *dev, void *data)
+{
+ return dev == data;
+}
+EXPORT_SYMBOL_GPL(component_compare_dev);
+
+/**
+ * component_compare_dev_name - A common component compare function for device name
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is device name string. e.g.
+ * component_match_add(masterdev, &match, component_compare_dev_name,
+ * "component_dev_name")
+ */
+int component_compare_dev_name(struct device *dev, void *data)
+{
+ return device_match_name(dev, data);
+}
+EXPORT_SYMBOL_GPL(component_compare_dev_name);
+
static void devm_component_match_release(struct device *parent, void *res)
{
struct component_match *match = res;
diff --git a/include/linux/component.h b/include/linux/component.h
index 16de18f473d7..6bc1c6e7f76d 100644
--- a/include/linux/component.h
+++ b/include/linux/component.h
@@ -82,6 +82,12 @@ struct component_master_ops {
void (*unbind)(struct device *master);
};
+/* A set helper functions for component compare/release */
+int component_compare_of(struct device *dev, void *data);
+void component_release_of(struct device *dev, void *data);
+int component_compare_dev(struct device *dev, void *data);
+int component_compare_dev_name(struct device *dev, void *data);
+
void component_master_del(struct device *,
const struct component_master_ops *);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 01/23] component: Add common helper for compare/release functions
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Rafael J. Wysocki
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>
---
I have run "make htmldocs". Due to my poor english, If the grammer is
wrong or need more comments, please help to correct or supplement.
Thanks.
---
drivers/base/component.c | 58 +++++++++++++++++++++++++++++++++++++++
include/linux/component.h | 6 ++++
2 files changed, 64 insertions(+)
diff --git a/drivers/base/component.c b/drivers/base/component.c
index 2d25a6416587..3d72d2820d7d 100644
--- a/drivers/base/component.c
+++ b/drivers/base/component.c
@@ -11,6 +11,7 @@
#include <linux/device.h>
#include <linux/list.h>
#include <linux/mutex.h>
+#include <linux/of.h>
#include <linux/slab.h>
#include <linux/debugfs.h>
@@ -287,6 +288,63 @@ static void take_down_master(struct master *master)
}
}
+/**
+ * component_compare_of - A common component compare function for of_node
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is device of_node. e.g.
+ * component_match_add_release(masterdev, &match, component_release_of,
+ * component_compare_of, component_dev_of_node)
+ */
+int component_compare_of(struct device *dev, void *data)
+{
+ return device_match_of_node(dev, data);
+}
+EXPORT_SYMBOL_GPL(component_compare_of);
+
+/**
+ * component_release_of - A common component release function for of_node
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * About the example, Please see component_compare_of().
+ */
+void component_release_of(struct device *dev, void *data)
+{
+ of_node_put(data);
+}
+EXPORT_SYMBOL_GPL(component_release_of);
+
+/**
+ * component_compare_dev - A common component compare function for dev
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is struce device. e.g.
+ * component_match_add(masterdev, &match, component_compare_dev, component_dev)
+ */
+int component_compare_dev(struct device *dev, void *data)
+{
+ return dev == data;
+}
+EXPORT_SYMBOL_GPL(component_compare_dev);
+
+/**
+ * component_compare_dev_name - A common component compare function for device name
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is device name string. e.g.
+ * component_match_add(masterdev, &match, component_compare_dev_name,
+ * "component_dev_name")
+ */
+int component_compare_dev_name(struct device *dev, void *data)
+{
+ return device_match_name(dev, data);
+}
+EXPORT_SYMBOL_GPL(component_compare_dev_name);
+
static void devm_component_match_release(struct device *parent, void *res)
{
struct component_match *match = res;
diff --git a/include/linux/component.h b/include/linux/component.h
index 16de18f473d7..6bc1c6e7f76d 100644
--- a/include/linux/component.h
+++ b/include/linux/component.h
@@ -82,6 +82,12 @@ struct component_master_ops {
void (*unbind)(struct device *master);
};
+/* A set helper functions for component compare/release */
+int component_compare_of(struct device *dev, void *data);
+void component_release_of(struct device *dev, void *data);
+int component_compare_dev(struct device *dev, void *data);
+int component_compare_dev_name(struct device *dev, void *data);
+
void component_master_del(struct device *,
const struct component_master_ops *);
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 01/23] component: Add common helper for compare/release functions
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Rafael J. Wysocki
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>
---
I have run "make htmldocs". Due to my poor english, If the grammer is
wrong or need more comments, please help to correct or supplement.
Thanks.
---
drivers/base/component.c | 58 +++++++++++++++++++++++++++++++++++++++
include/linux/component.h | 6 ++++
2 files changed, 64 insertions(+)
diff --git a/drivers/base/component.c b/drivers/base/component.c
index 2d25a6416587..3d72d2820d7d 100644
--- a/drivers/base/component.c
+++ b/drivers/base/component.c
@@ -11,6 +11,7 @@
#include <linux/device.h>
#include <linux/list.h>
#include <linux/mutex.h>
+#include <linux/of.h>
#include <linux/slab.h>
#include <linux/debugfs.h>
@@ -287,6 +288,63 @@ static void take_down_master(struct master *master)
}
}
+/**
+ * component_compare_of - A common component compare function for of_node
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is device of_node. e.g.
+ * component_match_add_release(masterdev, &match, component_release_of,
+ * component_compare_of, component_dev_of_node)
+ */
+int component_compare_of(struct device *dev, void *data)
+{
+ return device_match_of_node(dev, data);
+}
+EXPORT_SYMBOL_GPL(component_compare_of);
+
+/**
+ * component_release_of - A common component release function for of_node
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * About the example, Please see component_compare_of().
+ */
+void component_release_of(struct device *dev, void *data)
+{
+ of_node_put(data);
+}
+EXPORT_SYMBOL_GPL(component_release_of);
+
+/**
+ * component_compare_dev - A common component compare function for dev
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is struce device. e.g.
+ * component_match_add(masterdev, &match, component_compare_dev, component_dev)
+ */
+int component_compare_dev(struct device *dev, void *data)
+{
+ return dev == data;
+}
+EXPORT_SYMBOL_GPL(component_compare_dev);
+
+/**
+ * component_compare_dev_name - A common component compare function for device name
+ * @dev: component device
+ * @data: @compare_data from component_match_add_release()
+ *
+ * A common compare function when compare_data is device name string. e.g.
+ * component_match_add(masterdev, &match, component_compare_dev_name,
+ * "component_dev_name")
+ */
+int component_compare_dev_name(struct device *dev, void *data)
+{
+ return device_match_name(dev, data);
+}
+EXPORT_SYMBOL_GPL(component_compare_dev_name);
+
static void devm_component_match_release(struct device *parent, void *res)
{
struct component_match *match = res;
diff --git a/include/linux/component.h b/include/linux/component.h
index 16de18f473d7..6bc1c6e7f76d 100644
--- a/include/linux/component.h
+++ b/include/linux/component.h
@@ -82,6 +82,12 @@ struct component_master_ops {
void (*unbind)(struct device *master);
};
+/* A set helper functions for component compare/release */
+int component_compare_of(struct device *dev, void *data);
+void component_release_of(struct device *dev, void *data);
+int component_compare_dev(struct device *dev, void *data);
+int component_compare_dev_name(struct device *dev, void *data);
+
void component_master_del(struct device *,
const struct component_master_ops *);
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 02/23] drm/komeda: Make use of the helper component_compare_of
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:07 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Mihail Atanassov, Brian Starkey
Use the common compare helper from component.
Cc: "James (Qian) Wang" <james.qian.wang@arm.com>
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Mihail Atanassov <mihail.atanassov@arm.com>
Cc: Brian Starkey <brian.starkey@arm.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/arm/display/komeda/komeda_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
index e7933930a657..c325872699ec 100644
--- a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
+++ b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
@@ -92,11 +92,6 @@ static const struct component_master_ops komeda_master_ops = {
.unbind = komeda_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static void komeda_add_slave(struct device *master,
struct component_match **match,
struct device_node *np,
@@ -106,7 +101,7 @@ static void komeda_add_slave(struct device *master,
remote = of_graph_get_remote_node(np, port, endpoint);
if (remote) {
- drm_of_component_match_add(master, match, compare_of, remote);
+ drm_of_component_match_add(master, match, component_compare_of, remote);
of_node_put(remote);
}
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 02/23] drm/komeda: Make use of the helper component_compare_of
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Mihail Atanassov, Will Deacon, Krzysztof Kozlowski, James Wang,
Chun-Kuang Hu, Arnd Bergmann, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, Sebastian Reichel, iommu,
Robin Murphy, Brian Starkey
Use the common compare helper from component.
Cc: "James (Qian) Wang" <james.qian.wang@arm.com>
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Mihail Atanassov <mihail.atanassov@arm.com>
Cc: Brian Starkey <brian.starkey@arm.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/arm/display/komeda/komeda_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
index e7933930a657..c325872699ec 100644
--- a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
+++ b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
@@ -92,11 +92,6 @@ static const struct component_master_ops komeda_master_ops = {
.unbind = komeda_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static void komeda_add_slave(struct device *master,
struct component_match **match,
struct device_node *np,
@@ -106,7 +101,7 @@ static void komeda_add_slave(struct device *master,
remote = of_graph_get_remote_node(np, port, endpoint);
if (remote) {
- drm_of_component_match_add(master, match, compare_of, remote);
+ drm_of_component_match_add(master, match, component_compare_of, remote);
of_node_put(remote);
}
}
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 02/23] drm/komeda: Make use of the helper component_compare_of
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Mihail Atanassov, Will Deacon, Krzysztof Kozlowski, Joerg Roedel,
iommu, James Wang, Yong Wu, Chun-Kuang Hu, Arnd Bergmann,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, Tomasz Figa, Robin Murphy
Use the common compare helper from component.
Cc: "James (Qian) Wang" <james.qian.wang@arm.com>
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Mihail Atanassov <mihail.atanassov@arm.com>
Cc: Brian Starkey <brian.starkey@arm.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/arm/display/komeda/komeda_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
index e7933930a657..c325872699ec 100644
--- a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
+++ b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
@@ -92,11 +92,6 @@ static const struct component_master_ops komeda_master_ops = {
.unbind = komeda_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static void komeda_add_slave(struct device *master,
struct component_match **match,
struct device_node *np,
@@ -106,7 +101,7 @@ static void komeda_add_slave(struct device *master,
remote = of_graph_get_remote_node(np, port, endpoint);
if (remote) {
- drm_of_component_match_add(master, match, compare_of, remote);
+ drm_of_component_match_add(master, match, component_compare_of, remote);
of_node_put(remote);
}
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 02/23] drm/komeda: Make use of the helper component_compare_of
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Mihail Atanassov, Brian Starkey
Use the common compare helper from component.
Cc: "James (Qian) Wang" <james.qian.wang@arm.com>
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Mihail Atanassov <mihail.atanassov@arm.com>
Cc: Brian Starkey <brian.starkey@arm.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/arm/display/komeda/komeda_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
index e7933930a657..c325872699ec 100644
--- a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
+++ b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
@@ -92,11 +92,6 @@ static const struct component_master_ops komeda_master_ops = {
.unbind = komeda_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static void komeda_add_slave(struct device *master,
struct component_match **match,
struct device_node *np,
@@ -106,7 +101,7 @@ static void komeda_add_slave(struct device *master,
remote = of_graph_get_remote_node(np, port, endpoint);
if (remote) {
- drm_of_component_match_add(master, match, compare_of, remote);
+ drm_of_component_match_add(master, match, component_compare_of, remote);
of_node_put(remote);
}
}
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 02/23] drm/komeda: Make use of the helper component_compare_of
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Mihail Atanassov, Brian Starkey
Use the common compare helper from component.
Cc: "James (Qian) Wang" <james.qian.wang@arm.com>
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Mihail Atanassov <mihail.atanassov@arm.com>
Cc: Brian Starkey <brian.starkey@arm.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/arm/display/komeda/komeda_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
index e7933930a657..c325872699ec 100644
--- a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
+++ b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
@@ -92,11 +92,6 @@ static const struct component_master_ops komeda_master_ops = {
.unbind = komeda_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static void komeda_add_slave(struct device *master,
struct component_match **match,
struct device_node *np,
@@ -106,7 +101,7 @@ static void komeda_add_slave(struct device *master,
remote = of_graph_get_remote_node(np, port, endpoint);
if (remote) {
- drm_of_component_match_add(master, match, compare_of, remote);
+ drm_of_component_match_add(master, match, component_compare_of, remote);
of_node_put(remote);
}
}
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 03/23] drm/armada: Make use of the helper component_compare_of/dev_name
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:07 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Russell King
Use the common compare helpers from component.
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/armada/armada_drv.c | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/armada/armada_drv.c b/drivers/gpu/drm/armada/armada_drv.c
index 8e3e98f13db4..224607a6ae16 100644
--- a/drivers/gpu/drm/armada/armada_drv.c
+++ b/drivers/gpu/drm/armada/armada_drv.c
@@ -177,17 +177,6 @@ static void armada_drm_unbind(struct device *dev)
drm_mm_takedown(&priv->linear);
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static int compare_dev_name(struct device *dev, void *data)
-{
- const char *name = data;
- return !strcmp(dev_name(dev), name);
-}
-
static void armada_add_endpoints(struct device *dev,
struct component_match **match, struct device_node *dev_node)
{
@@ -196,7 +185,7 @@ static void armada_add_endpoints(struct device *dev,
for_each_endpoint_of_node(dev_node, ep) {
remote = of_graph_get_remote_port_parent(ep);
if (remote && of_device_is_available(remote))
- drm_of_component_match_add(dev, match, compare_of,
+ drm_of_component_match_add(dev, match, component_compare_of,
remote);
of_node_put(remote);
}
@@ -213,7 +202,7 @@ static int armada_drm_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
int ret;
- ret = drm_of_component_probe(dev, compare_dev_name, &armada_master_ops);
+ ret = drm_of_component_probe(dev, component_compare_dev_name, &armada_master_ops);
if (ret != -EINVAL)
return ret;
@@ -223,7 +212,7 @@ static int armada_drm_probe(struct platform_device *pdev)
int i;
for (i = 0; devices[i]; i++)
- component_match_add(dev, &match, compare_dev_name,
+ component_match_add(dev, &match, component_compare_dev_name,
devices[i]);
if (i == 0) {
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 03/23] drm/armada: Make use of the helper component_compare_of/dev_name
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Russell King, Will Deacon, Krzysztof Kozlowski, James Wang,
Chun-Kuang Hu, Arnd Bergmann, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, Sebastian Reichel, iommu,
Robin Murphy
Use the common compare helpers from component.
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/armada/armada_drv.c | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/armada/armada_drv.c b/drivers/gpu/drm/armada/armada_drv.c
index 8e3e98f13db4..224607a6ae16 100644
--- a/drivers/gpu/drm/armada/armada_drv.c
+++ b/drivers/gpu/drm/armada/armada_drv.c
@@ -177,17 +177,6 @@ static void armada_drm_unbind(struct device *dev)
drm_mm_takedown(&priv->linear);
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static int compare_dev_name(struct device *dev, void *data)
-{
- const char *name = data;
- return !strcmp(dev_name(dev), name);
-}
-
static void armada_add_endpoints(struct device *dev,
struct component_match **match, struct device_node *dev_node)
{
@@ -196,7 +185,7 @@ static void armada_add_endpoints(struct device *dev,
for_each_endpoint_of_node(dev_node, ep) {
remote = of_graph_get_remote_port_parent(ep);
if (remote && of_device_is_available(remote))
- drm_of_component_match_add(dev, match, compare_of,
+ drm_of_component_match_add(dev, match, component_compare_of,
remote);
of_node_put(remote);
}
@@ -213,7 +202,7 @@ static int armada_drm_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
int ret;
- ret = drm_of_component_probe(dev, compare_dev_name, &armada_master_ops);
+ ret = drm_of_component_probe(dev, component_compare_dev_name, &armada_master_ops);
if (ret != -EINVAL)
return ret;
@@ -223,7 +212,7 @@ static int armada_drm_probe(struct platform_device *pdev)
int i;
for (i = 0; devices[i]; i++)
- component_match_add(dev, &match, compare_dev_name,
+ component_match_add(dev, &match, component_compare_dev_name,
devices[i]);
if (i == 0) {
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 03/23] drm/armada: Make use of the helper component_compare_of/dev_name
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Russell King, Will Deacon, Krzysztof Kozlowski, Joerg Roedel,
iommu, James Wang, Yong Wu, Chun-Kuang Hu, Arnd Bergmann,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, Tomasz Figa, Robin Murphy
Use the common compare helpers from component.
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/armada/armada_drv.c | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/armada/armada_drv.c b/drivers/gpu/drm/armada/armada_drv.c
index 8e3e98f13db4..224607a6ae16 100644
--- a/drivers/gpu/drm/armada/armada_drv.c
+++ b/drivers/gpu/drm/armada/armada_drv.c
@@ -177,17 +177,6 @@ static void armada_drm_unbind(struct device *dev)
drm_mm_takedown(&priv->linear);
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static int compare_dev_name(struct device *dev, void *data)
-{
- const char *name = data;
- return !strcmp(dev_name(dev), name);
-}
-
static void armada_add_endpoints(struct device *dev,
struct component_match **match, struct device_node *dev_node)
{
@@ -196,7 +185,7 @@ static void armada_add_endpoints(struct device *dev,
for_each_endpoint_of_node(dev_node, ep) {
remote = of_graph_get_remote_port_parent(ep);
if (remote && of_device_is_available(remote))
- drm_of_component_match_add(dev, match, compare_of,
+ drm_of_component_match_add(dev, match, component_compare_of,
remote);
of_node_put(remote);
}
@@ -213,7 +202,7 @@ static int armada_drm_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
int ret;
- ret = drm_of_component_probe(dev, compare_dev_name, &armada_master_ops);
+ ret = drm_of_component_probe(dev, component_compare_dev_name, &armada_master_ops);
if (ret != -EINVAL)
return ret;
@@ -223,7 +212,7 @@ static int armada_drm_probe(struct platform_device *pdev)
int i;
for (i = 0; devices[i]; i++)
- component_match_add(dev, &match, compare_dev_name,
+ component_match_add(dev, &match, component_compare_dev_name,
devices[i]);
if (i == 0) {
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 03/23] drm/armada: Make use of the helper component_compare_of/dev_name
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Russell King
Use the common compare helpers from component.
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/armada/armada_drv.c | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/armada/armada_drv.c b/drivers/gpu/drm/armada/armada_drv.c
index 8e3e98f13db4..224607a6ae16 100644
--- a/drivers/gpu/drm/armada/armada_drv.c
+++ b/drivers/gpu/drm/armada/armada_drv.c
@@ -177,17 +177,6 @@ static void armada_drm_unbind(struct device *dev)
drm_mm_takedown(&priv->linear);
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static int compare_dev_name(struct device *dev, void *data)
-{
- const char *name = data;
- return !strcmp(dev_name(dev), name);
-}
-
static void armada_add_endpoints(struct device *dev,
struct component_match **match, struct device_node *dev_node)
{
@@ -196,7 +185,7 @@ static void armada_add_endpoints(struct device *dev,
for_each_endpoint_of_node(dev_node, ep) {
remote = of_graph_get_remote_port_parent(ep);
if (remote && of_device_is_available(remote))
- drm_of_component_match_add(dev, match, compare_of,
+ drm_of_component_match_add(dev, match, component_compare_of,
remote);
of_node_put(remote);
}
@@ -213,7 +202,7 @@ static int armada_drm_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
int ret;
- ret = drm_of_component_probe(dev, compare_dev_name, &armada_master_ops);
+ ret = drm_of_component_probe(dev, component_compare_dev_name, &armada_master_ops);
if (ret != -EINVAL)
return ret;
@@ -223,7 +212,7 @@ static int armada_drm_probe(struct platform_device *pdev)
int i;
for (i = 0; devices[i]; i++)
- component_match_add(dev, &match, compare_dev_name,
+ component_match_add(dev, &match, component_compare_dev_name,
devices[i]);
if (i == 0) {
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 03/23] drm/armada: Make use of the helper component_compare_of/dev_name
@ 2022-02-14 6:07 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:07 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Russell King
Use the common compare helpers from component.
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/armada/armada_drv.c | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/armada/armada_drv.c b/drivers/gpu/drm/armada/armada_drv.c
index 8e3e98f13db4..224607a6ae16 100644
--- a/drivers/gpu/drm/armada/armada_drv.c
+++ b/drivers/gpu/drm/armada/armada_drv.c
@@ -177,17 +177,6 @@ static void armada_drm_unbind(struct device *dev)
drm_mm_takedown(&priv->linear);
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static int compare_dev_name(struct device *dev, void *data)
-{
- const char *name = data;
- return !strcmp(dev_name(dev), name);
-}
-
static void armada_add_endpoints(struct device *dev,
struct component_match **match, struct device_node *dev_node)
{
@@ -196,7 +185,7 @@ static void armada_add_endpoints(struct device *dev,
for_each_endpoint_of_node(dev_node, ep) {
remote = of_graph_get_remote_port_parent(ep);
if (remote && of_device_is_available(remote))
- drm_of_component_match_add(dev, match, compare_of,
+ drm_of_component_match_add(dev, match, component_compare_of,
remote);
of_node_put(remote);
}
@@ -213,7 +202,7 @@ static int armada_drm_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
int ret;
- ret = drm_of_component_probe(dev, compare_dev_name, &armada_master_ops);
+ ret = drm_of_component_probe(dev, component_compare_dev_name, &armada_master_ops);
if (ret != -EINVAL)
return ret;
@@ -223,7 +212,7 @@ static int armada_drm_probe(struct platform_device *pdev)
int i;
for (i = 0; devices[i]; i++)
- component_match_add(dev, &match, compare_dev_name,
+ component_match_add(dev, &match, component_compare_dev_name,
devices[i]);
if (i == 0) {
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 04/23] drm/etnaviv: Make use of the helper component_compare_of/dev_name
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Lucas Stach, Russell King, Christian Gmeiner, etnaviv
Use the common compare helpers from component.
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Russell King <linux+etnaviv@armlinux.org.uk>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: etnaviv@lists.freedesktop.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/etnaviv/etnaviv_drv.c | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
index 0b756ecb1bc2..1d2b4fb4bcf8 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
@@ -574,18 +574,6 @@ static const struct component_master_ops etnaviv_master_ops = {
.unbind = etnaviv_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- struct device_node *np = data;
-
- return dev->of_node == np;
-}
-
-static int compare_str(struct device *dev, void *data)
-{
- return !strcmp(dev_name(dev), data);
-}
-
static int etnaviv_pdev_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -603,14 +591,14 @@ static int etnaviv_pdev_probe(struct platform_device *pdev)
first_node = core_node;
drm_of_component_match_add(&pdev->dev, &match,
- compare_of, core_node);
+ component_compare_of, core_node);
}
} else {
char **names = dev->platform_data;
unsigned i;
for (i = 0; names[i]; i++)
- component_match_add(dev, &match, compare_str, names[i]);
+ component_match_add(dev, &match, component_compare_dev_name, names[i]);
}
/*
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 04/23] drm/etnaviv: Make use of the helper component_compare_of/dev_name
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, James Wang, Russell King,
Chun-Kuang Hu, Arnd Bergmann, etnaviv, Christian Gmeiner,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, iommu, Robin Murphy, Lucas Stach
Use the common compare helpers from component.
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Russell King <linux+etnaviv@armlinux.org.uk>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: etnaviv@lists.freedesktop.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/etnaviv/etnaviv_drv.c | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
index 0b756ecb1bc2..1d2b4fb4bcf8 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
@@ -574,18 +574,6 @@ static const struct component_master_ops etnaviv_master_ops = {
.unbind = etnaviv_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- struct device_node *np = data;
-
- return dev->of_node == np;
-}
-
-static int compare_str(struct device *dev, void *data)
-{
- return !strcmp(dev_name(dev), data);
-}
-
static int etnaviv_pdev_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -603,14 +591,14 @@ static int etnaviv_pdev_probe(struct platform_device *pdev)
first_node = core_node;
drm_of_component_match_add(&pdev->dev, &match,
- compare_of, core_node);
+ component_compare_of, core_node);
}
} else {
char **names = dev->platform_data;
unsigned i;
for (i = 0; names[i]; i++)
- component_match_add(dev, &match, compare_str, names[i]);
+ component_match_add(dev, &match, component_compare_dev_name, names[i]);
}
/*
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 04/23] drm/etnaviv: Make use of the helper component_compare_of/dev_name
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, Joerg Roedel, iommu,
James Wang, Yong Wu, Russell King, Chun-Kuang Hu, Arnd Bergmann,
etnaviv, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-arm-kernel, AngeloGioacchino Del Regno, srv_heupstream,
Stephen Boyd, Sebastian Reichel, Tomasz Figa, Robin Murphy
Use the common compare helpers from component.
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Russell King <linux+etnaviv@armlinux.org.uk>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: etnaviv@lists.freedesktop.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/etnaviv/etnaviv_drv.c | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
index 0b756ecb1bc2..1d2b4fb4bcf8 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
@@ -574,18 +574,6 @@ static const struct component_master_ops etnaviv_master_ops = {
.unbind = etnaviv_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- struct device_node *np = data;
-
- return dev->of_node == np;
-}
-
-static int compare_str(struct device *dev, void *data)
-{
- return !strcmp(dev_name(dev), data);
-}
-
static int etnaviv_pdev_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -603,14 +591,14 @@ static int etnaviv_pdev_probe(struct platform_device *pdev)
first_node = core_node;
drm_of_component_match_add(&pdev->dev, &match,
- compare_of, core_node);
+ component_compare_of, core_node);
}
} else {
char **names = dev->platform_data;
unsigned i;
for (i = 0; names[i]; i++)
- component_match_add(dev, &match, compare_str, names[i]);
+ component_match_add(dev, &match, component_compare_dev_name, names[i]);
}
/*
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 04/23] drm/etnaviv: Make use of the helper component_compare_of/dev_name
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Lucas Stach, Russell King, Christian Gmeiner, etnaviv
Use the common compare helpers from component.
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Russell King <linux+etnaviv@armlinux.org.uk>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: etnaviv@lists.freedesktop.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/etnaviv/etnaviv_drv.c | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
index 0b756ecb1bc2..1d2b4fb4bcf8 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
@@ -574,18 +574,6 @@ static const struct component_master_ops etnaviv_master_ops = {
.unbind = etnaviv_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- struct device_node *np = data;
-
- return dev->of_node == np;
-}
-
-static int compare_str(struct device *dev, void *data)
-{
- return !strcmp(dev_name(dev), data);
-}
-
static int etnaviv_pdev_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -603,14 +591,14 @@ static int etnaviv_pdev_probe(struct platform_device *pdev)
first_node = core_node;
drm_of_component_match_add(&pdev->dev, &match,
- compare_of, core_node);
+ component_compare_of, core_node);
}
} else {
char **names = dev->platform_data;
unsigned i;
for (i = 0; names[i]; i++)
- component_match_add(dev, &match, compare_str, names[i]);
+ component_match_add(dev, &match, component_compare_dev_name, names[i]);
}
/*
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 04/23] drm/etnaviv: Make use of the helper component_compare_of/dev_name
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Lucas Stach, Russell King, Christian Gmeiner, etnaviv
Use the common compare helpers from component.
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Russell King <linux+etnaviv@armlinux.org.uk>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: etnaviv@lists.freedesktop.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/etnaviv/etnaviv_drv.c | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
index 0b756ecb1bc2..1d2b4fb4bcf8 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
@@ -574,18 +574,6 @@ static const struct component_master_ops etnaviv_master_ops = {
.unbind = etnaviv_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- struct device_node *np = data;
-
- return dev->of_node == np;
-}
-
-static int compare_str(struct device *dev, void *data)
-{
- return !strcmp(dev_name(dev), data);
-}
-
static int etnaviv_pdev_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -603,14 +591,14 @@ static int etnaviv_pdev_probe(struct platform_device *pdev)
first_node = core_node;
drm_of_component_match_add(&pdev->dev, &match,
- compare_of, core_node);
+ component_compare_of, core_node);
}
} else {
char **names = dev->platform_data;
unsigned i;
for (i = 0; names[i]; i++)
- component_match_add(dev, &match, compare_str, names[i]);
+ component_match_add(dev, &match, component_compare_dev_name, names[i]);
}
/*
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 05/23] drm/hirin: Make use of the helper component_compare_of
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Xinliang Liu, Tian Tao, John Stultz, Xinwei Kong, Chen Feng,
Thomas Zimmermann, Hao Fang
Use the common compare helper from component.
Cc: Xinliang Liu <xinliang.liu@linaro.org>
Cc: Tian Tao <tiantao6@hisilicon.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Xinwei Kong <kong.kongxinwei@hisilicon.com>
Cc: Chen Feng <puck.chen@hisilicon.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Hao Fang <fanghao11@huawei.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
index 98ae9a48f3fe..8041ec11bd48 100644
--- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
+++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
@@ -203,11 +203,6 @@ static int kirin_drm_kms_init(struct drm_device *dev,
return ret;
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int kirin_drm_kms_cleanup(struct drm_device *dev)
{
drm_kms_helper_poll_fini(dev);
@@ -278,7 +273,7 @@ static int kirin_drm_platform_probe(struct platform_device *pdev)
if (!remote)
return -ENODEV;
- drm_of_component_match_add(dev, &match, compare_of, remote);
+ drm_of_component_match_add(dev, &match, component_compare_of, remote);
of_node_put(remote);
return component_master_add_with_match(dev, &kirin_drm_ops, match);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 05/23] drm/hirin: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Xinliang Liu, Liviu Dudau, linux-kernel, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Hao Fang, Krzysztof Kozlowski,
Xinwei Kong, James Wang, Chun-Kuang Hu, John Stultz,
Arnd Bergmann, Chen Feng, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, Sebastian Reichel, iommu,
Thomas Zimmermann, Tian Tao, Robin Murphy
Use the common compare helper from component.
Cc: Xinliang Liu <xinliang.liu@linaro.org>
Cc: Tian Tao <tiantao6@hisilicon.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Xinwei Kong <kong.kongxinwei@hisilicon.com>
Cc: Chen Feng <puck.chen@hisilicon.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Hao Fang <fanghao11@huawei.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
index 98ae9a48f3fe..8041ec11bd48 100644
--- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
+++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
@@ -203,11 +203,6 @@ static int kirin_drm_kms_init(struct drm_device *dev,
return ret;
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int kirin_drm_kms_cleanup(struct drm_device *dev)
{
drm_kms_helper_poll_fini(dev);
@@ -278,7 +273,7 @@ static int kirin_drm_platform_probe(struct platform_device *pdev)
if (!remote)
return -ENODEV;
- drm_of_component_match_add(dev, &match, compare_of, remote);
+ drm_of_component_match_add(dev, &match, component_compare_of, remote);
of_node_put(remote);
return component_master_add_with_match(dev, &kirin_drm_ops, match);
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 05/23] drm/hirin: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Xinliang Liu, Liviu Dudau, linux-kernel, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Hao Fang, Krzysztof Kozlowski,
Joerg Roedel, iommu, Xinwei Kong, James Wang, Yong Wu,
Chun-Kuang Hu, Arnd Bergmann, Chen Feng, linux-mediatek,
Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, Tomasz Figa, Thomas Zimmermann, Tian Tao,
Robin Murphy
Use the common compare helper from component.
Cc: Xinliang Liu <xinliang.liu@linaro.org>
Cc: Tian Tao <tiantao6@hisilicon.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Xinwei Kong <kong.kongxinwei@hisilicon.com>
Cc: Chen Feng <puck.chen@hisilicon.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Hao Fang <fanghao11@huawei.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
index 98ae9a48f3fe..8041ec11bd48 100644
--- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
+++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
@@ -203,11 +203,6 @@ static int kirin_drm_kms_init(struct drm_device *dev,
return ret;
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int kirin_drm_kms_cleanup(struct drm_device *dev)
{
drm_kms_helper_poll_fini(dev);
@@ -278,7 +273,7 @@ static int kirin_drm_platform_probe(struct platform_device *pdev)
if (!remote)
return -ENODEV;
- drm_of_component_match_add(dev, &match, compare_of, remote);
+ drm_of_component_match_add(dev, &match, component_compare_of, remote);
of_node_put(remote);
return component_master_add_with_match(dev, &kirin_drm_ops, match);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 05/23] drm/hirin: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Xinliang Liu, Tian Tao, John Stultz, Xinwei Kong, Chen Feng,
Thomas Zimmermann, Hao Fang
Use the common compare helper from component.
Cc: Xinliang Liu <xinliang.liu@linaro.org>
Cc: Tian Tao <tiantao6@hisilicon.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Xinwei Kong <kong.kongxinwei@hisilicon.com>
Cc: Chen Feng <puck.chen@hisilicon.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Hao Fang <fanghao11@huawei.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
index 98ae9a48f3fe..8041ec11bd48 100644
--- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
+++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
@@ -203,11 +203,6 @@ static int kirin_drm_kms_init(struct drm_device *dev,
return ret;
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int kirin_drm_kms_cleanup(struct drm_device *dev)
{
drm_kms_helper_poll_fini(dev);
@@ -278,7 +273,7 @@ static int kirin_drm_platform_probe(struct platform_device *pdev)
if (!remote)
return -ENODEV;
- drm_of_component_match_add(dev, &match, compare_of, remote);
+ drm_of_component_match_add(dev, &match, component_compare_of, remote);
of_node_put(remote);
return component_master_add_with_match(dev, &kirin_drm_ops, match);
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 05/23] drm/hirin: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Xinliang Liu, Tian Tao, John Stultz, Xinwei Kong, Chen Feng,
Thomas Zimmermann, Hao Fang
Use the common compare helper from component.
Cc: Xinliang Liu <xinliang.liu@linaro.org>
Cc: Tian Tao <tiantao6@hisilicon.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Xinwei Kong <kong.kongxinwei@hisilicon.com>
Cc: Chen Feng <puck.chen@hisilicon.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Hao Fang <fanghao11@huawei.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
index 98ae9a48f3fe..8041ec11bd48 100644
--- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
+++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
@@ -203,11 +203,6 @@ static int kirin_drm_kms_init(struct drm_device *dev,
return ret;
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int kirin_drm_kms_cleanup(struct drm_device *dev)
{
drm_kms_helper_poll_fini(dev);
@@ -278,7 +273,7 @@ static int kirin_drm_platform_probe(struct platform_device *pdev)
if (!remote)
return -ENODEV;
- drm_of_component_match_add(dev, &match, compare_of, remote);
+ drm_of_component_match_add(dev, &match, component_compare_of, remote);
of_node_put(remote);
return component_master_add_with_match(dev, &kirin_drm_ops, match);
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 06/23] drm/ingenic: Make use of the helper component_compare_of
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Paul Cercueil, linux-mips
Use the common compare helper from component.
Cc: Paul Cercueil <paul@crapouillou.net>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
index b4943a56be09..23b8f012b418 100644
--- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
+++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
@@ -1322,11 +1322,6 @@ static int ingenic_drm_bind_with_components(struct device *dev)
return ingenic_drm_bind(dev, true);
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static void ingenic_drm_unbind(struct device *dev)
{
struct ingenic_drm *priv = dev_get_drvdata(dev);
@@ -1360,7 +1355,7 @@ static int ingenic_drm_probe(struct platform_device *pdev)
if (!np)
return ingenic_drm_bind(dev, false);
- drm_of_component_match_add(dev, &match, compare_of, np);
+ drm_of_component_match_add(dev, &match, component_compare_of, np);
of_node_put(np);
return component_master_add_with_match(dev, &ingenic_master_ops, match);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 06/23] drm/ingenic: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Paul Cercueil, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Krzysztof Kozlowski, James Wang,
linux-mips, Chun-Kuang Hu, Arnd Bergmann, linux-mediatek,
Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, iommu, Robin Murphy
Use the common compare helper from component.
Cc: Paul Cercueil <paul@crapouillou.net>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
index b4943a56be09..23b8f012b418 100644
--- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
+++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
@@ -1322,11 +1322,6 @@ static int ingenic_drm_bind_with_components(struct device *dev)
return ingenic_drm_bind(dev, true);
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static void ingenic_drm_unbind(struct device *dev)
{
struct ingenic_drm *priv = dev_get_drvdata(dev);
@@ -1360,7 +1355,7 @@ static int ingenic_drm_probe(struct platform_device *pdev)
if (!np)
return ingenic_drm_bind(dev, false);
- drm_of_component_match_add(dev, &match, compare_of, np);
+ drm_of_component_match_add(dev, &match, component_compare_of, np);
of_node_put(np);
return component_master_add_with_match(dev, &ingenic_master_ops, match);
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 06/23] drm/ingenic: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Paul Cercueil, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Krzysztof Kozlowski, Joerg Roedel,
iommu, James Wang, Yong Wu, linux-mips, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-arm-kernel, AngeloGioacchino Del Regno, srv_heupstream,
Stephen Boyd, Sebastian Reichel, Tomasz Figa, Robin Murphy
Use the common compare helper from component.
Cc: Paul Cercueil <paul@crapouillou.net>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
index b4943a56be09..23b8f012b418 100644
--- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
+++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
@@ -1322,11 +1322,6 @@ static int ingenic_drm_bind_with_components(struct device *dev)
return ingenic_drm_bind(dev, true);
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static void ingenic_drm_unbind(struct device *dev)
{
struct ingenic_drm *priv = dev_get_drvdata(dev);
@@ -1360,7 +1355,7 @@ static int ingenic_drm_probe(struct platform_device *pdev)
if (!np)
return ingenic_drm_bind(dev, false);
- drm_of_component_match_add(dev, &match, compare_of, np);
+ drm_of_component_match_add(dev, &match, component_compare_of, np);
of_node_put(np);
return component_master_add_with_match(dev, &ingenic_master_ops, match);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 06/23] drm/ingenic: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Paul Cercueil, linux-mips
Use the common compare helper from component.
Cc: Paul Cercueil <paul@crapouillou.net>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
index b4943a56be09..23b8f012b418 100644
--- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
+++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
@@ -1322,11 +1322,6 @@ static int ingenic_drm_bind_with_components(struct device *dev)
return ingenic_drm_bind(dev, true);
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static void ingenic_drm_unbind(struct device *dev)
{
struct ingenic_drm *priv = dev_get_drvdata(dev);
@@ -1360,7 +1355,7 @@ static int ingenic_drm_probe(struct platform_device *pdev)
if (!np)
return ingenic_drm_bind(dev, false);
- drm_of_component_match_add(dev, &match, compare_of, np);
+ drm_of_component_match_add(dev, &match, component_compare_of, np);
of_node_put(np);
return component_master_add_with_match(dev, &ingenic_master_ops, match);
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 06/23] drm/ingenic: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Paul Cercueil, linux-mips
Use the common compare helper from component.
Cc: Paul Cercueil <paul@crapouillou.net>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
index b4943a56be09..23b8f012b418 100644
--- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
+++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
@@ -1322,11 +1322,6 @@ static int ingenic_drm_bind_with_components(struct device *dev)
return ingenic_drm_bind(dev, true);
}
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static void ingenic_drm_unbind(struct device *dev)
{
struct ingenic_drm *priv = dev_get_drvdata(dev);
@@ -1360,7 +1355,7 @@ static int ingenic_drm_probe(struct platform_device *pdev)
if (!np)
return ingenic_drm_bind(dev, false);
- drm_of_component_match_add(dev, &match, compare_of, np);
+ drm_of_component_match_add(dev, &match, component_compare_of, np);
of_node_put(np);
return component_master_add_with_match(dev, &ingenic_master_ops, match);
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 07/23] drm/mediatek: Make use of the helper component_compare_of
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Philipp Zabel
Use the common compare helper from component.
Cc: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
index 56ff8c57ef8f..cd14399eaf8f 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
@@ -369,11 +369,6 @@ static const struct drm_driver mtk_drm_driver = {
.minor = DRIVER_MINOR,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int mtk_drm_bind(struct device *dev)
{
struct mtk_drm_private *private = dev_get_drvdata(dev);
@@ -614,7 +609,7 @@ static int mtk_drm_probe(struct platform_device *pdev)
comp_type == MTK_DSI) {
dev_info(dev, "Adding component match for %pOF\n",
node);
- drm_of_component_match_add(dev, &match, compare_of,
+ drm_of_component_match_add(dev, &match, component_compare_of,
node);
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 07/23] drm/mediatek: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, James Wang, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-arm-kernel, AngeloGioacchino Del Regno, srv_heupstream,
Stephen Boyd, Sebastian Reichel, iommu, Philipp Zabel,
Robin Murphy
Use the common compare helper from component.
Cc: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
index 56ff8c57ef8f..cd14399eaf8f 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
@@ -369,11 +369,6 @@ static const struct drm_driver mtk_drm_driver = {
.minor = DRIVER_MINOR,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int mtk_drm_bind(struct device *dev)
{
struct mtk_drm_private *private = dev_get_drvdata(dev);
@@ -614,7 +609,7 @@ static int mtk_drm_probe(struct platform_device *pdev)
comp_type == MTK_DSI) {
dev_info(dev, "Adding component match for %pOF\n",
node);
- drm_of_component_match_add(dev, &match, compare_of,
+ drm_of_component_match_add(dev, &match, component_compare_of,
node);
}
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 07/23] drm/mediatek: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Philipp Zabel
Use the common compare helper from component.
Cc: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
index 56ff8c57ef8f..cd14399eaf8f 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
@@ -369,11 +369,6 @@ static const struct drm_driver mtk_drm_driver = {
.minor = DRIVER_MINOR,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int mtk_drm_bind(struct device *dev)
{
struct mtk_drm_private *private = dev_get_drvdata(dev);
@@ -614,7 +609,7 @@ static int mtk_drm_probe(struct platform_device *pdev)
comp_type == MTK_DSI) {
dev_info(dev, "Adding component match for %pOF\n",
node);
- drm_of_component_match_add(dev, &match, compare_of,
+ drm_of_component_match_add(dev, &match, component_compare_of,
node);
}
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 07/23] drm/mediatek: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, Joerg Roedel, iommu,
James Wang, Yong Wu, Chun-Kuang Hu, Arnd Bergmann,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, Tomasz Figa, Robin Murphy
Use the common compare helper from component.
Cc: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
index 56ff8c57ef8f..cd14399eaf8f 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
@@ -369,11 +369,6 @@ static const struct drm_driver mtk_drm_driver = {
.minor = DRIVER_MINOR,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int mtk_drm_bind(struct device *dev)
{
struct mtk_drm_private *private = dev_get_drvdata(dev);
@@ -614,7 +609,7 @@ static int mtk_drm_probe(struct platform_device *pdev)
comp_type == MTK_DSI) {
dev_info(dev, "Adding component match for %pOF\n",
node);
- drm_of_component_match_add(dev, &match, compare_of,
+ drm_of_component_match_add(dev, &match, component_compare_of,
node);
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 07/23] drm/mediatek: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Philipp Zabel
Use the common compare helper from component.
Cc: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
index 56ff8c57ef8f..cd14399eaf8f 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
@@ -369,11 +369,6 @@ static const struct drm_driver mtk_drm_driver = {
.minor = DRIVER_MINOR,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int mtk_drm_bind(struct device *dev)
{
struct mtk_drm_private *private = dev_get_drvdata(dev);
@@ -614,7 +609,7 @@ static int mtk_drm_probe(struct platform_device *pdev)
comp_type == MTK_DSI) {
dev_info(dev, "Adding component match for %pOF\n",
node);
- drm_of_component_match_add(dev, &match, compare_of,
+ drm_of_component_match_add(dev, &match, component_compare_of,
node);
}
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 08/23] drm/meson: Make use of the helper component_compare_of
2022-02-14 6:07 ` Yong Wu via iommu
` (3 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
linux-amlogic
Use the common compare helper from component.
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: linux-amlogic@lists.infradead.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/meson/meson_drv.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c
index 80f1d439841a..3a9768a135bb 100644
--- a/drivers/gpu/drm/meson/meson_drv.c
+++ b/drivers/gpu/drm/meson/meson_drv.c
@@ -423,14 +423,6 @@ static int __maybe_unused meson_drv_pm_resume(struct device *dev)
return drm_mode_config_helper_resume(priv->drm);
}
-static int compare_of(struct device *dev, void *data)
-{
- DRM_DEBUG_DRIVER("Comparing of node %pOF with %pOF\n",
- dev->of_node, data);
-
- return dev->of_node == data;
-}
-
static void meson_drv_shutdown(struct platform_device *pdev)
{
struct meson_drm *priv = dev_get_drvdata(&pdev->dev);
@@ -473,7 +465,7 @@ static int meson_drv_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "parent %pOF remote match add %pOF parent %s\n",
np, remote, dev_name(&pdev->dev));
- component_match_add(&pdev->dev, &match, compare_of, remote);
+ component_match_add(&pdev->dev, &match, component_compare_of, remote);
of_node_put(remote);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 08/23] drm/meson: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Neil Armstrong, Liviu Dudau, linux-kernel, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Jerome Brunet,
Krzysztof Kozlowski, Kevin Hilman, James Wang, Chun-Kuang Hu,
Arnd Bergmann, Martin Blumenstingl, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-amlogic, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, iommu, Robin Murphy
Use the common compare helper from component.
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: linux-amlogic@lists.infradead.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/meson/meson_drv.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c
index 80f1d439841a..3a9768a135bb 100644
--- a/drivers/gpu/drm/meson/meson_drv.c
+++ b/drivers/gpu/drm/meson/meson_drv.c
@@ -423,14 +423,6 @@ static int __maybe_unused meson_drv_pm_resume(struct device *dev)
return drm_mode_config_helper_resume(priv->drm);
}
-static int compare_of(struct device *dev, void *data)
-{
- DRM_DEBUG_DRIVER("Comparing of node %pOF with %pOF\n",
- dev->of_node, data);
-
- return dev->of_node == data;
-}
-
static void meson_drv_shutdown(struct platform_device *pdev)
{
struct meson_drm *priv = dev_get_drvdata(&pdev->dev);
@@ -473,7 +465,7 @@ static int meson_drv_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "parent %pOF remote match add %pOF parent %s\n",
np, remote, dev_name(&pdev->dev));
- component_match_add(&pdev->dev, &match, compare_of, remote);
+ component_match_add(&pdev->dev, &match, component_compare_of, remote);
of_node_put(remote);
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 08/23] drm/meson: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Neil Armstrong, Liviu Dudau, linux-kernel, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Jerome Brunet,
Krzysztof Kozlowski, Kevin Hilman, Joerg Roedel, iommu,
James Wang, Yong Wu, Chun-Kuang Hu, Arnd Bergmann,
Martin Blumenstingl, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-amlogic, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, Tomasz Figa, Robin Murphy
Use the common compare helper from component.
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: linux-amlogic@lists.infradead.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/meson/meson_drv.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c
index 80f1d439841a..3a9768a135bb 100644
--- a/drivers/gpu/drm/meson/meson_drv.c
+++ b/drivers/gpu/drm/meson/meson_drv.c
@@ -423,14 +423,6 @@ static int __maybe_unused meson_drv_pm_resume(struct device *dev)
return drm_mode_config_helper_resume(priv->drm);
}
-static int compare_of(struct device *dev, void *data)
-{
- DRM_DEBUG_DRIVER("Comparing of node %pOF with %pOF\n",
- dev->of_node, data);
-
- return dev->of_node == data;
-}
-
static void meson_drv_shutdown(struct platform_device *pdev)
{
struct meson_drm *priv = dev_get_drvdata(&pdev->dev);
@@ -473,7 +465,7 @@ static int meson_drv_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "parent %pOF remote match add %pOF parent %s\n",
np, remote, dev_name(&pdev->dev));
- component_match_add(&pdev->dev, &match, compare_of, remote);
+ component_match_add(&pdev->dev, &match, component_compare_of, remote);
of_node_put(remote);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 08/23] drm/meson: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
linux-amlogic
Use the common compare helper from component.
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: linux-amlogic@lists.infradead.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/meson/meson_drv.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c
index 80f1d439841a..3a9768a135bb 100644
--- a/drivers/gpu/drm/meson/meson_drv.c
+++ b/drivers/gpu/drm/meson/meson_drv.c
@@ -423,14 +423,6 @@ static int __maybe_unused meson_drv_pm_resume(struct device *dev)
return drm_mode_config_helper_resume(priv->drm);
}
-static int compare_of(struct device *dev, void *data)
-{
- DRM_DEBUG_DRIVER("Comparing of node %pOF with %pOF\n",
- dev->of_node, data);
-
- return dev->of_node == data;
-}
-
static void meson_drv_shutdown(struct platform_device *pdev)
{
struct meson_drm *priv = dev_get_drvdata(&pdev->dev);
@@ -473,7 +465,7 @@ static int meson_drv_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "parent %pOF remote match add %pOF parent %s\n",
np, remote, dev_name(&pdev->dev));
- component_match_add(&pdev->dev, &match, compare_of, remote);
+ component_match_add(&pdev->dev, &match, component_compare_of, remote);
of_node_put(remote);
--
2.18.0
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 08/23] drm/meson: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
linux-amlogic
Use the common compare helper from component.
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: linux-amlogic@lists.infradead.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/meson/meson_drv.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c
index 80f1d439841a..3a9768a135bb 100644
--- a/drivers/gpu/drm/meson/meson_drv.c
+++ b/drivers/gpu/drm/meson/meson_drv.c
@@ -423,14 +423,6 @@ static int __maybe_unused meson_drv_pm_resume(struct device *dev)
return drm_mode_config_helper_resume(priv->drm);
}
-static int compare_of(struct device *dev, void *data)
-{
- DRM_DEBUG_DRIVER("Comparing of node %pOF with %pOF\n",
- dev->of_node, data);
-
- return dev->of_node == data;
-}
-
static void meson_drv_shutdown(struct platform_device *pdev)
{
struct meson_drm *priv = dev_get_drvdata(&pdev->dev);
@@ -473,7 +465,7 @@ static int meson_drv_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "parent %pOF remote match add %pOF parent %s\n",
np, remote, dev_name(&pdev->dev));
- component_match_add(&pdev->dev, &match, compare_of, remote);
+ component_match_add(&pdev->dev, &match, component_compare_of, remote);
of_node_put(remote);
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 08/23] drm/meson: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
linux-amlogic
Use the common compare helper from component.
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: linux-amlogic@lists.infradead.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/meson/meson_drv.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c
index 80f1d439841a..3a9768a135bb 100644
--- a/drivers/gpu/drm/meson/meson_drv.c
+++ b/drivers/gpu/drm/meson/meson_drv.c
@@ -423,14 +423,6 @@ static int __maybe_unused meson_drv_pm_resume(struct device *dev)
return drm_mode_config_helper_resume(priv->drm);
}
-static int compare_of(struct device *dev, void *data)
-{
- DRM_DEBUG_DRIVER("Comparing of node %pOF with %pOF\n",
- dev->of_node, data);
-
- return dev->of_node == data;
-}
-
static void meson_drv_shutdown(struct platform_device *pdev)
{
struct meson_drm *priv = dev_get_drvdata(&pdev->dev);
@@ -473,7 +465,7 @@ static int meson_drv_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "parent %pOF remote match add %pOF parent %s\n",
np, remote, dev_name(&pdev->dev));
- component_match_add(&pdev->dev, &match, compare_of, remote);
+ component_match_add(&pdev->dev, &match, component_compare_of, remote);
of_node_put(remote);
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 09/23] drm/msm: Make use of the helper component_compare_of
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Sean Paul, Abhinav Kumar, linux-arm-msm, freedreno
Use the common compare helper from component.
Cc: Rob Clark <robdclark@gmail.com>
Cc: Sean Paul <sean@poorly.run>
Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: freedreno@lists.freedesktop.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/msm/msm_drv.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
index ad35a5d94053..50e5a6ff6487 100644
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@ -1173,15 +1173,6 @@ static const struct dev_pm_ops msm_pm_ops = {
* Componentized driver support:
*/
-/*
- * NOTE: duplication of the same code as exynos or imx (or probably any other).
- * so probably some room for some helpers
- */
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
/*
* Identify what components need to be added by parsing what remote-endpoints
* our MDP output ports are connected to. In the case of LVDS on MDP4, there
@@ -1239,7 +1230,7 @@ static int add_components_mdp(struct device *mdp_dev,
if (of_device_is_available(intf))
drm_of_component_match_add(master_dev, matchptr,
- compare_of, intf);
+ component_compare_of, intf);
of_node_put(intf);
}
@@ -1285,7 +1276,7 @@ static int add_display_components(struct platform_device *pdev,
put_device(mdp_dev);
/* add the MDP component itself */
- drm_of_component_match_add(dev, matchptr, compare_of,
+ drm_of_component_match_add(dev, matchptr, component_compare_of,
mdp_dev->of_node);
break;
case KMS_MDP4:
@@ -1324,7 +1315,7 @@ static int add_gpu_components(struct device *dev,
return 0;
if (of_device_is_available(np))
- drm_of_component_match_add(dev, matchptr, compare_of, np);
+ drm_of_component_match_add(dev, matchptr, component_compare_of, np);
of_node_put(np);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 09/23] drm/msm: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, James Wang, Chun-Kuang Hu,
Arnd Bergmann, linux-arm-msm, Abhinav Kumar, linux-mediatek,
Hsin-Yi Wang, Matthias Brugger, Sean Paul, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
freedreno, Sebastian Reichel, iommu, Robin Murphy
Use the common compare helper from component.
Cc: Rob Clark <robdclark@gmail.com>
Cc: Sean Paul <sean@poorly.run>
Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: freedreno@lists.freedesktop.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/msm/msm_drv.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
index ad35a5d94053..50e5a6ff6487 100644
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@ -1173,15 +1173,6 @@ static const struct dev_pm_ops msm_pm_ops = {
* Componentized driver support:
*/
-/*
- * NOTE: duplication of the same code as exynos or imx (or probably any other).
- * so probably some room for some helpers
- */
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
/*
* Identify what components need to be added by parsing what remote-endpoints
* our MDP output ports are connected to. In the case of LVDS on MDP4, there
@@ -1239,7 +1230,7 @@ static int add_components_mdp(struct device *mdp_dev,
if (of_device_is_available(intf))
drm_of_component_match_add(master_dev, matchptr,
- compare_of, intf);
+ component_compare_of, intf);
of_node_put(intf);
}
@@ -1285,7 +1276,7 @@ static int add_display_components(struct platform_device *pdev,
put_device(mdp_dev);
/* add the MDP component itself */
- drm_of_component_match_add(dev, matchptr, compare_of,
+ drm_of_component_match_add(dev, matchptr, component_compare_of,
mdp_dev->of_node);
break;
case KMS_MDP4:
@@ -1324,7 +1315,7 @@ static int add_gpu_components(struct device *dev,
return 0;
if (of_device_is_available(np))
- drm_of_component_match_add(dev, matchptr, compare_of, np);
+ drm_of_component_match_add(dev, matchptr, component_compare_of, np);
of_node_put(np);
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 09/23] drm/msm: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, Joerg Roedel, iommu,
James Wang, Yong Wu, Chun-Kuang Hu, Arnd Bergmann, linux-arm-msm,
Abhinav Kumar, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
Sean Paul, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, freedreno, Sebastian Reichel,
Tomasz Figa, Robin Murphy
Use the common compare helper from component.
Cc: Rob Clark <robdclark@gmail.com>
Cc: Sean Paul <sean@poorly.run>
Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: freedreno@lists.freedesktop.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/msm/msm_drv.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
index ad35a5d94053..50e5a6ff6487 100644
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@ -1173,15 +1173,6 @@ static const struct dev_pm_ops msm_pm_ops = {
* Componentized driver support:
*/
-/*
- * NOTE: duplication of the same code as exynos or imx (or probably any other).
- * so probably some room for some helpers
- */
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
/*
* Identify what components need to be added by parsing what remote-endpoints
* our MDP output ports are connected to. In the case of LVDS on MDP4, there
@@ -1239,7 +1230,7 @@ static int add_components_mdp(struct device *mdp_dev,
if (of_device_is_available(intf))
drm_of_component_match_add(master_dev, matchptr,
- compare_of, intf);
+ component_compare_of, intf);
of_node_put(intf);
}
@@ -1285,7 +1276,7 @@ static int add_display_components(struct platform_device *pdev,
put_device(mdp_dev);
/* add the MDP component itself */
- drm_of_component_match_add(dev, matchptr, compare_of,
+ drm_of_component_match_add(dev, matchptr, component_compare_of,
mdp_dev->of_node);
break;
case KMS_MDP4:
@@ -1324,7 +1315,7 @@ static int add_gpu_components(struct device *dev,
return 0;
if (of_device_is_available(np))
- drm_of_component_match_add(dev, matchptr, compare_of, np);
+ drm_of_component_match_add(dev, matchptr, component_compare_of, np);
of_node_put(np);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 09/23] drm/msm: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Sean Paul, Abhinav Kumar, linux-arm-msm, freedreno
Use the common compare helper from component.
Cc: Rob Clark <robdclark@gmail.com>
Cc: Sean Paul <sean@poorly.run>
Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: freedreno@lists.freedesktop.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/msm/msm_drv.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
index ad35a5d94053..50e5a6ff6487 100644
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@ -1173,15 +1173,6 @@ static const struct dev_pm_ops msm_pm_ops = {
* Componentized driver support:
*/
-/*
- * NOTE: duplication of the same code as exynos or imx (or probably any other).
- * so probably some room for some helpers
- */
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
/*
* Identify what components need to be added by parsing what remote-endpoints
* our MDP output ports are connected to. In the case of LVDS on MDP4, there
@@ -1239,7 +1230,7 @@ static int add_components_mdp(struct device *mdp_dev,
if (of_device_is_available(intf))
drm_of_component_match_add(master_dev, matchptr,
- compare_of, intf);
+ component_compare_of, intf);
of_node_put(intf);
}
@@ -1285,7 +1276,7 @@ static int add_display_components(struct platform_device *pdev,
put_device(mdp_dev);
/* add the MDP component itself */
- drm_of_component_match_add(dev, matchptr, compare_of,
+ drm_of_component_match_add(dev, matchptr, component_compare_of,
mdp_dev->of_node);
break;
case KMS_MDP4:
@@ -1324,7 +1315,7 @@ static int add_gpu_components(struct device *dev,
return 0;
if (of_device_is_available(np))
- drm_of_component_match_add(dev, matchptr, compare_of, np);
+ drm_of_component_match_add(dev, matchptr, component_compare_of, np);
of_node_put(np);
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 09/23] drm/msm: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Sean Paul, Abhinav Kumar, linux-arm-msm, freedreno
Use the common compare helper from component.
Cc: Rob Clark <robdclark@gmail.com>
Cc: Sean Paul <sean@poorly.run>
Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: freedreno@lists.freedesktop.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/msm/msm_drv.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
index ad35a5d94053..50e5a6ff6487 100644
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@ -1173,15 +1173,6 @@ static const struct dev_pm_ops msm_pm_ops = {
* Componentized driver support:
*/
-/*
- * NOTE: duplication of the same code as exynos or imx (or probably any other).
- * so probably some room for some helpers
- */
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
/*
* Identify what components need to be added by parsing what remote-endpoints
* our MDP output ports are connected to. In the case of LVDS on MDP4, there
@@ -1239,7 +1230,7 @@ static int add_components_mdp(struct device *mdp_dev,
if (of_device_is_available(intf))
drm_of_component_match_add(master_dev, matchptr,
- compare_of, intf);
+ component_compare_of, intf);
of_node_put(intf);
}
@@ -1285,7 +1276,7 @@ static int add_display_components(struct platform_device *pdev,
put_device(mdp_dev);
/* add the MDP component itself */
- drm_of_component_match_add(dev, matchptr, compare_of,
+ drm_of_component_match_add(dev, matchptr, component_compare_of,
mdp_dev->of_node);
break;
case KMS_MDP4:
@@ -1324,7 +1315,7 @@ static int add_gpu_components(struct device *dev,
return 0;
if (of_device_is_available(np))
- drm_of_component_match_add(dev, matchptr, compare_of, np);
+ drm_of_component_match_add(dev, matchptr, component_compare_of, np);
of_node_put(np);
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 10/23] drm/sprd: Make use of the helper component_compare_of
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Orson Zhai, Baolin Wang, Chunyan Zhang, Kevin Tang,
Maarten Lankhorst, Maxime Ripard
Use the common compare helper from component.
Cc: Orson Zhai <orsonzhai@gmail.com>
Cc: Baolin Wang <baolin.wang7@gmail.com>
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Kevin Tang <kevin3.tang@gmail.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sprd/sprd_drm.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/sprd/sprd_drm.c b/drivers/gpu/drm/sprd/sprd_drm.c
index a077e2d4d721..5d534a8db913 100644
--- a/drivers/gpu/drm/sprd/sprd_drm.c
+++ b/drivers/gpu/drm/sprd/sprd_drm.c
@@ -134,14 +134,9 @@ static const struct component_master_ops drm_component_ops = {
.unbind = sprd_drm_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int sprd_drm_probe(struct platform_device *pdev)
{
- return drm_of_component_probe(&pdev->dev, compare_of, &drm_component_ops);
+ return drm_of_component_probe(&pdev->dev, component_compare_of, &drm_component_ops);
}
static int sprd_drm_remove(struct platform_device *pdev)
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 10/23] drm/sprd: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Kevin Tang, Krzysztof Kozlowski, Chunyan Zhang,
James Wang, Orson Zhai, Chun-Kuang Hu, Arnd Bergmann,
Maarten Lankhorst, linux-mediatek, Maxime Ripard, Hsin-Yi Wang,
Matthias Brugger, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, Sebastian Reichel, iommu,
Baolin Wang, Robin Murphy
Use the common compare helper from component.
Cc: Orson Zhai <orsonzhai@gmail.com>
Cc: Baolin Wang <baolin.wang7@gmail.com>
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Kevin Tang <kevin3.tang@gmail.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sprd/sprd_drm.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/sprd/sprd_drm.c b/drivers/gpu/drm/sprd/sprd_drm.c
index a077e2d4d721..5d534a8db913 100644
--- a/drivers/gpu/drm/sprd/sprd_drm.c
+++ b/drivers/gpu/drm/sprd/sprd_drm.c
@@ -134,14 +134,9 @@ static const struct component_master_ops drm_component_ops = {
.unbind = sprd_drm_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int sprd_drm_probe(struct platform_device *pdev)
{
- return drm_of_component_probe(&pdev->dev, compare_of, &drm_component_ops);
+ return drm_of_component_probe(&pdev->dev, component_compare_of, &drm_component_ops);
}
static int sprd_drm_remove(struct platform_device *pdev)
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 10/23] drm/sprd: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Kevin Tang, Krzysztof Kozlowski, Chunyan Zhang,
Joerg Roedel, iommu, James Wang, Yong Wu, Orson Zhai,
Chun-Kuang Hu, Arnd Bergmann, linux-mediatek, Maxime Ripard,
Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, Tomasz Figa, Baolin Wang, Robin Murphy
Use the common compare helper from component.
Cc: Orson Zhai <orsonzhai@gmail.com>
Cc: Baolin Wang <baolin.wang7@gmail.com>
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Kevin Tang <kevin3.tang@gmail.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sprd/sprd_drm.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/sprd/sprd_drm.c b/drivers/gpu/drm/sprd/sprd_drm.c
index a077e2d4d721..5d534a8db913 100644
--- a/drivers/gpu/drm/sprd/sprd_drm.c
+++ b/drivers/gpu/drm/sprd/sprd_drm.c
@@ -134,14 +134,9 @@ static const struct component_master_ops drm_component_ops = {
.unbind = sprd_drm_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int sprd_drm_probe(struct platform_device *pdev)
{
- return drm_of_component_probe(&pdev->dev, compare_of, &drm_component_ops);
+ return drm_of_component_probe(&pdev->dev, component_compare_of, &drm_component_ops);
}
static int sprd_drm_remove(struct platform_device *pdev)
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 10/23] drm/sprd: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Orson Zhai, Baolin Wang, Chunyan Zhang, Kevin Tang,
Maarten Lankhorst, Maxime Ripard
Use the common compare helper from component.
Cc: Orson Zhai <orsonzhai@gmail.com>
Cc: Baolin Wang <baolin.wang7@gmail.com>
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Kevin Tang <kevin3.tang@gmail.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sprd/sprd_drm.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/sprd/sprd_drm.c b/drivers/gpu/drm/sprd/sprd_drm.c
index a077e2d4d721..5d534a8db913 100644
--- a/drivers/gpu/drm/sprd/sprd_drm.c
+++ b/drivers/gpu/drm/sprd/sprd_drm.c
@@ -134,14 +134,9 @@ static const struct component_master_ops drm_component_ops = {
.unbind = sprd_drm_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int sprd_drm_probe(struct platform_device *pdev)
{
- return drm_of_component_probe(&pdev->dev, compare_of, &drm_component_ops);
+ return drm_of_component_probe(&pdev->dev, component_compare_of, &drm_component_ops);
}
static int sprd_drm_remove(struct platform_device *pdev)
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 10/23] drm/sprd: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Orson Zhai, Baolin Wang, Chunyan Zhang, Kevin Tang,
Maarten Lankhorst, Maxime Ripard
Use the common compare helper from component.
Cc: Orson Zhai <orsonzhai@gmail.com>
Cc: Baolin Wang <baolin.wang7@gmail.com>
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Kevin Tang <kevin3.tang@gmail.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sprd/sprd_drm.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/sprd/sprd_drm.c b/drivers/gpu/drm/sprd/sprd_drm.c
index a077e2d4d721..5d534a8db913 100644
--- a/drivers/gpu/drm/sprd/sprd_drm.c
+++ b/drivers/gpu/drm/sprd/sprd_drm.c
@@ -134,14 +134,9 @@ static const struct component_master_ops drm_component_ops = {
.unbind = sprd_drm_unbind,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int sprd_drm_probe(struct platform_device *pdev)
{
- return drm_of_component_probe(&pdev->dev, compare_of, &drm_component_ops);
+ return drm_of_component_probe(&pdev->dev, component_compare_of, &drm_component_ops);
}
static int sprd_drm_remove(struct platform_device *pdev)
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 11/23] drm/sti: Make use of the helper component_compare_of
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Benjamin Gaignard
Use the common compare helper from component.
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sti/sti_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/sti/sti_drv.c b/drivers/gpu/drm/sti/sti_drv.c
index c7efb43b83ee..890c3103f6bd 100644
--- a/drivers/gpu/drm/sti/sti_drv.c
+++ b/drivers/gpu/drm/sti/sti_drv.c
@@ -144,11 +144,6 @@ static const struct drm_driver sti_driver = {
.minor = DRIVER_MINOR,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int sti_init(struct drm_device *ddev)
{
struct sti_private *private;
@@ -244,7 +239,7 @@ static int sti_platform_probe(struct platform_device *pdev)
child_np = of_get_next_available_child(node, NULL);
while (child_np) {
- drm_of_component_match_add(dev, &match, compare_of,
+ drm_of_component_match_add(dev, &match, component_compare_of,
child_np);
child_np = of_get_next_available_child(node, child_np);
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 11/23] drm/sti: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Benjamin Gaignard, Will Deacon, Krzysztof Kozlowski, James Wang,
Chun-Kuang Hu, Arnd Bergmann, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, Sebastian Reichel, iommu,
Robin Murphy
Use the common compare helper from component.
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sti/sti_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/sti/sti_drv.c b/drivers/gpu/drm/sti/sti_drv.c
index c7efb43b83ee..890c3103f6bd 100644
--- a/drivers/gpu/drm/sti/sti_drv.c
+++ b/drivers/gpu/drm/sti/sti_drv.c
@@ -144,11 +144,6 @@ static const struct drm_driver sti_driver = {
.minor = DRIVER_MINOR,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int sti_init(struct drm_device *ddev)
{
struct sti_private *private;
@@ -244,7 +239,7 @@ static int sti_platform_probe(struct platform_device *pdev)
child_np = of_get_next_available_child(node, NULL);
while (child_np) {
- drm_of_component_match_add(dev, &match, compare_of,
+ drm_of_component_match_add(dev, &match, component_compare_of,
child_np);
child_np = of_get_next_available_child(node, child_np);
}
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 11/23] drm/sti: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Benjamin Gaignard, Will Deacon, Krzysztof Kozlowski,
Joerg Roedel, iommu, James Wang, Yong Wu, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-arm-kernel, AngeloGioacchino Del Regno, srv_heupstream,
Stephen Boyd, Sebastian Reichel, Tomasz Figa, Robin Murphy
Use the common compare helper from component.
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sti/sti_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/sti/sti_drv.c b/drivers/gpu/drm/sti/sti_drv.c
index c7efb43b83ee..890c3103f6bd 100644
--- a/drivers/gpu/drm/sti/sti_drv.c
+++ b/drivers/gpu/drm/sti/sti_drv.c
@@ -144,11 +144,6 @@ static const struct drm_driver sti_driver = {
.minor = DRIVER_MINOR,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int sti_init(struct drm_device *ddev)
{
struct sti_private *private;
@@ -244,7 +239,7 @@ static int sti_platform_probe(struct platform_device *pdev)
child_np = of_get_next_available_child(node, NULL);
while (child_np) {
- drm_of_component_match_add(dev, &match, compare_of,
+ drm_of_component_match_add(dev, &match, component_compare_of,
child_np);
child_np = of_get_next_available_child(node, child_np);
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 11/23] drm/sti: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Benjamin Gaignard
Use the common compare helper from component.
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sti/sti_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/sti/sti_drv.c b/drivers/gpu/drm/sti/sti_drv.c
index c7efb43b83ee..890c3103f6bd 100644
--- a/drivers/gpu/drm/sti/sti_drv.c
+++ b/drivers/gpu/drm/sti/sti_drv.c
@@ -144,11 +144,6 @@ static const struct drm_driver sti_driver = {
.minor = DRIVER_MINOR,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int sti_init(struct drm_device *ddev)
{
struct sti_private *private;
@@ -244,7 +239,7 @@ static int sti_platform_probe(struct platform_device *pdev)
child_np = of_get_next_available_child(node, NULL);
while (child_np) {
- drm_of_component_match_add(dev, &match, compare_of,
+ drm_of_component_match_add(dev, &match, component_compare_of,
child_np);
child_np = of_get_next_available_child(node, child_np);
}
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 11/23] drm/sti: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Benjamin Gaignard
Use the common compare helper from component.
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sti/sti_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/sti/sti_drv.c b/drivers/gpu/drm/sti/sti_drv.c
index c7efb43b83ee..890c3103f6bd 100644
--- a/drivers/gpu/drm/sti/sti_drv.c
+++ b/drivers/gpu/drm/sti/sti_drv.c
@@ -144,11 +144,6 @@ static const struct drm_driver sti_driver = {
.minor = DRIVER_MINOR,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int sti_init(struct drm_device *ddev)
{
struct sti_private *private;
@@ -244,7 +239,7 @@ static int sti_platform_probe(struct platform_device *pdev)
child_np = of_get_next_available_child(node, NULL);
while (child_np) {
- drm_of_component_match_add(dev, &match, compare_of,
+ drm_of_component_match_add(dev, &match, component_compare_of,
child_np);
child_np = of_get_next_available_child(node, child_np);
}
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 12/23] drm/sun4i: Make use of the helper component_compare_of
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec, linux-sunxi
Use the common compare helper from component.
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Jernej Skrabec <jernej.skrabec@gmail.com>
Cc: linux-sunxi@lists.linux.dev
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sun4i/sun4i_drv.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c
index b630614b3d72..a3e3e51c600d 100644
--- a/drivers/gpu/drm/sun4i/sun4i_drv.c
+++ b/drivers/gpu/drm/sun4i/sun4i_drv.c
@@ -201,15 +201,6 @@ static bool sun4i_drv_node_is_tcon_top(struct device_node *node)
!!of_match_node(sun8i_tcon_top_of_table, node);
}
-static int compare_of(struct device *dev, void *data)
-{
- DRM_DEBUG_DRIVER("Comparing of node %pOF with %pOF\n",
- dev->of_node,
- data);
-
- return dev->of_node == data;
-}
-
/*
* The encoder drivers use drm_of_find_possible_crtcs to get upstream
* crtcs from the device tree using of_graph. For the results to be
@@ -329,7 +320,7 @@ static int sun4i_drv_add_endpoints(struct device *dev,
of_device_is_available(node))) {
/* Add current component */
DRM_DEBUG_DRIVER("Adding component %pOF\n", node);
- drm_of_component_match_add(dev, match, compare_of, node);
+ drm_of_component_match_add(dev, match, component_compare_of, node);
count++;
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 12/23] drm/sun4i: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, Jernej Skrabec, Chen-Yu Tsai,
James Wang, linux-sunxi, Chun-Kuang Hu, Arnd Bergmann,
Maxime Ripard, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-arm-kernel, AngeloGioacchino Del Regno, srv_heupstream,
Stephen Boyd, Sebastian Reichel, iommu, Robin Murphy
Use the common compare helper from component.
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Jernej Skrabec <jernej.skrabec@gmail.com>
Cc: linux-sunxi@lists.linux.dev
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sun4i/sun4i_drv.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c
index b630614b3d72..a3e3e51c600d 100644
--- a/drivers/gpu/drm/sun4i/sun4i_drv.c
+++ b/drivers/gpu/drm/sun4i/sun4i_drv.c
@@ -201,15 +201,6 @@ static bool sun4i_drv_node_is_tcon_top(struct device_node *node)
!!of_match_node(sun8i_tcon_top_of_table, node);
}
-static int compare_of(struct device *dev, void *data)
-{
- DRM_DEBUG_DRIVER("Comparing of node %pOF with %pOF\n",
- dev->of_node,
- data);
-
- return dev->of_node == data;
-}
-
/*
* The encoder drivers use drm_of_find_possible_crtcs to get upstream
* crtcs from the device tree using of_graph. For the results to be
@@ -329,7 +320,7 @@ static int sun4i_drv_add_endpoints(struct device *dev,
of_device_is_available(node))) {
/* Add current component */
DRM_DEBUG_DRIVER("Adding component %pOF\n", node);
- drm_of_component_match_add(dev, match, compare_of, node);
+ drm_of_component_match_add(dev, match, component_compare_of, node);
count++;
}
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 12/23] drm/sun4i: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, Joerg Roedel, iommu,
Jernej Skrabec, Chen-Yu Tsai, James Wang, Yong Wu, linux-sunxi,
Chun-Kuang Hu, Arnd Bergmann, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, Sebastian Reichel, Tomasz Figa,
Robin Murphy
Use the common compare helper from component.
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Jernej Skrabec <jernej.skrabec@gmail.com>
Cc: linux-sunxi@lists.linux.dev
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sun4i/sun4i_drv.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c
index b630614b3d72..a3e3e51c600d 100644
--- a/drivers/gpu/drm/sun4i/sun4i_drv.c
+++ b/drivers/gpu/drm/sun4i/sun4i_drv.c
@@ -201,15 +201,6 @@ static bool sun4i_drv_node_is_tcon_top(struct device_node *node)
!!of_match_node(sun8i_tcon_top_of_table, node);
}
-static int compare_of(struct device *dev, void *data)
-{
- DRM_DEBUG_DRIVER("Comparing of node %pOF with %pOF\n",
- dev->of_node,
- data);
-
- return dev->of_node == data;
-}
-
/*
* The encoder drivers use drm_of_find_possible_crtcs to get upstream
* crtcs from the device tree using of_graph. For the results to be
@@ -329,7 +320,7 @@ static int sun4i_drv_add_endpoints(struct device *dev,
of_device_is_available(node))) {
/* Add current component */
DRM_DEBUG_DRIVER("Adding component %pOF\n", node);
- drm_of_component_match_add(dev, match, compare_of, node);
+ drm_of_component_match_add(dev, match, component_compare_of, node);
count++;
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 12/23] drm/sun4i: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec, linux-sunxi
Use the common compare helper from component.
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Jernej Skrabec <jernej.skrabec@gmail.com>
Cc: linux-sunxi@lists.linux.dev
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sun4i/sun4i_drv.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c
index b630614b3d72..a3e3e51c600d 100644
--- a/drivers/gpu/drm/sun4i/sun4i_drv.c
+++ b/drivers/gpu/drm/sun4i/sun4i_drv.c
@@ -201,15 +201,6 @@ static bool sun4i_drv_node_is_tcon_top(struct device_node *node)
!!of_match_node(sun8i_tcon_top_of_table, node);
}
-static int compare_of(struct device *dev, void *data)
-{
- DRM_DEBUG_DRIVER("Comparing of node %pOF with %pOF\n",
- dev->of_node,
- data);
-
- return dev->of_node == data;
-}
-
/*
* The encoder drivers use drm_of_find_possible_crtcs to get upstream
* crtcs from the device tree using of_graph. For the results to be
@@ -329,7 +320,7 @@ static int sun4i_drv_add_endpoints(struct device *dev,
of_device_is_available(node))) {
/* Add current component */
DRM_DEBUG_DRIVER("Adding component %pOF\n", node);
- drm_of_component_match_add(dev, match, compare_of, node);
+ drm_of_component_match_add(dev, match, component_compare_of, node);
count++;
}
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 12/23] drm/sun4i: Make use of the helper component_compare_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec, linux-sunxi
Use the common compare helper from component.
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Jernej Skrabec <jernej.skrabec@gmail.com>
Cc: linux-sunxi@lists.linux.dev
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/sun4i/sun4i_drv.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c
index b630614b3d72..a3e3e51c600d 100644
--- a/drivers/gpu/drm/sun4i/sun4i_drv.c
+++ b/drivers/gpu/drm/sun4i/sun4i_drv.c
@@ -201,15 +201,6 @@ static bool sun4i_drv_node_is_tcon_top(struct device_node *node)
!!of_match_node(sun8i_tcon_top_of_table, node);
}
-static int compare_of(struct device *dev, void *data)
-{
- DRM_DEBUG_DRIVER("Comparing of node %pOF with %pOF\n",
- dev->of_node,
- data);
-
- return dev->of_node == data;
-}
-
/*
* The encoder drivers use drm_of_find_possible_crtcs to get upstream
* crtcs from the device tree using of_graph. For the results to be
@@ -329,7 +320,7 @@ static int sun4i_drv_add_endpoints(struct device *dev,
of_device_is_available(node))) {
/* Add current component */
DRM_DEBUG_DRIVER("Adding component %pOF\n", node);
- drm_of_component_match_add(dev, match, compare_of, node);
+ drm_of_component_match_add(dev, match, component_compare_of, node);
count++;
}
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev
2022-02-14 6:07 ` Yong Wu via iommu
` (3 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Sandy Huang, Heiko St¨¹bner, linux-rockchip
Use the common compare helper from component.
Cc: Sandy Huang <hjc@rock-chips.com>
Cc: "Heiko St¨¹bner" <heiko@sntech.de>
Cc: linux-rockchip@lists.infradead.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
index bec207de4544..3c2f2d6ecc36 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
@@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
return false;
}
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == (struct device *)data;
-}
-
static void rockchip_drm_match_remove(struct device *dev)
{
struct device_link *link;
@@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
break;
device_link_add(dev, d, DL_FLAG_STATELESS);
- component_match_add(dev, &match, compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
} while (true);
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Heiko St¨¹bner, Liviu Dudau, linux-kernel,
Srinivas Kandagatla, Laurent Pinchart, Will Deacon,
Krzysztof Kozlowski, linux-rockchip, Sandy Huang, James Wang,
Chun-Kuang Hu, Arnd Bergmann, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, Sebastian Reichel, iommu,
Robin Murphy
Use the common compare helper from component.
Cc: Sandy Huang <hjc@rock-chips.com>
Cc: "Heiko St¨¹bner" <heiko@sntech.de>
Cc: linux-rockchip@lists.infradead.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
index bec207de4544..3c2f2d6ecc36 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
@@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
return false;
}
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == (struct device *)data;
-}
-
static void rockchip_drm_match_remove(struct device *dev)
{
struct device_link *link;
@@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
break;
device_link_add(dev, d, DL_FLAG_STATELESS);
- component_match_add(dev, &match, compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
} while (true);
}
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, Joerg Roedel, iommu,
linux-rockchip, Sandy Huang, James Wang, Yong Wu, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-arm-kernel, AngeloGioacchino Del Regno, srv_heupstream,
Stephen Boyd, Sebastian Reichel, Tomasz Figa, Robin Murphy
Use the common compare helper from component.
Cc: Sandy Huang <hjc@rock-chips.com>
Cc: "Heiko St¨¹bner" <heiko@sntech.de>
Cc: linux-rockchip@lists.infradead.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
index bec207de4544..3c2f2d6ecc36 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
@@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
return false;
}
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == (struct device *)data;
-}
-
static void rockchip_drm_match_remove(struct device *dev)
{
struct device_link *link;
@@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
break;
device_link_add(dev, d, DL_FLAG_STATELESS);
- component_match_add(dev, &match, compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
} while (true);
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Sandy Huang, Heiko St¨¹bner, linux-rockchip
Use the common compare helper from component.
Cc: Sandy Huang <hjc@rock-chips.com>
Cc: "Heiko St¨¹bner" <heiko@sntech.de>
Cc: linux-rockchip@lists.infradead.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
index bec207de4544..3c2f2d6ecc36 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
@@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
return false;
}
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == (struct device *)data;
-}
-
static void rockchip_drm_match_remove(struct device *dev)
{
struct device_link *link;
@@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
break;
device_link_add(dev, d, DL_FLAG_STATELESS);
- component_match_add(dev, &match, compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
} while (true);
}
--
2.18.0
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Sandy Huang, Heiko St¨¹bner, linux-rockchip
Use the common compare helper from component.
Cc: Sandy Huang <hjc@rock-chips.com>
Cc: "Heiko St¨¹bner" <heiko@sntech.de>
Cc: linux-rockchip@lists.infradead.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
index bec207de4544..3c2f2d6ecc36 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
@@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
return false;
}
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == (struct device *)data;
-}
-
static void rockchip_drm_match_remove(struct device *dev)
{
struct device_link *link;
@@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
break;
device_link_add(dev, d, DL_FLAG_STATELESS);
- component_match_add(dev, &match, compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
} while (true);
}
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Sandy Huang, Heiko St¨¹bner, linux-rockchip
Use the common compare helper from component.
Cc: Sandy Huang <hjc@rock-chips.com>
Cc: "Heiko St¨¹bner" <heiko@sntech.de>
Cc: linux-rockchip@lists.infradead.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
index bec207de4544..3c2f2d6ecc36 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
@@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
return false;
}
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == (struct device *)data;
-}
-
static void rockchip_drm_match_remove(struct device *dev)
{
struct device_link *link;
@@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
break;
device_link_add(dev, d, DL_FLAG_STATELESS);
- component_match_add(dev, &match, compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
} while (true);
}
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 14/23] drm/exynos: Make use of the helper component_compare_dev
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Inki Dae, Joonyoung Shim, Seung-Woo Kim, Kyungmin Park,
linux-samsung-soc
Use the common compare helper from component.
Cc: Inki Dae <inki.dae@samsung.com>
Cc: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: Seung-Woo Kim <sw0312.kim@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Cc: linux-samsung-soc@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/exynos/exynos_drm_drv.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index 9743b6b17447..d8b49a3c9b0f 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -212,11 +212,6 @@ static struct exynos_drm_driver_info exynos_drm_drivers[] = {
}
};
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == (struct device *)data;
-}
-
static struct component_match *exynos_drm_match_add(struct device *dev)
{
struct component_match *match = NULL;
@@ -234,8 +229,7 @@ static struct component_match *exynos_drm_match_add(struct device *dev)
if (!(info->flags & DRM_FIMC_DEVICE) ||
exynos_drm_check_fimc_device(d) == 0)
- component_match_add(dev, &match,
- compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 14/23] drm/exynos: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, linux-samsung-soc, Joonyoung Shim,
Krzysztof Kozlowski, James Wang, Kyungmin Park, Chun-Kuang Hu,
Arnd Bergmann, Inki Dae, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, Seung-Woo Kim, Sebastian Reichel,
iommu, Robin Murphy
Use the common compare helper from component.
Cc: Inki Dae <inki.dae@samsung.com>
Cc: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: Seung-Woo Kim <sw0312.kim@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Cc: linux-samsung-soc@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/exynos/exynos_drm_drv.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index 9743b6b17447..d8b49a3c9b0f 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -212,11 +212,6 @@ static struct exynos_drm_driver_info exynos_drm_drivers[] = {
}
};
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == (struct device *)data;
-}
-
static struct component_match *exynos_drm_match_add(struct device *dev)
{
struct component_match *match = NULL;
@@ -234,8 +229,7 @@ static struct component_match *exynos_drm_match_add(struct device *dev)
if (!(info->flags & DRM_FIMC_DEVICE) ||
exynos_drm_check_fimc_device(d) == 0)
- component_match_add(dev, &match,
- compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 14/23] drm/exynos: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, linux-samsung-soc, Joonyoung Shim,
Krzysztof Kozlowski, Joerg Roedel, iommu, James Wang, Yong Wu,
Kyungmin Park, Chun-Kuang Hu, Arnd Bergmann, linux-mediatek,
Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Seung-Woo Kim, Sebastian Reichel, Tomasz Figa, Robin Murphy
Use the common compare helper from component.
Cc: Inki Dae <inki.dae@samsung.com>
Cc: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: Seung-Woo Kim <sw0312.kim@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Cc: linux-samsung-soc@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/exynos/exynos_drm_drv.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index 9743b6b17447..d8b49a3c9b0f 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -212,11 +212,6 @@ static struct exynos_drm_driver_info exynos_drm_drivers[] = {
}
};
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == (struct device *)data;
-}
-
static struct component_match *exynos_drm_match_add(struct device *dev)
{
struct component_match *match = NULL;
@@ -234,8 +229,7 @@ static struct component_match *exynos_drm_match_add(struct device *dev)
if (!(info->flags & DRM_FIMC_DEVICE) ||
exynos_drm_check_fimc_device(d) == 0)
- component_match_add(dev, &match,
- compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 14/23] drm/exynos: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Inki Dae, Joonyoung Shim, Seung-Woo Kim, Kyungmin Park,
linux-samsung-soc
Use the common compare helper from component.
Cc: Inki Dae <inki.dae@samsung.com>
Cc: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: Seung-Woo Kim <sw0312.kim@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Cc: linux-samsung-soc@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/exynos/exynos_drm_drv.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index 9743b6b17447..d8b49a3c9b0f 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -212,11 +212,6 @@ static struct exynos_drm_driver_info exynos_drm_drivers[] = {
}
};
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == (struct device *)data;
-}
-
static struct component_match *exynos_drm_match_add(struct device *dev)
{
struct component_match *match = NULL;
@@ -234,8 +229,7 @@ static struct component_match *exynos_drm_match_add(struct device *dev)
if (!(info->flags & DRM_FIMC_DEVICE) ||
exynos_drm_check_fimc_device(d) == 0)
- component_match_add(dev, &match,
- compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 14/23] drm/exynos: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Inki Dae, Joonyoung Shim, Seung-Woo Kim, Kyungmin Park,
linux-samsung-soc
Use the common compare helper from component.
Cc: Inki Dae <inki.dae@samsung.com>
Cc: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: Seung-Woo Kim <sw0312.kim@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Cc: linux-samsung-soc@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/exynos/exynos_drm_drv.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index 9743b6b17447..d8b49a3c9b0f 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -212,11 +212,6 @@ static struct exynos_drm_driver_info exynos_drm_drivers[] = {
}
};
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == (struct device *)data;
-}
-
static struct component_match *exynos_drm_match_add(struct device *dev)
{
struct component_match *match = NULL;
@@ -234,8 +229,7 @@ static struct component_match *exynos_drm_match_add(struct device *dev)
if (!(info->flags & DRM_FIMC_DEVICE) ||
exynos_drm_check_fimc_device(d) == 0)
- component_match_add(dev, &match,
- compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 15/23] drm/mcde: Make use of the helper component_compare_dev
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Linus Walleij
Use the common compare helper from component.
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/mcde/mcde_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/mcde/mcde_drv.c b/drivers/gpu/drm/mcde/mcde_drv.c
index 5b5afc6aaf8e..a17bfbb152a2 100644
--- a/drivers/gpu/drm/mcde/mcde_drv.c
+++ b/drivers/gpu/drm/mcde/mcde_drv.c
@@ -265,11 +265,6 @@ static struct platform_driver *const mcde_component_drivers[] = {
&mcde_dsi_driver,
};
-static int mcde_compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static int mcde_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -399,7 +394,7 @@ static int mcde_probe(struct platform_device *pdev)
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, &match, mcde_compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 15/23] drm/mcde: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Linus Walleij, Liviu Dudau, linux-kernel, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Krzysztof Kozlowski, James Wang,
Chun-Kuang Hu, Arnd Bergmann, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, Sebastian Reichel, iommu,
Robin Murphy
Use the common compare helper from component.
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/mcde/mcde_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/mcde/mcde_drv.c b/drivers/gpu/drm/mcde/mcde_drv.c
index 5b5afc6aaf8e..a17bfbb152a2 100644
--- a/drivers/gpu/drm/mcde/mcde_drv.c
+++ b/drivers/gpu/drm/mcde/mcde_drv.c
@@ -265,11 +265,6 @@ static struct platform_driver *const mcde_component_drivers[] = {
&mcde_dsi_driver,
};
-static int mcde_compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static int mcde_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -399,7 +394,7 @@ static int mcde_probe(struct platform_device *pdev)
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, &match, mcde_compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 15/23] drm/mcde: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, Joerg Roedel, iommu,
James Wang, Yong Wu, Chun-Kuang Hu, Arnd Bergmann,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, Tomasz Figa, Robin Murphy
Use the common compare helper from component.
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/mcde/mcde_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/mcde/mcde_drv.c b/drivers/gpu/drm/mcde/mcde_drv.c
index 5b5afc6aaf8e..a17bfbb152a2 100644
--- a/drivers/gpu/drm/mcde/mcde_drv.c
+++ b/drivers/gpu/drm/mcde/mcde_drv.c
@@ -265,11 +265,6 @@ static struct platform_driver *const mcde_component_drivers[] = {
&mcde_dsi_driver,
};
-static int mcde_compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static int mcde_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -399,7 +394,7 @@ static int mcde_probe(struct platform_device *pdev)
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, &match, mcde_compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 15/23] drm/mcde: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Linus Walleij
Use the common compare helper from component.
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/mcde/mcde_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/mcde/mcde_drv.c b/drivers/gpu/drm/mcde/mcde_drv.c
index 5b5afc6aaf8e..a17bfbb152a2 100644
--- a/drivers/gpu/drm/mcde/mcde_drv.c
+++ b/drivers/gpu/drm/mcde/mcde_drv.c
@@ -265,11 +265,6 @@ static struct platform_driver *const mcde_component_drivers[] = {
&mcde_dsi_driver,
};
-static int mcde_compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static int mcde_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -399,7 +394,7 @@ static int mcde_probe(struct platform_device *pdev)
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, &match, mcde_compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 15/23] drm/mcde: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Linus Walleij
Use the common compare helper from component.
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/mcde/mcde_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/mcde/mcde_drv.c b/drivers/gpu/drm/mcde/mcde_drv.c
index 5b5afc6aaf8e..a17bfbb152a2 100644
--- a/drivers/gpu/drm/mcde/mcde_drv.c
+++ b/drivers/gpu/drm/mcde/mcde_drv.c
@@ -265,11 +265,6 @@ static struct platform_driver *const mcde_component_drivers[] = {
&mcde_dsi_driver,
};
-static int mcde_compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static int mcde_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -399,7 +394,7 @@ static int mcde_probe(struct platform_device *pdev)
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, &match, mcde_compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 16/23] drm/omap: dss: Make use of the helper component_compare_dev
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, James Wang, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-arm-kernel, AngeloGioacchino Del Regno, Tomi Valkeinen,
srv_heupstream, Stephen Boyd, Sebastian Reichel, iommu,
Cai Huoqing, Robin Murphy
Use the common compare helper from component.
Cc: Tomi Valkeinen <tomba@kernel.org>
Cc: Cai Huoqing <caihuoqing@baidu.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/omapdrm/dss/dss.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c
index 69b3e15b9356..0399f3390a0a 100644
--- a/drivers/gpu/drm/omapdrm/dss/dss.c
+++ b/drivers/gpu/drm/omapdrm/dss/dss.c
@@ -1344,12 +1344,6 @@ static const struct component_master_ops dss_component_ops = {
.unbind = dss_unbind,
};
-static int dss_component_compare(struct device *dev, void *data)
-{
- struct device *child = data;
- return dev == child;
-}
-
struct dss_component_match_data {
struct device *dev;
struct component_match **match;
@@ -1379,7 +1373,7 @@ static int dss_add_child_component(struct device *dev, void *data)
return device_for_each_child(dev, cmatch,
dss_add_child_component);
- component_match_add(cmatch->dev, match, dss_component_compare, dev);
+ component_match_add(cmatch->dev, match, component_compare_dev, dev);
return 0;
}
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 16/23] drm/omap: dss: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, Joerg Roedel, iommu,
James Wang, Yong Wu, Chun-Kuang Hu, Arnd Bergmann,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, Tomi Valkeinen, srv_heupstream,
Stephen Boyd, Sebastian Reichel, Tomasz Figa, Cai Huoqing,
Robin Murphy
Use the common compare helper from component.
Cc: Tomi Valkeinen <tomba@kernel.org>
Cc: Cai Huoqing <caihuoqing@baidu.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/omapdrm/dss/dss.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c
index 69b3e15b9356..0399f3390a0a 100644
--- a/drivers/gpu/drm/omapdrm/dss/dss.c
+++ b/drivers/gpu/drm/omapdrm/dss/dss.c
@@ -1344,12 +1344,6 @@ static const struct component_master_ops dss_component_ops = {
.unbind = dss_unbind,
};
-static int dss_component_compare(struct device *dev, void *data)
-{
- struct device *child = data;
- return dev == child;
-}
-
struct dss_component_match_data {
struct device *dev;
struct component_match **match;
@@ -1379,7 +1373,7 @@ static int dss_add_child_component(struct device *dev, void *data)
return device_for_each_child(dev, cmatch,
dss_add_child_component);
- component_match_add(cmatch->dev, match, dss_component_compare, dev);
+ component_match_add(cmatch->dev, match, component_compare_dev, dev);
return 0;
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 16/23] drm/omap: dss: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Tomi Valkeinen, Cai Huoqing
Use the common compare helper from component.
Cc: Tomi Valkeinen <tomba@kernel.org>
Cc: Cai Huoqing <caihuoqing@baidu.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/omapdrm/dss/dss.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c
index 69b3e15b9356..0399f3390a0a 100644
--- a/drivers/gpu/drm/omapdrm/dss/dss.c
+++ b/drivers/gpu/drm/omapdrm/dss/dss.c
@@ -1344,12 +1344,6 @@ static const struct component_master_ops dss_component_ops = {
.unbind = dss_unbind,
};
-static int dss_component_compare(struct device *dev, void *data)
-{
- struct device *child = data;
- return dev == child;
-}
-
struct dss_component_match_data {
struct device *dev;
struct component_match **match;
@@ -1379,7 +1373,7 @@ static int dss_add_child_component(struct device *dev, void *data)
return device_for_each_child(dev, cmatch,
dss_add_child_component);
- component_match_add(cmatch->dev, match, dss_component_compare, dev);
+ component_match_add(cmatch->dev, match, component_compare_dev, dev);
return 0;
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 16/23] drm/omap: dss: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Tomi Valkeinen, Cai Huoqing
Use the common compare helper from component.
Cc: Tomi Valkeinen <tomba@kernel.org>
Cc: Cai Huoqing <caihuoqing@baidu.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/omapdrm/dss/dss.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c
index 69b3e15b9356..0399f3390a0a 100644
--- a/drivers/gpu/drm/omapdrm/dss/dss.c
+++ b/drivers/gpu/drm/omapdrm/dss/dss.c
@@ -1344,12 +1344,6 @@ static const struct component_master_ops dss_component_ops = {
.unbind = dss_unbind,
};
-static int dss_component_compare(struct device *dev, void *data)
-{
- struct device *child = data;
- return dev == child;
-}
-
struct dss_component_match_data {
struct device *dev;
struct component_match **match;
@@ -1379,7 +1373,7 @@ static int dss_add_child_component(struct device *dev, void *data)
return device_for_each_child(dev, cmatch,
dss_add_child_component);
- component_match_add(cmatch->dev, match, dss_component_compare, dev);
+ component_match_add(cmatch->dev, match, component_compare_dev, dev);
return 0;
}
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 16/23] drm/omap: dss: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Tomi Valkeinen, Cai Huoqing
Use the common compare helper from component.
Cc: Tomi Valkeinen <tomba@kernel.org>
Cc: Cai Huoqing <caihuoqing@baidu.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/omapdrm/dss/dss.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c
index 69b3e15b9356..0399f3390a0a 100644
--- a/drivers/gpu/drm/omapdrm/dss/dss.c
+++ b/drivers/gpu/drm/omapdrm/dss/dss.c
@@ -1344,12 +1344,6 @@ static const struct component_master_ops dss_component_ops = {
.unbind = dss_unbind,
};
-static int dss_component_compare(struct device *dev, void *data)
-{
- struct device *child = data;
- return dev == child;
-}
-
struct dss_component_match_data {
struct device *dev;
struct component_match **match;
@@ -1379,7 +1373,7 @@ static int dss_add_child_component(struct device *dev, void *data)
return device_for_each_child(dev, cmatch,
dss_add_child_component);
- component_match_add(cmatch->dev, match, dss_component_compare, dev);
+ component_match_add(cmatch->dev, match, component_compare_dev, dev);
return 0;
}
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 17/23] drm/vc4: Make use of the helper component_compare_dev
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Emma Anholt, Liviu Dudau, linux-kernel, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Krzysztof Kozlowski, James Wang,
Chun-Kuang Hu, Arnd Bergmann, Maxime Ripard, linux-mediatek,
Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, iommu, Robin Murphy
Use the common compare helper from component.
Cc: Emma Anholt <emma@anholt.net>
Cc: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/vc4/vc4_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c
index 16abc3a3d601..e0f4c2ef8ba6 100644
--- a/drivers/gpu/drm/vc4/vc4_drv.c
+++ b/drivers/gpu/drm/vc4/vc4_drv.c
@@ -187,11 +187,6 @@ static struct drm_driver vc4_drm_driver = {
.patchlevel = DRIVER_PATCHLEVEL,
};
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static void vc4_match_add_drivers(struct device *dev,
struct component_match **match,
struct platform_driver *const *drivers,
@@ -205,7 +200,7 @@ static void vc4_match_add_drivers(struct device *dev,
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, match, compare_dev, d);
+ component_match_add(dev, match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 17/23] drm/vc4: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Emma Anholt, Liviu Dudau, linux-kernel, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Krzysztof Kozlowski, Joerg Roedel,
iommu, James Wang, Yong Wu, Chun-Kuang Hu, Arnd Bergmann,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, Tomasz Figa, Robin Murphy
Use the common compare helper from component.
Cc: Emma Anholt <emma@anholt.net>
Cc: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/vc4/vc4_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c
index 16abc3a3d601..e0f4c2ef8ba6 100644
--- a/drivers/gpu/drm/vc4/vc4_drv.c
+++ b/drivers/gpu/drm/vc4/vc4_drv.c
@@ -187,11 +187,6 @@ static struct drm_driver vc4_drm_driver = {
.patchlevel = DRIVER_PATCHLEVEL,
};
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static void vc4_match_add_drivers(struct device *dev,
struct component_match **match,
struct platform_driver *const *drivers,
@@ -205,7 +200,7 @@ static void vc4_match_add_drivers(struct device *dev,
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, match, compare_dev, d);
+ component_match_add(dev, match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 17/23] drm/vc4: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Emma Anholt, Maxime Ripard
Use the common compare helper from component.
Cc: Emma Anholt <emma@anholt.net>
Cc: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/vc4/vc4_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c
index 16abc3a3d601..e0f4c2ef8ba6 100644
--- a/drivers/gpu/drm/vc4/vc4_drv.c
+++ b/drivers/gpu/drm/vc4/vc4_drv.c
@@ -187,11 +187,6 @@ static struct drm_driver vc4_drm_driver = {
.patchlevel = DRIVER_PATCHLEVEL,
};
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static void vc4_match_add_drivers(struct device *dev,
struct component_match **match,
struct platform_driver *const *drivers,
@@ -205,7 +200,7 @@ static void vc4_match_add_drivers(struct device *dev,
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, match, compare_dev, d);
+ component_match_add(dev, match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 17/23] drm/vc4: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Emma Anholt, Maxime Ripard
Use the common compare helper from component.
Cc: Emma Anholt <emma@anholt.net>
Cc: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/vc4/vc4_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c
index 16abc3a3d601..e0f4c2ef8ba6 100644
--- a/drivers/gpu/drm/vc4/vc4_drv.c
+++ b/drivers/gpu/drm/vc4/vc4_drv.c
@@ -187,11 +187,6 @@ static struct drm_driver vc4_drm_driver = {
.patchlevel = DRIVER_PATCHLEVEL,
};
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static void vc4_match_add_drivers(struct device *dev,
struct component_match **match,
struct platform_driver *const *drivers,
@@ -205,7 +200,7 @@ static void vc4_match_add_drivers(struct device *dev,
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, match, compare_dev, d);
+ component_match_add(dev, match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 17/23] drm/vc4: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Emma Anholt, Maxime Ripard
Use the common compare helper from component.
Cc: Emma Anholt <emma@anholt.net>
Cc: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/vc4/vc4_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c
index 16abc3a3d601..e0f4c2ef8ba6 100644
--- a/drivers/gpu/drm/vc4/vc4_drv.c
+++ b/drivers/gpu/drm/vc4/vc4_drv.c
@@ -187,11 +187,6 @@ static struct drm_driver vc4_drm_driver = {
.patchlevel = DRIVER_PATCHLEVEL,
};
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static void vc4_match_add_drivers(struct device *dev,
struct component_match **match,
struct platform_driver *const *drivers,
@@ -205,7 +200,7 @@ static void vc4_match_add_drivers(struct device *dev,
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, match, compare_dev, d);
+ component_match_add(dev, match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 18/23] drm: of: Make use of the helper component_release_of
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, Joerg Roedel, iommu,
James Wang, Yong Wu, Chun-Kuang Hu, Arnd Bergmann,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, Tomasz Figa, Thomas Zimmermann, Robin Murphy
Use the common release helper from component.
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/drm_of.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c
index 59d368ea006b..9a2cfab3a177 100644
--- a/drivers/gpu/drm/drm_of.c
+++ b/drivers/gpu/drm/drm_of.c
@@ -18,11 +18,6 @@
* properties.
*/
-static void drm_release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
/**
* drm_of_crtc_port_mask - find the mask of a registered CRTC by port OF node
* @dev: DRM device
@@ -94,7 +89,7 @@ void drm_of_component_match_add(struct device *master,
struct device_node *node)
{
of_node_get(node);
- component_match_add_release(master, matchptr, drm_release_of,
+ component_match_add_release(master, matchptr, component_release_of,
compare, node);
}
EXPORT_SYMBOL_GPL(drm_of_component_match_add);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 18/23] drm: of: Make use of the helper component_release_of
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
Use the common release helper from component.
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/drm_of.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c
index 59d368ea006b..9a2cfab3a177 100644
--- a/drivers/gpu/drm/drm_of.c
+++ b/drivers/gpu/drm/drm_of.c
@@ -18,11 +18,6 @@
* properties.
*/
-static void drm_release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
/**
* drm_of_crtc_port_mask - find the mask of a registered CRTC by port OF node
* @dev: DRM device
@@ -94,7 +89,7 @@ void drm_of_component_match_add(struct device *master,
struct device_node *node)
{
of_node_get(node);
- component_match_add_release(master, matchptr, drm_release_of,
+ component_match_add_release(master, matchptr, component_release_of,
compare, node);
}
EXPORT_SYMBOL_GPL(drm_of_component_match_add);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 18/23] drm: of: Make use of the helper component_release_of
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, James Wang, Chun-Kuang Hu,
Arnd Bergmann, Maarten Lankhorst, Maxime Ripard, linux-mediatek,
Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, iommu, Thomas Zimmermann, Robin Murphy
Use the common release helper from component.
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/drm_of.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c
index 59d368ea006b..9a2cfab3a177 100644
--- a/drivers/gpu/drm/drm_of.c
+++ b/drivers/gpu/drm/drm_of.c
@@ -18,11 +18,6 @@
* properties.
*/
-static void drm_release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
/**
* drm_of_crtc_port_mask - find the mask of a registered CRTC by port OF node
* @dev: DRM device
@@ -94,7 +89,7 @@ void drm_of_component_match_add(struct device *master,
struct device_node *node)
{
of_node_get(node);
- component_match_add_release(master, matchptr, drm_release_of,
+ component_match_add_release(master, matchptr, component_release_of,
compare, node);
}
EXPORT_SYMBOL_GPL(drm_of_component_match_add);
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 18/23] drm: of: Make use of the helper component_release_of
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
Use the common release helper from component.
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/drm_of.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c
index 59d368ea006b..9a2cfab3a177 100644
--- a/drivers/gpu/drm/drm_of.c
+++ b/drivers/gpu/drm/drm_of.c
@@ -18,11 +18,6 @@
* properties.
*/
-static void drm_release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
/**
* drm_of_crtc_port_mask - find the mask of a registered CRTC by port OF node
* @dev: DRM device
@@ -94,7 +89,7 @@ void drm_of_component_match_add(struct device *master,
struct device_node *node)
{
of_node_get(node);
- component_match_add_release(master, matchptr, drm_release_of,
+ component_match_add_release(master, matchptr, component_release_of,
compare, node);
}
EXPORT_SYMBOL_GPL(drm_of_component_match_add);
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 18/23] drm: of: Make use of the helper component_release_of
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
Use the common release helper from component.
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/gpu/drm/drm_of.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c
index 59d368ea006b..9a2cfab3a177 100644
--- a/drivers/gpu/drm/drm_of.c
+++ b/drivers/gpu/drm/drm_of.c
@@ -18,11 +18,6 @@
* properties.
*/
-static void drm_release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
/**
* drm_of_crtc_port_mask - find the mask of a registered CRTC by port OF node
* @dev: DRM device
@@ -94,7 +89,7 @@ void drm_of_component_match_add(struct device *master,
struct device_node *node)
{
of_node_get(node);
- component_match_add_release(master, matchptr, drm_release_of,
+ component_match_add_release(master, matchptr, component_release_of,
compare, node);
}
EXPORT_SYMBOL_GPL(drm_of_component_match_add);
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 19/23] iommu/mediatek: Make use of the helper component_compare/release_of
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Yunfei Wang, Libo Kang, Anan Sun, Mingyuan Ma, Xueqi Zhang
Use the common compare/release helpers from component.
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Will Deacon <will@kernel.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Yunfei Wang <yf.wang@mediatek.com>
Cc: Libo Kang <libo.kang@mediatek.com>
Cc: Anan Sun <anan.sun@mediatek.com>
Cc: Mingyuan Ma <mingyuan.ma@mediatek.com>
Cc: Xueqi Zhang <xueqi.zhang@mediatek.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/iommu/mtk_iommu.c | 4 ++--
drivers/iommu/mtk_iommu.h | 10 ----------
drivers/iommu/mtk_iommu_v1.c | 4 ++--
3 files changed, 4 insertions(+), 14 deletions(-)
diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c
index 25b834104790..a2ec9003826c 100644
--- a/drivers/iommu/mtk_iommu.c
+++ b/drivers/iommu/mtk_iommu.c
@@ -852,8 +852,8 @@ static int mtk_iommu_probe(struct platform_device *pdev)
}
data->larb_imu[id].dev = &plarbdev->dev;
- component_match_add_release(dev, &match, release_of,
- compare_of, larbnode);
+ component_match_add_release(dev, &match, component_release_of,
+ component_compare_of, larbnode);
}
/* Get smi-common dev from the last larb. */
diff --git a/drivers/iommu/mtk_iommu.h b/drivers/iommu/mtk_iommu.h
index f81fa8862ed0..b742432220c5 100644
--- a/drivers/iommu/mtk_iommu.h
+++ b/drivers/iommu/mtk_iommu.h
@@ -84,16 +84,6 @@ struct mtk_iommu_data {
struct mtk_smi_larb_iommu larb_imu[MTK_LARB_NR_MAX];
};
-static inline int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static inline void release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
static inline int mtk_iommu_bind(struct device *dev)
{
struct mtk_iommu_data *data = dev_get_drvdata(dev);
diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c
index be22fcf988ce..83bd10617c9f 100644
--- a/drivers/iommu/mtk_iommu_v1.c
+++ b/drivers/iommu/mtk_iommu_v1.c
@@ -599,8 +599,8 @@ static int mtk_iommu_probe(struct platform_device *pdev)
}
data->larb_imu[i].dev = &plarbdev->dev;
- component_match_add_release(dev, &match, release_of,
- compare_of, larbnode);
+ component_match_add_release(dev, &match, component_release_of,
+ component_compare_of, larbnode);
}
platform_set_drvdata(pdev, data);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 19/23] iommu/mediatek: Make use of the helper component_compare/release_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Yunfei Wang, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Krzysztof Kozlowski, Xueqi Zhang,
James Wang, Mingyuan Ma, Chun-Kuang Hu, Arnd Bergmann, Libo Kang,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, Anan Sun, srv_heupstream,
Stephen Boyd, Sebastian Reichel, iommu, Robin Murphy
Use the common compare/release helpers from component.
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Will Deacon <will@kernel.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Yunfei Wang <yf.wang@mediatek.com>
Cc: Libo Kang <libo.kang@mediatek.com>
Cc: Anan Sun <anan.sun@mediatek.com>
Cc: Mingyuan Ma <mingyuan.ma@mediatek.com>
Cc: Xueqi Zhang <xueqi.zhang@mediatek.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/iommu/mtk_iommu.c | 4 ++--
drivers/iommu/mtk_iommu.h | 10 ----------
drivers/iommu/mtk_iommu_v1.c | 4 ++--
3 files changed, 4 insertions(+), 14 deletions(-)
diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c
index 25b834104790..a2ec9003826c 100644
--- a/drivers/iommu/mtk_iommu.c
+++ b/drivers/iommu/mtk_iommu.c
@@ -852,8 +852,8 @@ static int mtk_iommu_probe(struct platform_device *pdev)
}
data->larb_imu[id].dev = &plarbdev->dev;
- component_match_add_release(dev, &match, release_of,
- compare_of, larbnode);
+ component_match_add_release(dev, &match, component_release_of,
+ component_compare_of, larbnode);
}
/* Get smi-common dev from the last larb. */
diff --git a/drivers/iommu/mtk_iommu.h b/drivers/iommu/mtk_iommu.h
index f81fa8862ed0..b742432220c5 100644
--- a/drivers/iommu/mtk_iommu.h
+++ b/drivers/iommu/mtk_iommu.h
@@ -84,16 +84,6 @@ struct mtk_iommu_data {
struct mtk_smi_larb_iommu larb_imu[MTK_LARB_NR_MAX];
};
-static inline int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static inline void release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
static inline int mtk_iommu_bind(struct device *dev)
{
struct mtk_iommu_data *data = dev_get_drvdata(dev);
diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c
index be22fcf988ce..83bd10617c9f 100644
--- a/drivers/iommu/mtk_iommu_v1.c
+++ b/drivers/iommu/mtk_iommu_v1.c
@@ -599,8 +599,8 @@ static int mtk_iommu_probe(struct platform_device *pdev)
}
data->larb_imu[i].dev = &plarbdev->dev;
- component_match_add_release(dev, &match, release_of,
- compare_of, larbnode);
+ component_match_add_release(dev, &match, component_release_of,
+ component_compare_of, larbnode);
}
platform_set_drvdata(pdev, data);
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 19/23] iommu/mediatek: Make use of the helper component_compare/release_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Yunfei Wang, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Krzysztof Kozlowski, Xueqi Zhang,
Joerg Roedel, iommu, James Wang, Yong Wu, Mingyuan Ma,
Chun-Kuang Hu, Arnd Bergmann, Libo Kang, linux-mediatek,
Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, Anan Sun, srv_heupstream,
Stephen Boyd, Sebastian Reichel, Tomasz Figa, Robin Murphy
Use the common compare/release helpers from component.
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Will Deacon <will@kernel.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Yunfei Wang <yf.wang@mediatek.com>
Cc: Libo Kang <libo.kang@mediatek.com>
Cc: Anan Sun <anan.sun@mediatek.com>
Cc: Mingyuan Ma <mingyuan.ma@mediatek.com>
Cc: Xueqi Zhang <xueqi.zhang@mediatek.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/iommu/mtk_iommu.c | 4 ++--
drivers/iommu/mtk_iommu.h | 10 ----------
drivers/iommu/mtk_iommu_v1.c | 4 ++--
3 files changed, 4 insertions(+), 14 deletions(-)
diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c
index 25b834104790..a2ec9003826c 100644
--- a/drivers/iommu/mtk_iommu.c
+++ b/drivers/iommu/mtk_iommu.c
@@ -852,8 +852,8 @@ static int mtk_iommu_probe(struct platform_device *pdev)
}
data->larb_imu[id].dev = &plarbdev->dev;
- component_match_add_release(dev, &match, release_of,
- compare_of, larbnode);
+ component_match_add_release(dev, &match, component_release_of,
+ component_compare_of, larbnode);
}
/* Get smi-common dev from the last larb. */
diff --git a/drivers/iommu/mtk_iommu.h b/drivers/iommu/mtk_iommu.h
index f81fa8862ed0..b742432220c5 100644
--- a/drivers/iommu/mtk_iommu.h
+++ b/drivers/iommu/mtk_iommu.h
@@ -84,16 +84,6 @@ struct mtk_iommu_data {
struct mtk_smi_larb_iommu larb_imu[MTK_LARB_NR_MAX];
};
-static inline int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static inline void release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
static inline int mtk_iommu_bind(struct device *dev)
{
struct mtk_iommu_data *data = dev_get_drvdata(dev);
diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c
index be22fcf988ce..83bd10617c9f 100644
--- a/drivers/iommu/mtk_iommu_v1.c
+++ b/drivers/iommu/mtk_iommu_v1.c
@@ -599,8 +599,8 @@ static int mtk_iommu_probe(struct platform_device *pdev)
}
data->larb_imu[i].dev = &plarbdev->dev;
- component_match_add_release(dev, &match, release_of,
- compare_of, larbnode);
+ component_match_add_release(dev, &match, component_release_of,
+ component_compare_of, larbnode);
}
platform_set_drvdata(pdev, data);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 19/23] iommu/mediatek: Make use of the helper component_compare/release_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Yunfei Wang, Libo Kang, Anan Sun, Mingyuan Ma, Xueqi Zhang
Use the common compare/release helpers from component.
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Will Deacon <will@kernel.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Yunfei Wang <yf.wang@mediatek.com>
Cc: Libo Kang <libo.kang@mediatek.com>
Cc: Anan Sun <anan.sun@mediatek.com>
Cc: Mingyuan Ma <mingyuan.ma@mediatek.com>
Cc: Xueqi Zhang <xueqi.zhang@mediatek.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/iommu/mtk_iommu.c | 4 ++--
drivers/iommu/mtk_iommu.h | 10 ----------
drivers/iommu/mtk_iommu_v1.c | 4 ++--
3 files changed, 4 insertions(+), 14 deletions(-)
diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c
index 25b834104790..a2ec9003826c 100644
--- a/drivers/iommu/mtk_iommu.c
+++ b/drivers/iommu/mtk_iommu.c
@@ -852,8 +852,8 @@ static int mtk_iommu_probe(struct platform_device *pdev)
}
data->larb_imu[id].dev = &plarbdev->dev;
- component_match_add_release(dev, &match, release_of,
- compare_of, larbnode);
+ component_match_add_release(dev, &match, component_release_of,
+ component_compare_of, larbnode);
}
/* Get smi-common dev from the last larb. */
diff --git a/drivers/iommu/mtk_iommu.h b/drivers/iommu/mtk_iommu.h
index f81fa8862ed0..b742432220c5 100644
--- a/drivers/iommu/mtk_iommu.h
+++ b/drivers/iommu/mtk_iommu.h
@@ -84,16 +84,6 @@ struct mtk_iommu_data {
struct mtk_smi_larb_iommu larb_imu[MTK_LARB_NR_MAX];
};
-static inline int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static inline void release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
static inline int mtk_iommu_bind(struct device *dev)
{
struct mtk_iommu_data *data = dev_get_drvdata(dev);
diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c
index be22fcf988ce..83bd10617c9f 100644
--- a/drivers/iommu/mtk_iommu_v1.c
+++ b/drivers/iommu/mtk_iommu_v1.c
@@ -599,8 +599,8 @@ static int mtk_iommu_probe(struct platform_device *pdev)
}
data->larb_imu[i].dev = &plarbdev->dev;
- component_match_add_release(dev, &match, release_of,
- compare_of, larbnode);
+ component_match_add_release(dev, &match, component_release_of,
+ component_compare_of, larbnode);
}
platform_set_drvdata(pdev, data);
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 19/23] iommu/mediatek: Make use of the helper component_compare/release_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Yunfei Wang, Libo Kang, Anan Sun, Mingyuan Ma, Xueqi Zhang
Use the common compare/release helpers from component.
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Will Deacon <will@kernel.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Yunfei Wang <yf.wang@mediatek.com>
Cc: Libo Kang <libo.kang@mediatek.com>
Cc: Anan Sun <anan.sun@mediatek.com>
Cc: Mingyuan Ma <mingyuan.ma@mediatek.com>
Cc: Xueqi Zhang <xueqi.zhang@mediatek.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/iommu/mtk_iommu.c | 4 ++--
drivers/iommu/mtk_iommu.h | 10 ----------
drivers/iommu/mtk_iommu_v1.c | 4 ++--
3 files changed, 4 insertions(+), 14 deletions(-)
diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c
index 25b834104790..a2ec9003826c 100644
--- a/drivers/iommu/mtk_iommu.c
+++ b/drivers/iommu/mtk_iommu.c
@@ -852,8 +852,8 @@ static int mtk_iommu_probe(struct platform_device *pdev)
}
data->larb_imu[id].dev = &plarbdev->dev;
- component_match_add_release(dev, &match, release_of,
- compare_of, larbnode);
+ component_match_add_release(dev, &match, component_release_of,
+ component_compare_of, larbnode);
}
/* Get smi-common dev from the last larb. */
diff --git a/drivers/iommu/mtk_iommu.h b/drivers/iommu/mtk_iommu.h
index f81fa8862ed0..b742432220c5 100644
--- a/drivers/iommu/mtk_iommu.h
+++ b/drivers/iommu/mtk_iommu.h
@@ -84,16 +84,6 @@ struct mtk_iommu_data {
struct mtk_smi_larb_iommu larb_imu[MTK_LARB_NR_MAX];
};
-static inline int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static inline void release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
static inline int mtk_iommu_bind(struct device *dev)
{
struct mtk_iommu_data *data = dev_get_drvdata(dev);
diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c
index be22fcf988ce..83bd10617c9f 100644
--- a/drivers/iommu/mtk_iommu_v1.c
+++ b/drivers/iommu/mtk_iommu_v1.c
@@ -599,8 +599,8 @@ static int mtk_iommu_probe(struct platform_device *pdev)
}
data->larb_imu[i].dev = &plarbdev->dev;
- component_match_add_release(dev, &match, release_of,
- compare_of, larbnode);
+ component_match_add_release(dev, &match, component_release_of,
+ component_compare_of, larbnode);
}
platform_set_drvdata(pdev, data);
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
2022-02-14 6:07 ` Yong Wu via iommu
` (3 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Pierre-Louis Bossart, alsa-devel
Use the common compare/release helpers from component.
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
sound/soc/codecs/wcd938x.c | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c
index eff200a07d9f..54f4a41ceca2 100644
--- a/sound/soc/codecs/wcd938x.c
+++ b/sound/soc/codecs/wcd938x.c
@@ -4417,16 +4417,6 @@ static const struct component_master_ops wcd938x_comp_ops = {
.unbind = wcd938x_unbind,
};
-static int wcd938x_compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static void wcd938x_release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
struct device *dev,
struct component_match **matchptr)
@@ -4442,8 +4432,8 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
}
of_node_get(wcd938x->rxnode);
- component_match_add_release(dev, matchptr, wcd938x_release_of,
- wcd938x_compare_of, wcd938x->rxnode);
+ component_match_add_release(dev, matchptr, component_release_of,
+ component_compare_of, wcd938x->rxnode);
wcd938x->txnode = of_parse_phandle(np, "qcom,tx-device", 0);
if (!wcd938x->txnode) {
@@ -4451,8 +4441,8 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
return -ENODEV;
}
of_node_get(wcd938x->txnode);
- component_match_add_release(dev, matchptr, wcd938x_release_of,
- wcd938x_compare_of, wcd938x->txnode);
+ component_match_add_release(dev, matchptr, component_release_of,
+ component_compare_of, wcd938x->txnode);
return 0;
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: alsa-devel, Liam Girdwood, Liviu Dudau, linux-kernel,
Srinivas Kandagatla, Laurent Pinchart, Will Deacon,
Pierre-Louis Bossart, Krzysztof Kozlowski, Takashi Iwai,
James Wang, Chun-Kuang Hu, Arnd Bergmann, Mark Brown,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, Jaroslav Kysela,
linux-arm-kernel, AngeloGioacchino Del Regno, srv_heupstream,
Stephen Boyd, Sebastian Reichel, iommu, Robin Murphy
Use the common compare/release helpers from component.
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
sound/soc/codecs/wcd938x.c | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c
index eff200a07d9f..54f4a41ceca2 100644
--- a/sound/soc/codecs/wcd938x.c
+++ b/sound/soc/codecs/wcd938x.c
@@ -4417,16 +4417,6 @@ static const struct component_master_ops wcd938x_comp_ops = {
.unbind = wcd938x_unbind,
};
-static int wcd938x_compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static void wcd938x_release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
struct device *dev,
struct component_match **matchptr)
@@ -4442,8 +4432,8 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
}
of_node_get(wcd938x->rxnode);
- component_match_add_release(dev, matchptr, wcd938x_release_of,
- wcd938x_compare_of, wcd938x->rxnode);
+ component_match_add_release(dev, matchptr, component_release_of,
+ component_compare_of, wcd938x->rxnode);
wcd938x->txnode = of_parse_phandle(np, "qcom,tx-device", 0);
if (!wcd938x->txnode) {
@@ -4451,8 +4441,8 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
return -ENODEV;
}
of_node_get(wcd938x->txnode);
- component_match_add_release(dev, matchptr, wcd938x_release_of,
- wcd938x_compare_of, wcd938x->txnode);
+ component_match_add_release(dev, matchptr, component_release_of,
+ component_compare_of, wcd938x->txnode);
return 0;
}
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: alsa-devel, Liam Girdwood, Liviu Dudau, linux-kernel,
Srinivas Kandagatla, Laurent Pinchart, Will Deacon,
Pierre-Louis Bossart, Krzysztof Kozlowski, Joerg Roedel,
Takashi Iwai, iommu, James Wang, Yong Wu, Chun-Kuang Hu,
Arnd Bergmann, Mark Brown, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, Jaroslav Kysela, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, Tomasz Figa, Robin Murphy
Use the common compare/release helpers from component.
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
sound/soc/codecs/wcd938x.c | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c
index eff200a07d9f..54f4a41ceca2 100644
--- a/sound/soc/codecs/wcd938x.c
+++ b/sound/soc/codecs/wcd938x.c
@@ -4417,16 +4417,6 @@ static const struct component_master_ops wcd938x_comp_ops = {
.unbind = wcd938x_unbind,
};
-static int wcd938x_compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static void wcd938x_release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
struct device *dev,
struct component_match **matchptr)
@@ -4442,8 +4432,8 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
}
of_node_get(wcd938x->rxnode);
- component_match_add_release(dev, matchptr, wcd938x_release_of,
- wcd938x_compare_of, wcd938x->rxnode);
+ component_match_add_release(dev, matchptr, component_release_of,
+ component_compare_of, wcd938x->rxnode);
wcd938x->txnode = of_parse_phandle(np, "qcom,tx-device", 0);
if (!wcd938x->txnode) {
@@ -4451,8 +4441,8 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
return -ENODEV;
}
of_node_get(wcd938x->txnode);
- component_match_add_release(dev, matchptr, wcd938x_release_of,
- wcd938x_compare_of, wcd938x->txnode);
+ component_match_add_release(dev, matchptr, component_release_of,
+ component_compare_of, wcd938x->txnode);
return 0;
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Pierre-Louis Bossart, alsa-devel
Use the common compare/release helpers from component.
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
sound/soc/codecs/wcd938x.c | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c
index eff200a07d9f..54f4a41ceca2 100644
--- a/sound/soc/codecs/wcd938x.c
+++ b/sound/soc/codecs/wcd938x.c
@@ -4417,16 +4417,6 @@ static const struct component_master_ops wcd938x_comp_ops = {
.unbind = wcd938x_unbind,
};
-static int wcd938x_compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static void wcd938x_release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
struct device *dev,
struct component_match **matchptr)
@@ -4442,8 +4432,8 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
}
of_node_get(wcd938x->rxnode);
- component_match_add_release(dev, matchptr, wcd938x_release_of,
- wcd938x_compare_of, wcd938x->rxnode);
+ component_match_add_release(dev, matchptr, component_release_of,
+ component_compare_of, wcd938x->rxnode);
wcd938x->txnode = of_parse_phandle(np, "qcom,tx-device", 0);
if (!wcd938x->txnode) {
@@ -4451,8 +4441,8 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
return -ENODEV;
}
of_node_get(wcd938x->txnode);
- component_match_add_release(dev, matchptr, wcd938x_release_of,
- wcd938x_compare_of, wcd938x->txnode);
+ component_match_add_release(dev, matchptr, component_release_of,
+ component_compare_of, wcd938x->txnode);
return 0;
}
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Pierre-Louis Bossart, alsa-devel
Use the common compare/release helpers from component.
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
sound/soc/codecs/wcd938x.c | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c
index eff200a07d9f..54f4a41ceca2 100644
--- a/sound/soc/codecs/wcd938x.c
+++ b/sound/soc/codecs/wcd938x.c
@@ -4417,16 +4417,6 @@ static const struct component_master_ops wcd938x_comp_ops = {
.unbind = wcd938x_unbind,
};
-static int wcd938x_compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static void wcd938x_release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
struct device *dev,
struct component_match **matchptr)
@@ -4442,8 +4432,8 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
}
of_node_get(wcd938x->rxnode);
- component_match_add_release(dev, matchptr, wcd938x_release_of,
- wcd938x_compare_of, wcd938x->rxnode);
+ component_match_add_release(dev, matchptr, component_release_of,
+ component_compare_of, wcd938x->rxnode);
wcd938x->txnode = of_parse_phandle(np, "qcom,tx-device", 0);
if (!wcd938x->txnode) {
@@ -4451,8 +4441,8 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
return -ENODEV;
}
of_node_get(wcd938x->txnode);
- component_match_add_release(dev, matchptr, wcd938x_release_of,
- wcd938x_compare_of, wcd938x->txnode);
+ component_match_add_release(dev, matchptr, component_release_of,
+ component_compare_of, wcd938x->txnode);
return 0;
}
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: alsa-devel, Liam Girdwood, Liviu Dudau, linux-kernel,
Srinivas Kandagatla, Laurent Pinchart, Will Deacon,
Pierre-Louis Bossart, Krzysztof Kozlowski, Joerg Roedel,
Takashi Iwai, Rob Clark, James Wang, Yong Wu, Chun-Kuang Hu,
Arnd Bergmann, Mark Brown, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, Sebastian Reichel, Tomasz Figa,
iommu, Robin Murphy
Use the common compare/release helpers from component.
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
sound/soc/codecs/wcd938x.c | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c
index eff200a07d9f..54f4a41ceca2 100644
--- a/sound/soc/codecs/wcd938x.c
+++ b/sound/soc/codecs/wcd938x.c
@@ -4417,16 +4417,6 @@ static const struct component_master_ops wcd938x_comp_ops = {
.unbind = wcd938x_unbind,
};
-static int wcd938x_compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
-static void wcd938x_release_of(struct device *dev, void *data)
-{
- of_node_put(data);
-}
-
static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
struct device *dev,
struct component_match **matchptr)
@@ -4442,8 +4432,8 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
}
of_node_get(wcd938x->rxnode);
- component_match_add_release(dev, matchptr, wcd938x_release_of,
- wcd938x_compare_of, wcd938x->rxnode);
+ component_match_add_release(dev, matchptr, component_release_of,
+ component_compare_of, wcd938x->rxnode);
wcd938x->txnode = of_parse_phandle(np, "qcom,tx-device", 0);
if (!wcd938x->txnode) {
@@ -4451,8 +4441,8 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
return -ENODEV;
}
of_node_get(wcd938x->txnode);
- component_match_add_release(dev, matchptr, wcd938x_release_of,
- wcd938x_compare_of, wcd938x->txnode);
+ component_match_add_release(dev, matchptr, component_release_of,
+ component_compare_of, wcd938x->txnode);
return 0;
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 21/23] power: supply: ab8500: Make use of the helper component_compare_dev
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu via iommu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
linux-pm
Use the common compare helper from component.
Cc: Sebastian Reichel <sre@kernel.org>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/power/supply/ab8500_charger.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/power/supply/ab8500_charger.c b/drivers/power/supply/ab8500_charger.c
index ce074c018dcb..875fe665f8a8 100644
--- a/drivers/power/supply/ab8500_charger.c
+++ b/drivers/power/supply/ab8500_charger.c
@@ -3414,11 +3414,6 @@ static struct platform_driver *const ab8500_charger_component_drivers[] = {
&ab8500_chargalg_driver,
};
-static int ab8500_charger_compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static int ab8500_charger_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -3657,8 +3652,7 @@ static int ab8500_charger_probe(struct platform_device *pdev)
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, &match,
- ab8500_charger_compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 21/23] power: supply: ab8500: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, James Wang, Chun-Kuang Hu,
Arnd Bergmann, linux-pm, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, Sebastian Reichel, iommu,
Robin Murphy
Use the common compare helper from component.
Cc: Sebastian Reichel <sre@kernel.org>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/power/supply/ab8500_charger.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/power/supply/ab8500_charger.c b/drivers/power/supply/ab8500_charger.c
index ce074c018dcb..875fe665f8a8 100644
--- a/drivers/power/supply/ab8500_charger.c
+++ b/drivers/power/supply/ab8500_charger.c
@@ -3414,11 +3414,6 @@ static struct platform_driver *const ab8500_charger_component_drivers[] = {
&ab8500_chargalg_driver,
};
-static int ab8500_charger_compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static int ab8500_charger_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -3657,8 +3652,7 @@ static int ab8500_charger_probe(struct platform_device *pdev)
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, &match,
- ab8500_charger_compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 21/23] power: supply: ab8500: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, Joerg Roedel, iommu,
James Wang, Yong Wu, Chun-Kuang Hu, Arnd Bergmann, linux-pm,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, Tomasz Figa, Robin Murphy
Use the common compare helper from component.
Cc: Sebastian Reichel <sre@kernel.org>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/power/supply/ab8500_charger.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/power/supply/ab8500_charger.c b/drivers/power/supply/ab8500_charger.c
index ce074c018dcb..875fe665f8a8 100644
--- a/drivers/power/supply/ab8500_charger.c
+++ b/drivers/power/supply/ab8500_charger.c
@@ -3414,11 +3414,6 @@ static struct platform_driver *const ab8500_charger_component_drivers[] = {
&ab8500_chargalg_driver,
};
-static int ab8500_charger_compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static int ab8500_charger_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -3657,8 +3652,7 @@ static int ab8500_charger_probe(struct platform_device *pdev)
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, &match,
- ab8500_charger_compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 21/23] power: supply: ab8500: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
linux-pm
Use the common compare helper from component.
Cc: Sebastian Reichel <sre@kernel.org>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/power/supply/ab8500_charger.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/power/supply/ab8500_charger.c b/drivers/power/supply/ab8500_charger.c
index ce074c018dcb..875fe665f8a8 100644
--- a/drivers/power/supply/ab8500_charger.c
+++ b/drivers/power/supply/ab8500_charger.c
@@ -3414,11 +3414,6 @@ static struct platform_driver *const ab8500_charger_component_drivers[] = {
&ab8500_chargalg_driver,
};
-static int ab8500_charger_compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static int ab8500_charger_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -3657,8 +3652,7 @@ static int ab8500_charger_probe(struct platform_device *pdev)
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, &match,
- ab8500_charger_compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 21/23] power: supply: ab8500: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu via iommu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
linux-pm
Use the common compare helper from component.
Cc: Sebastian Reichel <sre@kernel.org>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/power/supply/ab8500_charger.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/power/supply/ab8500_charger.c b/drivers/power/supply/ab8500_charger.c
index ce074c018dcb..875fe665f8a8 100644
--- a/drivers/power/supply/ab8500_charger.c
+++ b/drivers/power/supply/ab8500_charger.c
@@ -3414,11 +3414,6 @@ static struct platform_driver *const ab8500_charger_component_drivers[] = {
&ab8500_chargalg_driver,
};
-static int ab8500_charger_compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static int ab8500_charger_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -3657,8 +3652,7 @@ static int ab8500_charger_probe(struct platform_device *pdev)
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, &match,
- ab8500_charger_compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
2022-02-14 6:07 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: linux-fbdev, Liviu Dudau, linux-kernel, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Krzysztof Kozlowski, James Wang,
Chun-Kuang Hu, Arnd Bergmann, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-omap, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, iommu, Robin Murphy, Helge Deller
Use the common compare helper from component.
Cc: Helge Deller <deller@gmx.de>
Cc: linux-omap@vger.kernel.org
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss.c b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
index a6b1c1598040..45b9d3cf3860 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/dss.c
+++ b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
@@ -1193,12 +1193,6 @@ static const struct component_master_ops dss_component_ops = {
.unbind = dss_unbind,
};
-static int dss_component_compare(struct device *dev, void *data)
-{
- struct device *child = data;
- return dev == child;
-}
-
static int dss_add_child_component(struct device *dev, void *data)
{
struct component_match **match = data;
@@ -1212,7 +1206,7 @@ static int dss_add_child_component(struct device *dev, void *data)
if (strstr(dev_name(dev), "rfbi"))
return 0;
- component_match_add(dev->parent, match, dss_component_compare, dev);
+ component_match_add(dev->parent, match, component_compare_dev, dev);
return 0;
}
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: linux-fbdev, Liviu Dudau, linux-kernel, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Krzysztof Kozlowski, Joerg Roedel,
iommu, James Wang, Yong Wu, Chun-Kuang Hu, Arnd Bergmann,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, linux-omap,
linux-arm-kernel, AngeloGioacchino Del Regno, srv_heupstream,
Stephen Boyd, Sebastian Reichel, Tomasz Figa, Robin Murphy,
Helge Deller
Use the common compare helper from component.
Cc: Helge Deller <deller@gmx.de>
Cc: linux-omap@vger.kernel.org
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss.c b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
index a6b1c1598040..45b9d3cf3860 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/dss.c
+++ b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
@@ -1193,12 +1193,6 @@ static const struct component_master_ops dss_component_ops = {
.unbind = dss_unbind,
};
-static int dss_component_compare(struct device *dev, void *data)
-{
- struct device *child = data;
- return dev == child;
-}
-
static int dss_add_child_component(struct device *dev, void *data)
{
struct component_match **match = data;
@@ -1212,7 +1206,7 @@ static int dss_add_child_component(struct device *dev, void *data)
if (strstr(dev_name(dev), "rfbi"))
return 0;
- component_match_add(dev->parent, match, dss_component_compare, dev);
+ component_match_add(dev->parent, match, component_compare_dev, dev);
return 0;
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Helge Deller, linux-omap, linux-fbdev
Use the common compare helper from component.
Cc: Helge Deller <deller@gmx.de>
Cc: linux-omap@vger.kernel.org
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss.c b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
index a6b1c1598040..45b9d3cf3860 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/dss.c
+++ b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
@@ -1193,12 +1193,6 @@ static const struct component_master_ops dss_component_ops = {
.unbind = dss_unbind,
};
-static int dss_component_compare(struct device *dev, void *data)
-{
- struct device *child = data;
- return dev == child;
-}
-
static int dss_add_child_component(struct device *dev, void *data)
{
struct component_match **match = data;
@@ -1212,7 +1206,7 @@ static int dss_add_child_component(struct device *dev, void *data)
if (strstr(dev_name(dev), "rfbi"))
return 0;
- component_match_add(dev->parent, match, dss_component_compare, dev);
+ component_match_add(dev->parent, match, component_compare_dev, dev);
return 0;
}
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Helge Deller, linux-omap, linux-fbdev
Use the common compare helper from component.
Cc: Helge Deller <deller@gmx.de>
Cc: linux-omap@vger.kernel.org
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss.c b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
index a6b1c1598040..45b9d3cf3860 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/dss.c
+++ b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
@@ -1193,12 +1193,6 @@ static const struct component_master_ops dss_component_ops = {
.unbind = dss_unbind,
};
-static int dss_component_compare(struct device *dev, void *data)
-{
- struct device *child = data;
- return dev == child;
-}
-
static int dss_add_child_component(struct device *dev, void *data)
{
struct component_match **match = data;
@@ -1212,7 +1206,7 @@ static int dss_add_child_component(struct device *dev, void *data)
if (strstr(dev_name(dev), "rfbi"))
return 0;
- component_match_add(dev->parent, match, dss_component_compare, dev);
+ component_match_add(dev->parent, match, component_compare_dev, dev);
return 0;
}
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Helge Deller, linux-omap, linux-fbdev
Use the common compare helper from component.
Cc: Helge Deller <deller@gmx.de>
Cc: linux-omap@vger.kernel.org
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss.c b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
index a6b1c1598040..45b9d3cf3860 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/dss.c
+++ b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
@@ -1193,12 +1193,6 @@ static const struct component_master_ops dss_component_ops = {
.unbind = dss_unbind,
};
-static int dss_component_compare(struct device *dev, void *data)
-{
- struct device *child = data;
- return dev == child;
-}
-
static int dss_add_child_component(struct device *dev, void *data)
{
struct component_match **match = data;
@@ -1212,7 +1206,7 @@ static int dss_add_child_component(struct device *dev, void *data)
if (strstr(dev_name(dev), "rfbi"))
return 0;
- component_match_add(dev->parent, match, dss_component_compare, dev);
+ component_match_add(dev->parent, match, component_compare_dev, dev);
return 0;
}
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 23/23] ALSA: hda/realtek: Make use of the helper component_compare_dev_name
2022-02-14 6:07 ` Yong Wu via iommu
` (3 preceding siblings ...)
(?)
@ 2022-02-14 6:08 ` Yong Wu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: alsa-devel, Lucas Tanure, Jeremy Szu, Liviu Dudau,
Werner Sembach, linux-kernel, Cameron Berkenpas,
Srinivas Kandagatla, Laurent Pinchart, Will Deacon,
Krzysztof Kozlowski, Takashi Iwai, Hui Wang, James Wang,
Sami Loone, Chun-Kuang Hu, Arnd Bergmann, linux-mediatek,
Hsin-Yi Wang, Matthias Brugger, Jaroslav Kysela,
linux-arm-kernel, AngeloGioacchino Del Regno, Kailang Yang,
srv_heupstream, Stephen Boyd, Sebastian Reichel, iommu,
Robin Murphy
Use the common compare helper from component.
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Jeremy Szu <jeremy.szu@canonical.com>
Cc: Werner Sembach <wse@tuxedocomputers.com>
Cc: Hui Wang <hui.wang@canonical.com>
Cc: Cameron Berkenpas <cam@neo-zeon.de>
Cc: Kailang Yang <kailang@realtek.com>
Cc: Lucas Tanure <tanureal@opensource.cirrus.com>
Cc: Sami Loone <sami@loone.fi>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
sound/pci/hda/patch_realtek.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 668274e52674..9da004d99cdb 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6530,11 +6530,6 @@ static void alc287_fixup_legion_15imhg05_speakers(struct hda_codec *codec,
}
}
-static int comp_match_dev_name(struct device *dev, void *data)
-{
- return strcmp(dev_name(dev), data) == 0;
-}
-
static int find_comp_by_dev_name(struct alc_spec *spec, const char *name)
{
int i;
@@ -6595,7 +6590,7 @@ static void cs35l41_generic_fixup(struct hda_codec *cdc, int action, const char
"%s-%s:00-cs35l41-hda.%d", bus, hid, i);
if (!name)
return;
- component_match_add(dev, &spec->match, comp_match_dev_name, name);
+ component_match_add(dev, &spec->match, component_compare_dev_name, name);
}
ret = component_master_add_with_match(dev, &comp_master_ops, spec->match);
if (ret)
@@ -6644,9 +6639,9 @@ static void alc287_fixup_legion_16achg6_speakers(struct hda_codec *cdc, const st
switch (action) {
case HDA_FIXUP_ACT_PRE_PROBE:
- component_match_add(dev, &spec->match, comp_match_dev_name,
+ component_match_add(dev, &spec->match, component_compare_dev_name,
"i2c-CLSA0100:00-cs35l41-hda.0");
- component_match_add(dev, &spec->match, comp_match_dev_name,
+ component_match_add(dev, &spec->match, component_compare_dev_name,
"i2c-CLSA0100:00-cs35l41-hda.1");
ret = component_master_add_with_match(dev, &comp_master_ops, spec->match);
if (ret)
--
2.18.0
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 23/23] ALSA: hda/realtek: Make use of the helper component_compare_dev_name
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: alsa-devel, Lucas Tanure, Jeremy Szu, Liviu Dudau,
Werner Sembach, linux-kernel, Cameron Berkenpas,
Srinivas Kandagatla, Laurent Pinchart, Will Deacon,
Krzysztof Kozlowski, Joerg Roedel, Takashi Iwai, iommu, Hui Wang,
James Wang, Yong Wu, Sami Loone, Chun-Kuang Hu, Arnd Bergmann,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, Jaroslav Kysela,
linux-arm-kernel, AngeloGioacchino Del Regno, Kailang Yang,
srv_heupstream, Stephen Boyd, Sebastian Reichel, Tomasz Figa,
Robin Murphy
Use the common compare helper from component.
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Jeremy Szu <jeremy.szu@canonical.com>
Cc: Werner Sembach <wse@tuxedocomputers.com>
Cc: Hui Wang <hui.wang@canonical.com>
Cc: Cameron Berkenpas <cam@neo-zeon.de>
Cc: Kailang Yang <kailang@realtek.com>
Cc: Lucas Tanure <tanureal@opensource.cirrus.com>
Cc: Sami Loone <sami@loone.fi>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
sound/pci/hda/patch_realtek.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 668274e52674..9da004d99cdb 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6530,11 +6530,6 @@ static void alc287_fixup_legion_15imhg05_speakers(struct hda_codec *codec,
}
}
-static int comp_match_dev_name(struct device *dev, void *data)
-{
- return strcmp(dev_name(dev), data) == 0;
-}
-
static int find_comp_by_dev_name(struct alc_spec *spec, const char *name)
{
int i;
@@ -6595,7 +6590,7 @@ static void cs35l41_generic_fixup(struct hda_codec *cdc, int action, const char
"%s-%s:00-cs35l41-hda.%d", bus, hid, i);
if (!name)
return;
- component_match_add(dev, &spec->match, comp_match_dev_name, name);
+ component_match_add(dev, &spec->match, component_compare_dev_name, name);
}
ret = component_master_add_with_match(dev, &comp_master_ops, spec->match);
if (ret)
@@ -6644,9 +6639,9 @@ static void alc287_fixup_legion_16achg6_speakers(struct hda_codec *cdc, const st
switch (action) {
case HDA_FIXUP_ACT_PRE_PROBE:
- component_match_add(dev, &spec->match, comp_match_dev_name,
+ component_match_add(dev, &spec->match, component_compare_dev_name,
"i2c-CLSA0100:00-cs35l41-hda.0");
- component_match_add(dev, &spec->match, comp_match_dev_name,
+ component_match_add(dev, &spec->match, component_compare_dev_name,
"i2c-CLSA0100:00-cs35l41-hda.1");
ret = component_master_add_with_match(dev, &comp_master_ops, spec->match);
if (ret)
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 23/23] ALSA: hda/realtek: Make use of the helper component_compare_dev_name
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Jaroslav Kysela, Takashi Iwai, Jeremy Szu, Werner Sembach,
Hui Wang, Cameron Berkenpas, Kailang Yang, Lucas Tanure,
Sami Loone, alsa-devel
Use the common compare helper from component.
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Jeremy Szu <jeremy.szu@canonical.com>
Cc: Werner Sembach <wse@tuxedocomputers.com>
Cc: Hui Wang <hui.wang@canonical.com>
Cc: Cameron Berkenpas <cam@neo-zeon.de>
Cc: Kailang Yang <kailang@realtek.com>
Cc: Lucas Tanure <tanureal@opensource.cirrus.com>
Cc: Sami Loone <sami@loone.fi>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
sound/pci/hda/patch_realtek.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 668274e52674..9da004d99cdb 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6530,11 +6530,6 @@ static void alc287_fixup_legion_15imhg05_speakers(struct hda_codec *codec,
}
}
-static int comp_match_dev_name(struct device *dev, void *data)
-{
- return strcmp(dev_name(dev), data) == 0;
-}
-
static int find_comp_by_dev_name(struct alc_spec *spec, const char *name)
{
int i;
@@ -6595,7 +6590,7 @@ static void cs35l41_generic_fixup(struct hda_codec *cdc, int action, const char
"%s-%s:00-cs35l41-hda.%d", bus, hid, i);
if (!name)
return;
- component_match_add(dev, &spec->match, comp_match_dev_name, name);
+ component_match_add(dev, &spec->match, component_compare_dev_name, name);
}
ret = component_master_add_with_match(dev, &comp_master_ops, spec->match);
if (ret)
@@ -6644,9 +6639,9 @@ static void alc287_fixup_legion_16achg6_speakers(struct hda_codec *cdc, const st
switch (action) {
case HDA_FIXUP_ACT_PRE_PROBE:
- component_match_add(dev, &spec->match, comp_match_dev_name,
+ component_match_add(dev, &spec->match, component_compare_dev_name,
"i2c-CLSA0100:00-cs35l41-hda.0");
- component_match_add(dev, &spec->match, comp_match_dev_name,
+ component_match_add(dev, &spec->match, component_compare_dev_name,
"i2c-CLSA0100:00-cs35l41-hda.1");
ret = component_master_add_with_match(dev, &comp_master_ops, spec->match);
if (ret)
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 23/23] ALSA: hda/realtek: Make use of the helper component_compare_dev_name
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Jaroslav Kysela, Takashi Iwai, Jeremy Szu, Werner Sembach,
Hui Wang, Cameron Berkenpas, Kailang Yang, Lucas Tanure,
Sami Loone, alsa-devel
Use the common compare helper from component.
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Jeremy Szu <jeremy.szu@canonical.com>
Cc: Werner Sembach <wse@tuxedocomputers.com>
Cc: Hui Wang <hui.wang@canonical.com>
Cc: Cameron Berkenpas <cam@neo-zeon.de>
Cc: Kailang Yang <kailang@realtek.com>
Cc: Lucas Tanure <tanureal@opensource.cirrus.com>
Cc: Sami Loone <sami@loone.fi>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
sound/pci/hda/patch_realtek.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 668274e52674..9da004d99cdb 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6530,11 +6530,6 @@ static void alc287_fixup_legion_15imhg05_speakers(struct hda_codec *codec,
}
}
-static int comp_match_dev_name(struct device *dev, void *data)
-{
- return strcmp(dev_name(dev), data) == 0;
-}
-
static int find_comp_by_dev_name(struct alc_spec *spec, const char *name)
{
int i;
@@ -6595,7 +6590,7 @@ static void cs35l41_generic_fixup(struct hda_codec *cdc, int action, const char
"%s-%s:00-cs35l41-hda.%d", bus, hid, i);
if (!name)
return;
- component_match_add(dev, &spec->match, comp_match_dev_name, name);
+ component_match_add(dev, &spec->match, component_compare_dev_name, name);
}
ret = component_master_add_with_match(dev, &comp_master_ops, spec->match);
if (ret)
@@ -6644,9 +6639,9 @@ static void alc287_fixup_legion_16achg6_speakers(struct hda_codec *cdc, const st
switch (action) {
case HDA_FIXUP_ACT_PRE_PROBE:
- component_match_add(dev, &spec->match, comp_match_dev_name,
+ component_match_add(dev, &spec->match, component_compare_dev_name,
"i2c-CLSA0100:00-cs35l41-hda.0");
- component_match_add(dev, &spec->match, comp_match_dev_name,
+ component_match_add(dev, &spec->match, component_compare_dev_name,
"i2c-CLSA0100:00-cs35l41-hda.1");
ret = component_master_add_with_match(dev, &comp_master_ops, spec->match);
if (ret)
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 23/23] ALSA: hda/realtek: Make use of the helper component_compare_dev_name
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Jaroslav Kysela, Takashi Iwai, Jeremy Szu, Werner Sembach,
Hui Wang, Cameron Berkenpas, Kailang Yang, Lucas Tanure,
Sami Loone, alsa-devel
Use the common compare helper from component.
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Jeremy Szu <jeremy.szu@canonical.com>
Cc: Werner Sembach <wse@tuxedocomputers.com>
Cc: Hui Wang <hui.wang@canonical.com>
Cc: Cameron Berkenpas <cam@neo-zeon.de>
Cc: Kailang Yang <kailang@realtek.com>
Cc: Lucas Tanure <tanureal@opensource.cirrus.com>
Cc: Sami Loone <sami@loone.fi>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
sound/pci/hda/patch_realtek.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 668274e52674..9da004d99cdb 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6530,11 +6530,6 @@ static void alc287_fixup_legion_15imhg05_speakers(struct hda_codec *codec,
}
}
-static int comp_match_dev_name(struct device *dev, void *data)
-{
- return strcmp(dev_name(dev), data) == 0;
-}
-
static int find_comp_by_dev_name(struct alc_spec *spec, const char *name)
{
int i;
@@ -6595,7 +6590,7 @@ static void cs35l41_generic_fixup(struct hda_codec *cdc, int action, const char
"%s-%s:00-cs35l41-hda.%d", bus, hid, i);
if (!name)
return;
- component_match_add(dev, &spec->match, comp_match_dev_name, name);
+ component_match_add(dev, &spec->match, component_compare_dev_name, name);
}
ret = component_master_add_with_match(dev, &comp_master_ops, spec->match);
if (ret)
@@ -6644,9 +6639,9 @@ static void alc287_fixup_legion_16achg6_speakers(struct hda_codec *cdc, const st
switch (action) {
case HDA_FIXUP_ACT_PRE_PROBE:
- component_match_add(dev, &spec->match, comp_match_dev_name,
+ component_match_add(dev, &spec->match, component_compare_dev_name,
"i2c-CLSA0100:00-cs35l41-hda.0");
- component_match_add(dev, &spec->match, comp_match_dev_name,
+ component_match_add(dev, &spec->match, component_compare_dev_name,
"i2c-CLSA0100:00-cs35l41-hda.1");
ret = component_master_add_with_match(dev, &comp_master_ops, spec->match);
if (ret)
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 163+ messages in thread
* [PATCH 23/23] ALSA: hda/realtek: Make use of the helper component_compare_dev_name
@ 2022-02-14 6:08 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-14 6:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: alsa-devel, Lucas Tanure, Jeremy Szu, Liviu Dudau,
Werner Sembach, linux-kernel, Cameron Berkenpas,
Srinivas Kandagatla, Laurent Pinchart, Will Deacon,
Krzysztof Kozlowski, Joerg Roedel, Takashi Iwai, Rob Clark,
Hui Wang, James Wang, Yong Wu, Sami Loone, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-arm-kernel, AngeloGioacchino Del Regno, Kailang Yang,
srv_heupstream, Stephen Boyd, Sebastian Reichel, Tomasz Figa,
iommu, Robin Murphy
Use the common compare helper from component.
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Jeremy Szu <jeremy.szu@canonical.com>
Cc: Werner Sembach <wse@tuxedocomputers.com>
Cc: Hui Wang <hui.wang@canonical.com>
Cc: Cameron Berkenpas <cam@neo-zeon.de>
Cc: Kailang Yang <kailang@realtek.com>
Cc: Lucas Tanure <tanureal@opensource.cirrus.com>
Cc: Sami Loone <sami@loone.fi>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
sound/pci/hda/patch_realtek.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 668274e52674..9da004d99cdb 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6530,11 +6530,6 @@ static void alc287_fixup_legion_15imhg05_speakers(struct hda_codec *codec,
}
}
-static int comp_match_dev_name(struct device *dev, void *data)
-{
- return strcmp(dev_name(dev), data) == 0;
-}
-
static int find_comp_by_dev_name(struct alc_spec *spec, const char *name)
{
int i;
@@ -6595,7 +6590,7 @@ static void cs35l41_generic_fixup(struct hda_codec *cdc, int action, const char
"%s-%s:00-cs35l41-hda.%d", bus, hid, i);
if (!name)
return;
- component_match_add(dev, &spec->match, comp_match_dev_name, name);
+ component_match_add(dev, &spec->match, component_compare_dev_name, name);
}
ret = component_master_add_with_match(dev, &comp_master_ops, spec->match);
if (ret)
@@ -6644,9 +6639,9 @@ static void alc287_fixup_legion_16achg6_speakers(struct hda_codec *cdc, const st
switch (action) {
case HDA_FIXUP_ACT_PRE_PROBE:
- component_match_add(dev, &spec->match, comp_match_dev_name,
+ component_match_add(dev, &spec->match, component_compare_dev_name,
"i2c-CLSA0100:00-cs35l41-hda.0");
- component_match_add(dev, &spec->match, comp_match_dev_name,
+ component_match_add(dev, &spec->match, component_compare_dev_name,
"i2c-CLSA0100:00-cs35l41-hda.1");
ret = component_master_add_with_match(dev, &comp_master_ops, spec->match);
if (ret)
--
2.18.0
^ permalink raw reply related [flat|nested] 163+ messages in thread
* Re: [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev
2022-02-14 6:08 ` Yong Wu via iommu
` (3 preceding siblings ...)
(?)
@ 2022-02-14 8:03 ` Heiko Stübner
-1 siblings, 0 replies; 163+ messages in thread
From: Heiko Stübner @ 2022-02-14 8:03 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel, Yong Wu
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Sandy Huang, linux-rockchip
Am Montag, 14. Februar 2022, 07:08:09 CET schrieb Yong Wu:
> Use the common compare helper from component.
>
> Cc: Sandy Huang <hjc@rock-chips.com>
> Cc: "Heiko St¨¹bner" <heiko@sntech.de>
> Cc: linux-rockchip@lists.infradead.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
> ---
> drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> index bec207de4544..3c2f2d6ecc36 100644
> --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> +++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> @@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
> return false;
> }
>
> -static int compare_dev(struct device *dev, void *data)
> -{
> - return dev == (struct device *)data;
> -}
> -
> static void rockchip_drm_match_remove(struct device *dev)
> {
> struct device_link *link;
> @@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
> break;
>
> device_link_add(dev, d, DL_FLAG_STATELESS);
> - component_match_add(dev, &match, compare_dev, d);
> + component_match_add(dev, &match, component_compare_dev, d);
> } while (true);
> }
>
>
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev
@ 2022-02-14 8:03 ` Heiko Stübner
0 siblings, 0 replies; 163+ messages in thread
From: Heiko Stübner @ 2022-02-14 8:03 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel, Yong Wu
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, linux-rockchip, Sandy Huang,
James Wang, Chun-Kuang Hu, Arnd Bergmann, linux-mediatek,
Hsin-Yi Wang, Matthias Brugger, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, iommu, Robin Murphy
Am Montag, 14. Februar 2022, 07:08:09 CET schrieb Yong Wu:
> Use the common compare helper from component.
>
> Cc: Sandy Huang <hjc@rock-chips.com>
> Cc: "Heiko St¨¹bner" <heiko@sntech.de>
> Cc: linux-rockchip@lists.infradead.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
> ---
> drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> index bec207de4544..3c2f2d6ecc36 100644
> --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> +++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> @@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
> return false;
> }
>
> -static int compare_dev(struct device *dev, void *data)
> -{
> - return dev == (struct device *)data;
> -}
> -
> static void rockchip_drm_match_remove(struct device *dev)
> {
> struct device_link *link;
> @@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
> break;
>
> device_link_add(dev, d, DL_FLAG_STATELESS);
> - component_match_add(dev, &match, compare_dev, d);
> + component_match_add(dev, &match, component_compare_dev, d);
> } while (true);
> }
>
>
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev
@ 2022-02-14 8:03 ` Heiko Stübner
0 siblings, 0 replies; 163+ messages in thread
From: Heiko Stübner @ 2022-02-14 8:03 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel, Yong Wu
Cc: Liviu Dudau, linux-kernel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, Joerg Roedel, iommu,
linux-rockchip, Sandy Huang, James Wang, Yong Wu, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-arm-kernel, AngeloGioacchino Del Regno, srv_heupstream,
Stephen Boyd, Sebastian Reichel, Tomasz Figa, Robin Murphy
Am Montag, 14. Februar 2022, 07:08:09 CET schrieb Yong Wu:
> Use the common compare helper from component.
>
> Cc: Sandy Huang <hjc@rock-chips.com>
> Cc: "Heiko St¨¹bner" <heiko@sntech.de>
> Cc: linux-rockchip@lists.infradead.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
> ---
> drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> index bec207de4544..3c2f2d6ecc36 100644
> --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> +++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> @@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
> return false;
> }
>
> -static int compare_dev(struct device *dev, void *data)
> -{
> - return dev == (struct device *)data;
> -}
> -
> static void rockchip_drm_match_remove(struct device *dev)
> {
> struct device_link *link;
> @@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
> break;
>
> device_link_add(dev, d, DL_FLAG_STATELESS);
> - component_match_add(dev, &match, compare_dev, d);
> + component_match_add(dev, &match, component_compare_dev, d);
> } while (true);
> }
>
>
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev
@ 2022-02-14 8:03 ` Heiko Stübner
0 siblings, 0 replies; 163+ messages in thread
From: Heiko Stübner @ 2022-02-14 8:03 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel, Yong Wu
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Sandy Huang, linux-rockchip
Am Montag, 14. Februar 2022, 07:08:09 CET schrieb Yong Wu:
> Use the common compare helper from component.
>
> Cc: Sandy Huang <hjc@rock-chips.com>
> Cc: "Heiko St¨¹bner" <heiko@sntech.de>
> Cc: linux-rockchip@lists.infradead.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
> ---
> drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> index bec207de4544..3c2f2d6ecc36 100644
> --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> +++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> @@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
> return false;
> }
>
> -static int compare_dev(struct device *dev, void *data)
> -{
> - return dev == (struct device *)data;
> -}
> -
> static void rockchip_drm_match_remove(struct device *dev)
> {
> struct device_link *link;
> @@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
> break;
>
> device_link_add(dev, d, DL_FLAG_STATELESS);
> - component_match_add(dev, &match, compare_dev, d);
> + component_match_add(dev, &match, component_compare_dev, d);
> } while (true);
> }
>
>
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev
@ 2022-02-14 8:03 ` Heiko Stübner
0 siblings, 0 replies; 163+ messages in thread
From: Heiko Stübner @ 2022-02-14 8:03 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel, Yong Wu
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Sandy Huang, linux-rockchip
Am Montag, 14. Februar 2022, 07:08:09 CET schrieb Yong Wu:
> Use the common compare helper from component.
>
> Cc: Sandy Huang <hjc@rock-chips.com>
> Cc: "Heiko St¨¹bner" <heiko@sntech.de>
> Cc: linux-rockchip@lists.infradead.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
> ---
> drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> index bec207de4544..3c2f2d6ecc36 100644
> --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> +++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> @@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
> return false;
> }
>
> -static int compare_dev(struct device *dev, void *data)
> -{
> - return dev == (struct device *)data;
> -}
> -
> static void rockchip_drm_match_remove(struct device *dev)
> {
> struct device_link *link;
> @@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
> break;
>
> device_link_add(dev, d, DL_FLAG_STATELESS);
> - component_match_add(dev, &match, compare_dev, d);
> + component_match_add(dev, &match, component_compare_dev, d);
> } while (true);
> }
>
>
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev
@ 2022-02-14 8:03 ` Heiko Stübner
0 siblings, 0 replies; 163+ messages in thread
From: Heiko Stübner @ 2022-02-14 8:03 UTC (permalink / raw)
To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel, Yong Wu
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
Sandy Huang, linux-rockchip
Am Montag, 14. Februar 2022, 07:08:09 CET schrieb Yong Wu:
> Use the common compare helper from component.
>
> Cc: Sandy Huang <hjc@rock-chips.com>
> Cc: "Heiko St¨¹bner" <heiko@sntech.de>
> Cc: linux-rockchip@lists.infradead.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
> ---
> drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> index bec207de4544..3c2f2d6ecc36 100644
> --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> +++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> @@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
> return false;
> }
>
> -static int compare_dev(struct device *dev, void *data)
> -{
> - return dev == (struct device *)data;
> -}
> -
> static void rockchip_drm_match_remove(struct device *dev)
> {
> struct device_link *link;
> @@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
> break;
>
> device_link_add(dev, d, DL_FLAG_STATELESS);
> - component_match_add(dev, &match, compare_dev, d);
> + component_match_add(dev, &match, component_compare_dev, d);
> } while (true);
> }
>
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 06/23] drm/ingenic: Make use of the helper component_compare_of
2022-02-14 6:08 ` Yong Wu via iommu
` (2 preceding siblings ...)
(?)
@ 2022-02-14 10:03 ` Paul Cercueil
-1 siblings, 0 replies; 163+ messages in thread
From: Paul Cercueil @ 2022-02-14 10:03 UTC (permalink / raw)
To: Yong Wu
Cc: David Airlie, Liviu Dudau, dri-devel, Sebastian Reichel,
Srinivas Kandagatla, Laurent Pinchart, Will Deacon,
Krzysztof Kozlowski, James Wang, linux-mips, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-arm-kernel, AngeloGioacchino Del Regno, srv_heupstream,
Stephen Boyd, Greg Kroah-Hartman, linux-kernel, iommu,
Daniel Vetter, Robin Murphy
Hi,
Le lun., févr. 14 2022 at 14:08:02 +0800, Yong Wu
<yong.wu@mediatek.com> a écrit :
> Use the common compare helper from component.
>
> Cc: Paul Cercueil <paul@crapouillou.net>
> Cc: linux-mips@vger.kernel.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Cheers,
-Paul
> ---
> drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> index b4943a56be09..23b8f012b418 100644
> --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> @@ -1322,11 +1322,6 @@ static int
> ingenic_drm_bind_with_components(struct device *dev)
> return ingenic_drm_bind(dev, true);
> }
>
> -static int compare_of(struct device *dev, void *data)
> -{
> - return dev->of_node == data;
> -}
> -
> static void ingenic_drm_unbind(struct device *dev)
> {
> struct ingenic_drm *priv = dev_get_drvdata(dev);
> @@ -1360,7 +1355,7 @@ static int ingenic_drm_probe(struct
> platform_device *pdev)
> if (!np)
> return ingenic_drm_bind(dev, false);
>
> - drm_of_component_match_add(dev, &match, compare_of, np);
> + drm_of_component_match_add(dev, &match, component_compare_of, np);
> of_node_put(np);
>
> return component_master_add_with_match(dev, &ingenic_master_ops,
> match);
> --
> 2.18.0
>
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 06/23] drm/ingenic: Make use of the helper component_compare_of
@ 2022-02-14 10:03 ` Paul Cercueil
0 siblings, 0 replies; 163+ messages in thread
From: Paul Cercueil @ 2022-02-14 10:03 UTC (permalink / raw)
To: Yong Wu
Cc: David Airlie, Liviu Dudau, dri-devel, Sebastian Reichel,
Srinivas Kandagatla, Laurent Pinchart, Will Deacon,
Krzysztof Kozlowski, Joerg Roedel, James Wang, linux-mips,
Chun-Kuang Hu, Arnd Bergmann, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, Greg Kroah-Hartman, linux-kernel,
Tomasz Figa, iommu, Robin Murphy
Hi,
Le lun., févr. 14 2022 at 14:08:02 +0800, Yong Wu
<yong.wu@mediatek.com> a écrit :
> Use the common compare helper from component.
>
> Cc: Paul Cercueil <paul@crapouillou.net>
> Cc: linux-mips@vger.kernel.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Cheers,
-Paul
> ---
> drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> index b4943a56be09..23b8f012b418 100644
> --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> @@ -1322,11 +1322,6 @@ static int
> ingenic_drm_bind_with_components(struct device *dev)
> return ingenic_drm_bind(dev, true);
> }
>
> -static int compare_of(struct device *dev, void *data)
> -{
> - return dev->of_node == data;
> -}
> -
> static void ingenic_drm_unbind(struct device *dev)
> {
> struct ingenic_drm *priv = dev_get_drvdata(dev);
> @@ -1360,7 +1355,7 @@ static int ingenic_drm_probe(struct
> platform_device *pdev)
> if (!np)
> return ingenic_drm_bind(dev, false);
>
> - drm_of_component_match_add(dev, &match, compare_of, np);
> + drm_of_component_match_add(dev, &match, component_compare_of, np);
> of_node_put(np);
>
> return component_master_add_with_match(dev, &ingenic_master_ops,
> match);
> --
> 2.18.0
>
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 06/23] drm/ingenic: Make use of the helper component_compare_of
@ 2022-02-14 10:03 ` Paul Cercueil
0 siblings, 0 replies; 163+ messages in thread
From: Paul Cercueil @ 2022-02-14 10:03 UTC (permalink / raw)
To: Yong Wu
Cc: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel,
James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, linux-mips
Hi,
Le lun., févr. 14 2022 at 14:08:02 +0800, Yong Wu
<yong.wu@mediatek.com> a écrit :
> Use the common compare helper from component.
>
> Cc: Paul Cercueil <paul@crapouillou.net>
> Cc: linux-mips@vger.kernel.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Cheers,
-Paul
> ---
> drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> index b4943a56be09..23b8f012b418 100644
> --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> @@ -1322,11 +1322,6 @@ static int
> ingenic_drm_bind_with_components(struct device *dev)
> return ingenic_drm_bind(dev, true);
> }
>
> -static int compare_of(struct device *dev, void *data)
> -{
> - return dev->of_node == data;
> -}
> -
> static void ingenic_drm_unbind(struct device *dev)
> {
> struct ingenic_drm *priv = dev_get_drvdata(dev);
> @@ -1360,7 +1355,7 @@ static int ingenic_drm_probe(struct
> platform_device *pdev)
> if (!np)
> return ingenic_drm_bind(dev, false);
>
> - drm_of_component_match_add(dev, &match, compare_of, np);
> + drm_of_component_match_add(dev, &match, component_compare_of, np);
> of_node_put(np);
>
> return component_master_add_with_match(dev, &ingenic_master_ops,
> match);
> --
> 2.18.0
>
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 06/23] drm/ingenic: Make use of the helper component_compare_of
@ 2022-02-14 10:03 ` Paul Cercueil
0 siblings, 0 replies; 163+ messages in thread
From: Paul Cercueil @ 2022-02-14 10:03 UTC (permalink / raw)
To: Yong Wu
Cc: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel,
James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, linux-mips
Hi,
Le lun., févr. 14 2022 at 14:08:02 +0800, Yong Wu
<yong.wu@mediatek.com> a écrit :
> Use the common compare helper from component.
>
> Cc: Paul Cercueil <paul@crapouillou.net>
> Cc: linux-mips@vger.kernel.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Cheers,
-Paul
> ---
> drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> index b4943a56be09..23b8f012b418 100644
> --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> @@ -1322,11 +1322,6 @@ static int
> ingenic_drm_bind_with_components(struct device *dev)
> return ingenic_drm_bind(dev, true);
> }
>
> -static int compare_of(struct device *dev, void *data)
> -{
> - return dev->of_node == data;
> -}
> -
> static void ingenic_drm_unbind(struct device *dev)
> {
> struct ingenic_drm *priv = dev_get_drvdata(dev);
> @@ -1360,7 +1355,7 @@ static int ingenic_drm_probe(struct
> platform_device *pdev)
> if (!np)
> return ingenic_drm_bind(dev, false);
>
> - drm_of_component_match_add(dev, &match, compare_of, np);
> + drm_of_component_match_add(dev, &match, component_compare_of, np);
> of_node_put(np);
>
> return component_master_add_with_match(dev, &ingenic_master_ops,
> match);
> --
> 2.18.0
>
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 06/23] drm/ingenic: Make use of the helper component_compare_of
@ 2022-02-14 10:03 ` Paul Cercueil
0 siblings, 0 replies; 163+ messages in thread
From: Paul Cercueil @ 2022-02-14 10:03 UTC (permalink / raw)
To: Yong Wu
Cc: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel,
James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, linux-mips
Hi,
Le lun., févr. 14 2022 at 14:08:02 +0800, Yong Wu
<yong.wu@mediatek.com> a écrit :
> Use the common compare helper from component.
>
> Cc: Paul Cercueil <paul@crapouillou.net>
> Cc: linux-mips@vger.kernel.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Cheers,
-Paul
> ---
> drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> index b4943a56be09..23b8f012b418 100644
> --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
> @@ -1322,11 +1322,6 @@ static int
> ingenic_drm_bind_with_components(struct device *dev)
> return ingenic_drm_bind(dev, true);
> }
>
> -static int compare_of(struct device *dev, void *data)
> -{
> - return dev->of_node == data;
> -}
> -
> static void ingenic_drm_unbind(struct device *dev)
> {
> struct ingenic_drm *priv = dev_get_drvdata(dev);
> @@ -1360,7 +1355,7 @@ static int ingenic_drm_probe(struct
> platform_device *pdev)
> if (!np)
> return ingenic_drm_bind(dev, false);
>
> - drm_of_component_match_add(dev, &match, compare_of, np);
> + drm_of_component_match_add(dev, &match, component_compare_of, np);
> of_node_put(np);
>
> return component_master_add_with_match(dev, &ingenic_master_ops,
> match);
> --
> 2.18.0
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
2022-02-14 6:08 ` Yong Wu via iommu
` (3 preceding siblings ...)
(?)
@ 2022-02-14 12:40 ` Mark Brown
-1 siblings, 0 replies; 163+ messages in thread
From: Mark Brown @ 2022-02-14 12:40 UTC (permalink / raw)
To: Yong Wu
Cc: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel,
James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Liam Girdwood,
Jaroslav Kysela, Takashi Iwai, Pierre-Louis Bossart, alsa-devel
[-- Attachment #1: Type: text/plain, Size: 210 bytes --]
On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
> Use the common compare/release helpers from component.
What's the story with dependencies here? I've just got this one patch
with no cover letter...
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 12:40 ` Mark Brown
0 siblings, 0 replies; 163+ messages in thread
From: Mark Brown @ 2022-02-14 12:40 UTC (permalink / raw)
To: Yong Wu
Cc: alsa-devel, Liam Girdwood, David Airlie, Liviu Dudau, dri-devel,
Sebastian Reichel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Pierre-Louis Bossart, Krzysztof Kozlowski,
Takashi Iwai, James Wang, Chun-Kuang Hu, Arnd Bergmann,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, Jaroslav Kysela,
linux-arm-kernel, AngeloGioacchino Del Regno, srv_heupstream,
Stephen Boyd, Greg Kroah-Hartman, linux-kernel, iommu,
Daniel Vetter, Robin Murphy
[-- Attachment #1.1: Type: text/plain, Size: 210 bytes --]
On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
> Use the common compare/release helpers from component.
What's the story with dependencies here? I've just got this one patch
with no cover letter...
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 156 bytes --]
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 12:40 ` Mark Brown
0 siblings, 0 replies; 163+ messages in thread
From: Mark Brown @ 2022-02-14 12:40 UTC (permalink / raw)
To: Yong Wu
Cc: alsa-devel, Liam Girdwood, David Airlie, Liviu Dudau, dri-devel,
Sebastian Reichel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Pierre-Louis Bossart, Krzysztof Kozlowski,
Joerg Roedel, Takashi Iwai, James Wang, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
Jaroslav Kysela, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, Greg Kroah-Hartman, linux-kernel,
Tomasz Figa, iommu, Robin Murphy
[-- Attachment #1: Type: text/plain, Size: 210 bytes --]
On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
> Use the common compare/release helpers from component.
What's the story with dependencies here? I've just got this one patch
with no cover letter...
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 12:40 ` Mark Brown
0 siblings, 0 replies; 163+ messages in thread
From: Mark Brown @ 2022-02-14 12:40 UTC (permalink / raw)
To: Yong Wu
Cc: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel,
James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Liam Girdwood,
Jaroslav Kysela, Takashi Iwai, Pierre-Louis Bossart, alsa-devel
[-- Attachment #1.1: Type: text/plain, Size: 210 bytes --]
On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
> Use the common compare/release helpers from component.
What's the story with dependencies here? I've just got this one patch
with no cover letter...
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 12:40 ` Mark Brown
0 siblings, 0 replies; 163+ messages in thread
From: Mark Brown @ 2022-02-14 12:40 UTC (permalink / raw)
To: Yong Wu
Cc: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel,
James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Liam Girdwood,
Jaroslav Kysela, Takashi Iwai, Pierre-Louis Bossart, alsa-devel
[-- Attachment #1.1: Type: text/plain, Size: 210 bytes --]
On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
> Use the common compare/release helpers from component.
What's the story with dependencies here? I've just got this one patch
with no cover letter...
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 12:40 ` Mark Brown
0 siblings, 0 replies; 163+ messages in thread
From: Mark Brown @ 2022-02-14 12:40 UTC (permalink / raw)
To: Yong Wu
Cc: alsa-devel, Liam Girdwood, David Airlie, Liviu Dudau, dri-devel,
Sebastian Reichel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Pierre-Louis Bossart, Krzysztof Kozlowski,
Joerg Roedel, Takashi Iwai, Rob Clark, James Wang, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-arm-kernel, AngeloGioacchino Del Regno, srv_heupstream,
Stephen Boyd, Greg Kroah-Hartman, linux-kernel, Tomasz Figa,
iommu, Daniel Vetter, Robin Murphy
[-- Attachment #1: Type: text/plain, Size: 210 bytes --]
On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
> Use the common compare/release helpers from component.
What's the story with dependencies here? I've just got this one patch
with no cover letter...
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
2022-02-14 12:40 ` Mark Brown
` (3 preceding siblings ...)
(?)
@ 2022-02-14 12:43 ` AngeloGioacchino Del Regno
-1 siblings, 0 replies; 163+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-02-14 12:43 UTC (permalink / raw)
To: Mark Brown, Yong Wu
Cc: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel,
James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, Hsin-Yi Wang, Robin Murphy,
Tomasz Figa, srv_heupstream, Rob Clark, Srinivas Kandagatla,
Sebastian Reichel, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
Pierre-Louis Bossart, alsa-devel
Il 14/02/22 13:40, Mark Brown ha scritto:
> On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
>> Use the common compare/release helpers from component.
>
> What's the story with dependencies here? I've just got this one patch
> with no cover letter...
Hello Mark,
I agree, the cover letter should be sent to everyone; Yong, please add the
proper Ccs to it next time.
Anyway, context:
https://patchwork.kernel.org/project/linux-mediatek/cover/20220214060819.7334-1-yong.wu@mediatek.com/
Cheers,
Angelo
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 12:43 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 163+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-02-14 12:43 UTC (permalink / raw)
To: Mark Brown, Yong Wu
Cc: alsa-devel, Liam Girdwood, David Airlie, Liviu Dudau, dri-devel,
Sebastian Reichel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Pierre-Louis Bossart, Krzysztof Kozlowski,
Takashi Iwai, James Wang, Chun-Kuang Hu, Arnd Bergmann,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, Jaroslav Kysela,
linux-arm-kernel, srv_heupstream, Stephen Boyd,
Greg Kroah-Hartman, linux-kernel, iommu, Daniel Vetter,
Robin Murphy
Il 14/02/22 13:40, Mark Brown ha scritto:
> On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
>> Use the common compare/release helpers from component.
>
> What's the story with dependencies here? I've just got this one patch
> with no cover letter...
Hello Mark,
I agree, the cover letter should be sent to everyone; Yong, please add the
proper Ccs to it next time.
Anyway, context:
https://patchwork.kernel.org/project/linux-mediatek/cover/20220214060819.7334-1-yong.wu@mediatek.com/
Cheers,
Angelo
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 12:43 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 163+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-02-14 12:43 UTC (permalink / raw)
To: Mark Brown, Yong Wu
Cc: alsa-devel, Liam Girdwood, David Airlie, Liviu Dudau, dri-devel,
Sebastian Reichel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Pierre-Louis Bossart, Krzysztof Kozlowski,
Joerg Roedel, Takashi Iwai, James Wang, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
Jaroslav Kysela, linux-arm-kernel, srv_heupstream, Stephen Boyd,
Greg Kroah-Hartman, linux-kernel, Tomasz Figa, iommu,
Robin Murphy
Il 14/02/22 13:40, Mark Brown ha scritto:
> On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
>> Use the common compare/release helpers from component.
>
> What's the story with dependencies here? I've just got this one patch
> with no cover letter...
Hello Mark,
I agree, the cover letter should be sent to everyone; Yong, please add the
proper Ccs to it next time.
Anyway, context:
https://patchwork.kernel.org/project/linux-mediatek/cover/20220214060819.7334-1-yong.wu@mediatek.com/
Cheers,
Angelo
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 12:43 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 163+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-02-14 12:43 UTC (permalink / raw)
To: Mark Brown, Yong Wu
Cc: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel,
James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, Hsin-Yi Wang, Robin Murphy,
Tomasz Figa, srv_heupstream, Rob Clark, Srinivas Kandagatla,
Sebastian Reichel, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
Pierre-Louis Bossart, alsa-devel
Il 14/02/22 13:40, Mark Brown ha scritto:
> On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
>> Use the common compare/release helpers from component.
>
> What's the story with dependencies here? I've just got this one patch
> with no cover letter...
Hello Mark,
I agree, the cover letter should be sent to everyone; Yong, please add the
proper Ccs to it next time.
Anyway, context:
https://patchwork.kernel.org/project/linux-mediatek/cover/20220214060819.7334-1-yong.wu@mediatek.com/
Cheers,
Angelo
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 12:43 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 163+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-02-14 12:43 UTC (permalink / raw)
To: Mark Brown, Yong Wu
Cc: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel,
James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, Hsin-Yi Wang, Robin Murphy,
Tomasz Figa, srv_heupstream, Rob Clark, Srinivas Kandagatla,
Sebastian Reichel, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
Pierre-Louis Bossart, alsa-devel
Il 14/02/22 13:40, Mark Brown ha scritto:
> On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
>> Use the common compare/release helpers from component.
>
> What's the story with dependencies here? I've just got this one patch
> with no cover letter...
Hello Mark,
I agree, the cover letter should be sent to everyone; Yong, please add the
proper Ccs to it next time.
Anyway, context:
https://patchwork.kernel.org/project/linux-mediatek/cover/20220214060819.7334-1-yong.wu@mediatek.com/
Cheers,
Angelo
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-14 12:43 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 163+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-02-14 12:43 UTC (permalink / raw)
To: Mark Brown, Yong Wu
Cc: alsa-devel, Liam Girdwood, David Airlie, Liviu Dudau, dri-devel,
Sebastian Reichel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Pierre-Louis Bossart, Krzysztof Kozlowski,
Joerg Roedel, Takashi Iwai, Rob Clark, James Wang, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-arm-kernel, srv_heupstream, Stephen Boyd,
Greg Kroah-Hartman, linux-kernel, Tomasz Figa, iommu,
Daniel Vetter, Robin Murphy
Il 14/02/22 13:40, Mark Brown ha scritto:
> On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
>> Use the common compare/release helpers from component.
>
> What's the story with dependencies here? I've just got this one patch
> with no cover letter...
Hello Mark,
I agree, the cover letter should be sent to everyone; Yong, please add the
proper Ccs to it next time.
Anyway, context:
https://patchwork.kernel.org/project/linux-mediatek/cover/20220214060819.7334-1-yong.wu@mediatek.com/
Cheers,
Angelo
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
2022-02-14 12:43 ` AngeloGioacchino Del Regno
` (3 preceding siblings ...)
(?)
@ 2022-02-15 2:27 ` Yong Wu
-1 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-15 2:27 UTC (permalink / raw)
To: Mark Brown, AngeloGioacchino Del Regno
Cc: alsa-devel, Liam Girdwood, David Airlie, Liviu Dudau, dri-devel,
Sebastian Reichel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Pierre-Louis Bossart, Krzysztof Kozlowski,
Joerg Roedel, Takashi Iwai, James Wang, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
Jaroslav Kysela, linux-arm-kernel, srv_heupstream, Stephen Boyd,
Greg Kroah-Hartman, linux-kernel, Tomasz Figa, iommu,
Robin Murphy
On Mon, 2022-02-14 at 13:43 +0100, AngeloGioacchino Del Regno wrote:
> Il 14/02/22 13:40, Mark Brown ha scritto:
> > On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
> > > Use the common compare/release helpers from component.
> >
> > What's the story with dependencies here? I've just got this one
> > patch
> > with no cover letter...
Sorry for this. I will add in cover letter next time.
Maybe in next week. Just to see if there is any other comment.
Thanks.
>
> Hello Mark,
> I agree, the cover letter should be sent to everyone; Yong, please
> add the
> proper Ccs to it next time.
>
> Anyway, context:
>
https://patchwork.kernel.org/project/linux-mediatek/cover/20220214060819.7334-1-yong.wu@mediatek.com/
Thanks very much:)
>
> Cheers,
> Angelo
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-15 2:27 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-15 2:27 UTC (permalink / raw)
To: Mark Brown, AngeloGioacchino Del Regno
Cc: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel,
James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, Hsin-Yi Wang, Robin Murphy,
Tomasz Figa, srv_heupstream, Rob Clark, Srinivas Kandagatla,
Sebastian Reichel, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
Pierre-Louis Bossart, alsa-devel
On Mon, 2022-02-14 at 13:43 +0100, AngeloGioacchino Del Regno wrote:
> Il 14/02/22 13:40, Mark Brown ha scritto:
> > On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
> > > Use the common compare/release helpers from component.
> >
> > What's the story with dependencies here? I've just got this one
> > patch
> > with no cover letter...
Sorry for this. I will add in cover letter next time.
Maybe in next week. Just to see if there is any other comment.
Thanks.
>
> Hello Mark,
> I agree, the cover letter should be sent to everyone; Yong, please
> add the
> proper Ccs to it next time.
>
> Anyway, context:
>
https://patchwork.kernel.org/project/linux-mediatek/cover/20220214060819.7334-1-yong.wu@mediatek.com/
Thanks very much:)
>
> Cheers,
> Angelo
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-15 2:27 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu via iommu @ 2022-02-15 2:27 UTC (permalink / raw)
To: Mark Brown, AngeloGioacchino Del Regno
Cc: alsa-devel, Liam Girdwood, David Airlie, Liviu Dudau, dri-devel,
Sebastian Reichel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Pierre-Louis Bossart, Krzysztof Kozlowski,
Takashi Iwai, James Wang, Chun-Kuang Hu, Arnd Bergmann,
linux-mediatek, Hsin-Yi Wang, Matthias Brugger, Jaroslav Kysela,
linux-arm-kernel, srv_heupstream, Stephen Boyd,
Greg Kroah-Hartman, linux-kernel, iommu, Daniel Vetter,
Robin Murphy
On Mon, 2022-02-14 at 13:43 +0100, AngeloGioacchino Del Regno wrote:
> Il 14/02/22 13:40, Mark Brown ha scritto:
> > On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
> > > Use the common compare/release helpers from component.
> >
> > What's the story with dependencies here? I've just got this one
> > patch
> > with no cover letter...
Sorry for this. I will add in cover letter next time.
Maybe in next week. Just to see if there is any other comment.
Thanks.
>
> Hello Mark,
> I agree, the cover letter should be sent to everyone; Yong, please
> add the
> proper Ccs to it next time.
>
> Anyway, context:
>
https://patchwork.kernel.org/project/linux-mediatek/cover/20220214060819.7334-1-yong.wu@mediatek.com/
Thanks very much:)
>
> Cheers,
> Angelo
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-15 2:27 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-15 2:27 UTC (permalink / raw)
To: Mark Brown, AngeloGioacchino Del Regno
Cc: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel,
James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, Hsin-Yi Wang, Robin Murphy,
Tomasz Figa, srv_heupstream, Rob Clark, Srinivas Kandagatla,
Sebastian Reichel, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
Pierre-Louis Bossart, alsa-devel
On Mon, 2022-02-14 at 13:43 +0100, AngeloGioacchino Del Regno wrote:
> Il 14/02/22 13:40, Mark Brown ha scritto:
> > On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
> > > Use the common compare/release helpers from component.
> >
> > What's the story with dependencies here? I've just got this one
> > patch
> > with no cover letter...
Sorry for this. I will add in cover letter next time.
Maybe in next week. Just to see if there is any other comment.
Thanks.
>
> Hello Mark,
> I agree, the cover letter should be sent to everyone; Yong, please
> add the
> proper Ccs to it next time.
>
> Anyway, context:
>
https://patchwork.kernel.org/project/linux-mediatek/cover/20220214060819.7334-1-yong.wu@mediatek.com/
Thanks very much:)
>
> Cheers,
> Angelo
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-15 2:27 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-15 2:27 UTC (permalink / raw)
To: Mark Brown, AngeloGioacchino Del Regno
Cc: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel,
James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, Hsin-Yi Wang, Robin Murphy,
Tomasz Figa, srv_heupstream, Rob Clark, Srinivas Kandagatla,
Sebastian Reichel, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
Pierre-Louis Bossart, alsa-devel
On Mon, 2022-02-14 at 13:43 +0100, AngeloGioacchino Del Regno wrote:
> Il 14/02/22 13:40, Mark Brown ha scritto:
> > On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
> > > Use the common compare/release helpers from component.
> >
> > What's the story with dependencies here? I've just got this one
> > patch
> > with no cover letter...
Sorry for this. I will add in cover letter next time.
Maybe in next week. Just to see if there is any other comment.
Thanks.
>
> Hello Mark,
> I agree, the cover letter should be sent to everyone; Yong, please
> add the
> proper Ccs to it next time.
>
> Anyway, context:
>
https://patchwork.kernel.org/project/linux-mediatek/cover/20220214060819.7334-1-yong.wu@mediatek.com/
Thanks very much:)
>
> Cheers,
> Angelo
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 20/23] ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of
@ 2022-02-15 2:27 ` Yong Wu
0 siblings, 0 replies; 163+ messages in thread
From: Yong Wu @ 2022-02-15 2:27 UTC (permalink / raw)
To: Mark Brown, AngeloGioacchino Del Regno
Cc: alsa-devel, Liam Girdwood, David Airlie, Liviu Dudau, dri-devel,
Sebastian Reichel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Pierre-Louis Bossart, Krzysztof Kozlowski,
Joerg Roedel, Takashi Iwai, Rob Clark, James Wang, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-arm-kernel, srv_heupstream, Stephen Boyd,
Greg Kroah-Hartman, linux-kernel, Tomasz Figa, iommu,
Daniel Vetter, Robin Murphy
On Mon, 2022-02-14 at 13:43 +0100, AngeloGioacchino Del Regno wrote:
> Il 14/02/22 13:40, Mark Brown ha scritto:
> > On Mon, Feb 14, 2022 at 02:08:16PM +0800, Yong Wu wrote:
> > > Use the common compare/release helpers from component.
> >
> > What's the story with dependencies here? I've just got this one
> > patch
> > with no cover letter...
Sorry for this. I will add in cover letter next time.
Maybe in next week. Just to see if there is any other comment.
Thanks.
>
> Hello Mark,
> I agree, the cover letter should be sent to everyone; Yong, please
> add the
> proper Ccs to it next time.
>
> Anyway, context:
>
https://patchwork.kernel.org/project/linux-mediatek/cover/20220214060819.7334-1-yong.wu@mediatek.com/
Thanks very much:)
>
> Cheers,
> Angelo
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
2022-02-14 6:08 ` Yong Wu
` (2 preceding siblings ...)
(?)
@ 2022-02-15 20:46 ` Helge Deller
-1 siblings, 0 replies; 163+ messages in thread
From: Helge Deller @ 2022-02-15 20:46 UTC (permalink / raw)
To: Yong Wu, Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, linux-omap,
linux-fbdev
On 2/14/22 07:08, Yong Wu wrote:
> Use the common compare helper from component.
>
> Cc: Helge Deller <deller@gmx.de>
> Cc: linux-omap@vger.kernel.org
> Cc: linux-fbdev@vger.kernel.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Applied to the fbdev for-next branch.
Thanks!
Helge
> drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss.c b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> index a6b1c1598040..45b9d3cf3860 100644
> --- a/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> +++ b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> @@ -1193,12 +1193,6 @@ static const struct component_master_ops dss_component_ops = {
> .unbind = dss_unbind,
> };
>
> -static int dss_component_compare(struct device *dev, void *data)
> -{
> - struct device *child = data;
> - return dev == child;
> -}
> -
> static int dss_add_child_component(struct device *dev, void *data)
> {
> struct component_match **match = data;
> @@ -1212,7 +1206,7 @@ static int dss_add_child_component(struct device *dev, void *data)
> if (strstr(dev_name(dev), "rfbi"))
> return 0;
>
> - component_match_add(dev->parent, match, dss_component_compare, dev);
> + component_match_add(dev->parent, match, component_compare_dev, dev);
>
> return 0;
> }
>
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
@ 2022-02-15 20:46 ` Helge Deller
0 siblings, 0 replies; 163+ messages in thread
From: Helge Deller @ 2022-02-15 20:46 UTC (permalink / raw)
To: Yong Wu, Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: linux-fbdev, Liviu Dudau, linux-kernel, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Krzysztof Kozlowski, James Wang,
Chun-Kuang Hu, Arnd Bergmann, linux-mediatek, Hsin-Yi Wang,
Matthias Brugger, linux-omap, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, iommu, Robin Murphy
On 2/14/22 07:08, Yong Wu wrote:
> Use the common compare helper from component.
>
> Cc: Helge Deller <deller@gmx.de>
> Cc: linux-omap@vger.kernel.org
> Cc: linux-fbdev@vger.kernel.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Applied to the fbdev for-next branch.
Thanks!
Helge
> drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss.c b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> index a6b1c1598040..45b9d3cf3860 100644
> --- a/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> +++ b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> @@ -1193,12 +1193,6 @@ static const struct component_master_ops dss_component_ops = {
> .unbind = dss_unbind,
> };
>
> -static int dss_component_compare(struct device *dev, void *data)
> -{
> - struct device *child = data;
> - return dev == child;
> -}
> -
> static int dss_add_child_component(struct device *dev, void *data)
> {
> struct component_match **match = data;
> @@ -1212,7 +1206,7 @@ static int dss_add_child_component(struct device *dev, void *data)
> if (strstr(dev_name(dev), "rfbi"))
> return 0;
>
> - component_match_add(dev->parent, match, dss_component_compare, dev);
> + component_match_add(dev->parent, match, component_compare_dev, dev);
>
> return 0;
> }
>
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
@ 2022-02-15 20:46 ` Helge Deller
0 siblings, 0 replies; 163+ messages in thread
From: Helge Deller @ 2022-02-15 20:46 UTC (permalink / raw)
To: Yong Wu, Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, linux-omap,
linux-fbdev
On 2/14/22 07:08, Yong Wu wrote:
> Use the common compare helper from component.
>
> Cc: Helge Deller <deller@gmx.de>
> Cc: linux-omap@vger.kernel.org
> Cc: linux-fbdev@vger.kernel.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Applied to the fbdev for-next branch.
Thanks!
Helge
> drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss.c b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> index a6b1c1598040..45b9d3cf3860 100644
> --- a/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> +++ b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> @@ -1193,12 +1193,6 @@ static const struct component_master_ops dss_component_ops = {
> .unbind = dss_unbind,
> };
>
> -static int dss_component_compare(struct device *dev, void *data)
> -{
> - struct device *child = data;
> - return dev == child;
> -}
> -
> static int dss_add_child_component(struct device *dev, void *data)
> {
> struct component_match **match = data;
> @@ -1212,7 +1206,7 @@ static int dss_add_child_component(struct device *dev, void *data)
> if (strstr(dev_name(dev), "rfbi"))
> return 0;
>
> - component_match_add(dev->parent, match, dss_component_compare, dev);
> + component_match_add(dev->parent, match, component_compare_dev, dev);
>
> return 0;
> }
>
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
@ 2022-02-15 20:46 ` Helge Deller
0 siblings, 0 replies; 163+ messages in thread
From: Helge Deller @ 2022-02-15 20:46 UTC (permalink / raw)
To: Yong Wu, Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: linux-fbdev, Liviu Dudau, linux-kernel, Srinivas Kandagatla,
Laurent Pinchart, Will Deacon, Krzysztof Kozlowski, Joerg Roedel,
iommu, James Wang, Chun-Kuang Hu, Arnd Bergmann, linux-mediatek,
Hsin-Yi Wang, Matthias Brugger, linux-omap, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
Sebastian Reichel, Tomasz Figa, Robin Murphy
On 2/14/22 07:08, Yong Wu wrote:
> Use the common compare helper from component.
>
> Cc: Helge Deller <deller@gmx.de>
> Cc: linux-omap@vger.kernel.org
> Cc: linux-fbdev@vger.kernel.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Applied to the fbdev for-next branch.
Thanks!
Helge
> drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss.c b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> index a6b1c1598040..45b9d3cf3860 100644
> --- a/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> +++ b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> @@ -1193,12 +1193,6 @@ static const struct component_master_ops dss_component_ops = {
> .unbind = dss_unbind,
> };
>
> -static int dss_component_compare(struct device *dev, void *data)
> -{
> - struct device *child = data;
> - return dev == child;
> -}
> -
> static int dss_add_child_component(struct device *dev, void *data)
> {
> struct component_match **match = data;
> @@ -1212,7 +1206,7 @@ static int dss_add_child_component(struct device *dev, void *data)
> if (strstr(dev_name(dev), "rfbi"))
> return 0;
>
> - component_match_add(dev->parent, match, dss_component_compare, dev);
> + component_match_add(dev->parent, match, component_compare_dev, dev);
>
> return 0;
> }
>
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
@ 2022-02-15 20:46 ` Helge Deller
0 siblings, 0 replies; 163+ messages in thread
From: Helge Deller @ 2022-02-15 20:46 UTC (permalink / raw)
To: Yong Wu, Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, linux-omap,
linux-fbdev
On 2/14/22 07:08, Yong Wu wrote:
> Use the common compare helper from component.
>
> Cc: Helge Deller <deller@gmx.de>
> Cc: linux-omap@vger.kernel.org
> Cc: linux-fbdev@vger.kernel.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Applied to the fbdev for-next branch.
Thanks!
Helge
> drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss.c b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> index a6b1c1598040..45b9d3cf3860 100644
> --- a/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> +++ b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
> @@ -1193,12 +1193,6 @@ static const struct component_master_ops dss_component_ops = {
> .unbind = dss_unbind,
> };
>
> -static int dss_component_compare(struct device *dev, void *data)
> -{
> - struct device *child = data;
> - return dev == child;
> -}
> -
> static int dss_add_child_component(struct device *dev, void *data)
> {
> struct component_match **match = data;
> @@ -1212,7 +1206,7 @@ static int dss_add_child_component(struct device *dev, void *data)
> if (strstr(dev_name(dev), "rfbi"))
> return 0;
>
> - component_match_add(dev->parent, match, dss_component_compare, dev);
> + component_match_add(dev->parent, match, component_compare_dev, dev);
>
> return 0;
> }
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
2022-02-15 20:46 ` Helge Deller
` (2 preceding siblings ...)
(?)
@ 2022-02-25 11:07 ` Greg Kroah-Hartman
-1 siblings, 0 replies; 163+ messages in thread
From: Greg Kroah-Hartman @ 2022-02-25 11:07 UTC (permalink / raw)
To: Helge Deller
Cc: Yong Wu, David Airlie, Daniel Vetter, dri-devel, James Wang,
Liviu Dudau, iommu, Matthias Brugger, Krzysztof Kozlowski,
linux-kernel, Joerg Roedel, Will Deacon, Arnd Bergmann,
Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, linux-omap,
linux-fbdev
On Tue, Feb 15, 2022 at 09:46:24PM +0100, Helge Deller wrote:
> On 2/14/22 07:08, Yong Wu wrote:
> > Use the common compare helper from component.
> >
> > Cc: Helge Deller <deller@gmx.de>
> > Cc: linux-omap@vger.kernel.org
> > Cc: linux-fbdev@vger.kernel.org
> > Signed-off-by: Yong Wu <yong.wu@mediatek.com>
>
> Applied to the fbdev for-next branch.
That will break the build, it needs patch 1/23 to build properly :(
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
@ 2022-02-25 11:07 ` Greg Kroah-Hartman
0 siblings, 0 replies; 163+ messages in thread
From: Greg Kroah-Hartman @ 2022-02-25 11:07 UTC (permalink / raw)
To: Helge Deller
Cc: linux-fbdev, David Airlie, Liviu Dudau, dri-devel,
Sebastian Reichel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, James Wang, Chun-Kuang Hu,
Arnd Bergmann, linux-mediatek, Hsin-Yi Wang, Matthias Brugger,
linux-omap, linux-arm-kernel, AngeloGioacchino Del Regno,
srv_heupstream, Stephen Boyd, linux-kernel, iommu, Daniel Vetter,
Robin Murphy
On Tue, Feb 15, 2022 at 09:46:24PM +0100, Helge Deller wrote:
> On 2/14/22 07:08, Yong Wu wrote:
> > Use the common compare helper from component.
> >
> > Cc: Helge Deller <deller@gmx.de>
> > Cc: linux-omap@vger.kernel.org
> > Cc: linux-fbdev@vger.kernel.org
> > Signed-off-by: Yong Wu <yong.wu@mediatek.com>
>
> Applied to the fbdev for-next branch.
That will break the build, it needs patch 1/23 to build properly :(
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
@ 2022-02-25 11:07 ` Greg Kroah-Hartman
0 siblings, 0 replies; 163+ messages in thread
From: Greg Kroah-Hartman @ 2022-02-25 11:07 UTC (permalink / raw)
To: Helge Deller
Cc: Yong Wu, David Airlie, Daniel Vetter, dri-devel, James Wang,
Liviu Dudau, iommu, Matthias Brugger, Krzysztof Kozlowski,
linux-kernel, Joerg Roedel, Will Deacon, Arnd Bergmann,
Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, linux-omap,
linux-fbdev
On Tue, Feb 15, 2022 at 09:46:24PM +0100, Helge Deller wrote:
> On 2/14/22 07:08, Yong Wu wrote:
> > Use the common compare helper from component.
> >
> > Cc: Helge Deller <deller@gmx.de>
> > Cc: linux-omap@vger.kernel.org
> > Cc: linux-fbdev@vger.kernel.org
> > Signed-off-by: Yong Wu <yong.wu@mediatek.com>
>
> Applied to the fbdev for-next branch.
That will break the build, it needs patch 1/23 to build properly :(
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
@ 2022-02-25 11:07 ` Greg Kroah-Hartman
0 siblings, 0 replies; 163+ messages in thread
From: Greg Kroah-Hartman @ 2022-02-25 11:07 UTC (permalink / raw)
To: Helge Deller
Cc: linux-fbdev, David Airlie, Liviu Dudau, dri-devel,
Sebastian Reichel, Srinivas Kandagatla, Laurent Pinchart,
Will Deacon, Krzysztof Kozlowski, Joerg Roedel, James Wang,
Yong Wu, Chun-Kuang Hu, Arnd Bergmann, linux-mediatek,
Hsin-Yi Wang, Matthias Brugger, linux-omap, linux-arm-kernel,
AngeloGioacchino Del Regno, srv_heupstream, Stephen Boyd,
linux-kernel, Tomasz Figa, iommu, Robin Murphy
On Tue, Feb 15, 2022 at 09:46:24PM +0100, Helge Deller wrote:
> On 2/14/22 07:08, Yong Wu wrote:
> > Use the common compare helper from component.
> >
> > Cc: Helge Deller <deller@gmx.de>
> > Cc: linux-omap@vger.kernel.org
> > Cc: linux-fbdev@vger.kernel.org
> > Signed-off-by: Yong Wu <yong.wu@mediatek.com>
>
> Applied to the fbdev for-next branch.
That will break the build, it needs patch 1/23 to build properly :(
^ permalink raw reply [flat|nested] 163+ messages in thread
* Re: [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
@ 2022-02-25 11:07 ` Greg Kroah-Hartman
0 siblings, 0 replies; 163+ messages in thread
From: Greg Kroah-Hartman @ 2022-02-25 11:07 UTC (permalink / raw)
To: Helge Deller
Cc: Yong Wu, David Airlie, Daniel Vetter, dri-devel, James Wang,
Liviu Dudau, iommu, Matthias Brugger, Krzysztof Kozlowski,
linux-kernel, Joerg Roedel, Will Deacon, Arnd Bergmann,
Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
Rob Clark, Srinivas Kandagatla, Sebastian Reichel, linux-omap,
linux-fbdev
On Tue, Feb 15, 2022 at 09:46:24PM +0100, Helge Deller wrote:
> On 2/14/22 07:08, Yong Wu wrote:
> > Use the common compare helper from component.
> >
> > Cc: Helge Deller <deller@gmx.de>
> > Cc: linux-omap@vger.kernel.org
> > Cc: linux-fbdev@vger.kernel.org
> > Signed-off-by: Yong Wu <yong.wu@mediatek.com>
>
> Applied to the fbdev for-next branch.
That will break the build, it needs patch 1/23 to build properly :(
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 163+ messages in thread
end of thread, other threads:[~2022-02-25 11:08 UTC | newest]
Thread overview: 163+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 6:07 [PATCH 00/23] component: Add common helpers for compare/release Yong Wu
2022-02-14 6:07 ` Yong Wu
2022-02-14 6:07 ` Yong Wu
2022-02-14 6:07 ` Yong Wu
2022-02-14 6:07 ` Yong Wu via iommu
2022-02-14 6:07 ` [PATCH 01/23] component: Add common helper for compare/release functions Yong Wu
2022-02-14 6:07 ` Yong Wu
2022-02-14 6:07 ` Yong Wu
2022-02-14 6:07 ` Yong Wu
2022-02-14 6:07 ` Yong Wu via iommu
2022-02-14 6:07 ` [PATCH 02/23] drm/komeda: Make use of the helper component_compare_of Yong Wu
2022-02-14 6:07 ` Yong Wu
2022-02-14 6:07 ` Yong Wu
2022-02-14 6:07 ` Yong Wu
2022-02-14 6:07 ` Yong Wu via iommu
2022-02-14 6:07 ` [PATCH 03/23] drm/armada: Make use of the helper component_compare_of/dev_name Yong Wu
2022-02-14 6:07 ` Yong Wu
2022-02-14 6:07 ` Yong Wu
2022-02-14 6:07 ` Yong Wu
2022-02-14 6:07 ` Yong Wu via iommu
2022-02-14 6:08 ` [PATCH 04/23] drm/etnaviv: " Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 6:08 ` [PATCH 05/23] drm/hirin: Make use of the helper component_compare_of Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 6:08 ` [PATCH 06/23] drm/ingenic: " Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 10:03 ` Paul Cercueil
2022-02-14 10:03 ` Paul Cercueil
2022-02-14 10:03 ` Paul Cercueil
2022-02-14 10:03 ` Paul Cercueil
2022-02-14 10:03 ` Paul Cercueil
2022-02-14 6:08 ` [PATCH 07/23] drm/mediatek: " Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 6:08 ` [PATCH 08/23] drm/meson: " Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 6:08 ` [PATCH 09/23] drm/msm: " Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 6:08 ` [PATCH 10/23] drm/sprd: " Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 6:08 ` [PATCH 11/23] drm/sti: " Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 6:08 ` [PATCH 12/23] drm/sun4i: " Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 6:08 ` [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 8:03 ` Heiko Stübner
2022-02-14 8:03 ` Heiko Stübner
2022-02-14 8:03 ` Heiko Stübner
2022-02-14 8:03 ` Heiko Stübner
2022-02-14 8:03 ` Heiko Stübner
2022-02-14 8:03 ` Heiko Stübner
2022-02-14 6:08 ` [PATCH 14/23] drm/exynos: " Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 6:08 ` [PATCH 15/23] drm/mcde: " Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 6:08 ` [PATCH 16/23] drm/omap: dss: " Yong Wu via iommu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` [PATCH 17/23] drm/vc4: " Yong Wu via iommu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` [PATCH 18/23] drm: of: Make use of the helper component_release_of Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` [PATCH 19/23] iommu/mediatek: Make use of the helper component_compare/release_of Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 6:08 ` [PATCH 20/23] ASoC: codecs: wcd938x: " Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 12:40 ` Mark Brown
2022-02-14 12:40 ` Mark Brown
2022-02-14 12:40 ` Mark Brown
2022-02-14 12:40 ` Mark Brown
2022-02-14 12:40 ` Mark Brown
2022-02-14 12:40 ` Mark Brown
2022-02-14 12:43 ` AngeloGioacchino Del Regno
2022-02-14 12:43 ` AngeloGioacchino Del Regno
2022-02-14 12:43 ` AngeloGioacchino Del Regno
2022-02-14 12:43 ` AngeloGioacchino Del Regno
2022-02-14 12:43 ` AngeloGioacchino Del Regno
2022-02-14 12:43 ` AngeloGioacchino Del Regno
2022-02-15 2:27 ` Yong Wu
2022-02-15 2:27 ` Yong Wu
2022-02-15 2:27 ` Yong Wu
2022-02-15 2:27 ` Yong Wu
2022-02-15 2:27 ` Yong Wu via iommu
2022-02-15 2:27 ` Yong Wu
2022-02-14 6:08 ` [PATCH 21/23] power: supply: ab8500: Make use of the helper component_compare_dev Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu via iommu
2022-02-14 6:08 ` [PATCH 22/23] video: omapfb: dss: " Yong Wu via iommu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-15 20:46 ` Helge Deller
2022-02-15 20:46 ` Helge Deller
2022-02-15 20:46 ` Helge Deller
2022-02-15 20:46 ` Helge Deller
2022-02-15 20:46 ` Helge Deller
2022-02-25 11:07 ` Greg Kroah-Hartman
2022-02-25 11:07 ` Greg Kroah-Hartman
2022-02-25 11:07 ` Greg Kroah-Hartman
2022-02-25 11:07 ` Greg Kroah-Hartman
2022-02-25 11:07 ` Greg Kroah-Hartman
2022-02-14 6:08 ` [PATCH 23/23] ALSA: hda/realtek: Make use of the helper component_compare_dev_name Yong Wu via iommu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
2022-02-14 6:08 ` Yong Wu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.