mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-12 18:56:14 +07:00
staging: vchiq: Don't use a typedef for vchiq_callback
Linux coding style says to avoid typdefs. Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Link: https://lore.kernel.org/r/20200629150945.10720-30-nsaenzjulienne@suse.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3c5da06f99
commit
47cc5b16b0
@ -35,7 +35,10 @@ struct vchi_service {
|
||||
struct service_creation {
|
||||
struct vchi_version version;
|
||||
int32_t service_id;
|
||||
vchiq_callback callback;
|
||||
enum vchiq_status (*callback)(enum vchiq_reason reason,
|
||||
struct vchiq_header *header,
|
||||
unsigned int handle,
|
||||
void *bulk_userdata);
|
||||
void *callback_param;
|
||||
};
|
||||
|
||||
|
@ -60,19 +60,21 @@ struct vchiq_element {
|
||||
unsigned int size;
|
||||
};
|
||||
|
||||
typedef enum vchiq_status (*vchiq_callback)(enum vchiq_reason,
|
||||
struct vchiq_header *,
|
||||
unsigned int, void *);
|
||||
|
||||
struct vchiq_service_base {
|
||||
int fourcc;
|
||||
vchiq_callback callback;
|
||||
enum vchiq_status (*callback)(enum vchiq_reason reason,
|
||||
struct vchiq_header *header,
|
||||
unsigned int handle,
|
||||
void *bulk_userdata);
|
||||
void *userdata;
|
||||
};
|
||||
|
||||
struct vchiq_service_params {
|
||||
int fourcc;
|
||||
vchiq_callback callback;
|
||||
enum vchiq_status (*callback)(enum vchiq_reason reason,
|
||||
struct vchiq_header *header,
|
||||
unsigned int handle,
|
||||
void *bulk_userdata);
|
||||
void *userdata;
|
||||
short version; /* Increment for non-trivial changes */
|
||||
short version_min; /* Update for incompatible changes */
|
||||
|
Loading…
Reference in New Issue
Block a user