staging: vc04_services: vchiq_arm: Split driver static and runtime data
authorUmang Jain <umang.jain@ideasonboard.com>
Fri, 12 Apr 2024 07:57:34 +0000 (13:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Apr 2024 14:53:32 +0000 (16:53 +0200)
commit1c9e16b73166bcc89b3d64674b60943ec6142c3e
tree69cacd9fe1ea1428929e5be0c117c92bde76d0c3
parente82b22539a89d48140cddca896a53e174b7e05a9
staging: vc04_services: vchiq_arm: Split driver static and runtime data

vchiq_drvdata combines two types of book-keeping data. There is
platform-specific static data (for e.g. cache lines size) and then
data needed for book-keeping at runtime.

Split the data into two structures: struct vchiq_platform_info and
struct vchiq_drv_mgmt. The vchiq_drv_mgmt is allocated at runtime
during probe and will be extended in subsequent patches to remove
all global variables allocated.

No functional changes intended in this patch.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Stefan Wahren <wahrenst@gmx.net>
Link: https://lore.kernel.org/r/20240412075743.60712-3-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c