Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vc04_services: bcm2835-audio: avoid the use of typedef for function pointers

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>

authored by

Gaston Gonzalez and committed by
Greg Kroah-Hartman
95b47a04 512cdc60

+3 -9
+3 -9
drivers/staging/vc04_services/bcm2835-audio/bcm2835.c
··· 52 52 return 0; 53 53 } 54 54 55 - typedef int (*bcm2835_audio_newpcm_func)(struct bcm2835_chip *chip, 56 - const char *name, 57 - enum snd_bcm2835_route route, 58 - u32 numchannels); 59 - 60 - typedef int (*bcm2835_audio_newctl_func)(struct bcm2835_chip *chip); 61 - 62 55 struct bcm2835_audio_driver { 63 56 struct device_driver driver; 64 57 const char *shortname; 65 58 const char *longname; 66 59 int minchannels; 67 - bcm2835_audio_newpcm_func newpcm; 68 - bcm2835_audio_newctl_func newctl; 60 + int (*newpcm)(struct bcm2835_chip *chip, const char *name, 61 + enum snd_bcm2835_route route, u32 numchannels); 62 + int (*newctl)(struct bcm2835_chip *chip); 69 63 enum snd_bcm2835_route route; 70 64 }; 71 65