staging: vc04_services: Remove VCHIQ_SERVICE_BASE_T typedef
authorDominic Braun <inf.braun@fau.de>
Fri, 14 Dec 2018 12:05:00 +0000 (13:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 13:47:44 +0000 (14:47 +0100)
Typedefing structs is not encouraged in the kernel.

Signed-off-by: Dominic Braun <inf.braun@fau.de>
Signed-off-by: Tobias Büttner <tobias.buettner@fau.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h

index 789aeb130639e3071ea935ca4447439da56f1158..3d7a15b9b786a9cd8d787656021f327d75f6a781 100644 (file)
@@ -281,7 +281,7 @@ typedef struct vchiq_slot_info_struct {
 } VCHIQ_SLOT_INFO_T;
 
 typedef struct vchiq_service_struct {
-       VCHIQ_SERVICE_BASE_T base;
+       struct vchiq_service_base base;
        VCHIQ_SERVICE_HANDLE_T handle;
        unsigned int ref_count;
        int srvstate;
index e5410df15c8177d62cf9644c9ba90c412539b56c..aaf1bee3ca0cd738d981dfd36935cd4d30727eab 100644 (file)
@@ -97,11 +97,11 @@ typedef VCHIQ_STATUS_T (*VCHIQ_CALLBACK_T)(VCHIQ_REASON_T,
                                           struct vchiq_header *,
                                           VCHIQ_SERVICE_HANDLE_T, void *);
 
-typedef struct vchiq_service_base_struct {
+struct vchiq_service_base {
        int fourcc;
        VCHIQ_CALLBACK_T callback;
        void *userdata;
-} VCHIQ_SERVICE_BASE_T;
+};
 
 typedef struct vchiq_service_params_struct {
        int fourcc;