The vchiq_drvdata structure will be extended in subsequent patches, to track the vchiq connections (currently tracked by global members). to the vchiq platform driver. Hence, prepare the struct vchiq_drvdata by moving it vchiq_core.h header, so it can be shared across. No functional changes intended in this patch. Signed-off-by: Umang Jain <umang.jain@xxxxxxxxxxxxxxxx> --- .../staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 6 ------ .../staging/vc04_services/interface/vchiq_arm/vchiq_core.h | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index 1579bd4e5263..52569517ba4e 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -29,7 +29,6 @@ #include <linux/interrupt.h> #include <linux/io.h> #include <linux/uaccess.h> -#include <soc/bcm2835/raspberrypi-firmware.h> #include "vchiq_core.h" #include "vchiq_ioctl.h" @@ -71,11 +70,6 @@ struct vchiq_state g_state; static struct vchiq_device *bcm2835_audio; static struct vchiq_device *bcm2835_camera; -struct vchiq_drvdata { - const unsigned int cache_line_size; - struct rpi_firmware *fw; -}; - static struct vchiq_drvdata bcm2835_drvdata = { .cache_line_size = 32, }; diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h index c8527551b58c..331959a91102 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h @@ -13,6 +13,8 @@ #include <linux/rcupdate.h> #include <linux/wait.h> +#include <soc/bcm2835/raspberrypi-firmware.h> + #include "../../include/linux/raspberrypi/vchiq.h" #include "vchiq_cfg.h" @@ -424,6 +426,11 @@ struct vchiq_config { short version_min; /* The minimum compatible version of VCHIQ */ }; +struct vchiq_drvdata { + const unsigned int cache_line_size; + struct rpi_firmware *fw; +}; + extern spinlock_t bulk_waiter_spinlock; extern const char * -- 2.43.0