diff options
author | Gaston Gonzalez <gascoar@gmail.com> | 2021-12-30 08:31:25 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-30 14:19:53 +0100 |
commit | 95b47a04673fa46b2f8a0bb19cacebb714a91ed8 (patch) | |
tree | 3da6e193db8757f4937dd14f1f414f6cd78aab2b /drivers/staging | |
parent | 512cdc60e65bb9bf3f65e70b6b161f3a7561a998 (diff) | |
download | linux-stable-95b47a04673fa46b2f8a0bb19cacebb714a91ed8.tar.gz linux-stable-95b47a04673fa46b2f8a0bb19cacebb714a91ed8.tar.bz2 linux-stable-95b47a04673fa46b2f8a0bb19cacebb714a91ed8.zip |
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/vc04_services/bcm2835-audio/bcm2835.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c index c250fbef2fa3..628732d7bf6a 100644 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c @@ -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; }; |