staging: vc04_services: bcm2835-audio: avoid the use of typedef for function pointers
authorGaston Gonzalez <gascoar@gmail.com>
Thu, 30 Dec 2021 11:31:25 +0000 (08:31 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Dec 2021 13:19:53 +0000 (14:19 +0100)
Replace typedefs bcm2835_audio_newpcm_func and bcm2835_audio_newctl_func
with equivalent declarations to better align with the linux kernel
coding style.

Signed-off-by: Gaston Gonzalez <gascoar@gmail.com>
Link: https://lore.kernel.org/r/b53a77682994bbc3ccb9b89d617dec23d0785059.1640776340.git.gascoar@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-audio/bcm2835.c

index c250fbef2fa3d0681e281937945054ceac5da306..628732d7bf6a7514f77e5f8bc9ae77e760dcae2c 100644 (file)
@@ -52,20 +52,14 @@ static int bcm2835_devm_add_vchi_ctx(struct device *dev)
        return 0;
 }
 
-typedef int (*bcm2835_audio_newpcm_func)(struct bcm2835_chip *chip,
-                                        const char *name,
-                                        enum snd_bcm2835_route route,
-                                        u32 numchannels);
-
-typedef int (*bcm2835_audio_newctl_func)(struct bcm2835_chip *chip);
-
 struct bcm2835_audio_driver {
        struct device_driver driver;
        const char *shortname;
        const char *longname;
        int minchannels;
-       bcm2835_audio_newpcm_func newpcm;
-       bcm2835_audio_newctl_func newctl;
+       int (*newpcm)(struct bcm2835_chip *chip, const char *name,
+                     enum snd_bcm2835_route route, u32 numchannels);
+       int (*newctl)(struct bcm2835_chip *chip);
        enum snd_bcm2835_route route;
 };