46 lines
1.7 KiB
Diff
46 lines
1.7 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= <peron.clem@gmail.com>
|
|
Date: Fri, 30 Oct 2020 15:46:42 +0100
|
|
Subject: [PATCH] ASoC: sun4i-i2s: fix coding-style for callback definition
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Checkpatch script produces warning:
|
|
WARNING: function definition argument 'const struct sun4i_i2s *'
|
|
should also have an identifier name.
|
|
|
|
Let's fix this by adding identifier name to get_bclk_parent_rate()
|
|
and set_fmt() callback definition.
|
|
|
|
Acked-by: Maxime Ripard <mripard@kernel.org>
|
|
Signed-off-by: Clément Péron <peron.clem@gmail.com>
|
|
Link: https://lore.kernel.org/r/20201030144648.397824-10-peron.clem@gmail.com
|
|
Signed-off-by: Mark Brown <broonie@kernel.org>
|
|
---
|
|
sound/soc/sunxi/sun4i-i2s.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c
|
|
index 4f5cd850752d..4b8ca5be0a29 100644
|
|
--- a/sound/soc/sunxi/sun4i-i2s.c
|
|
+++ b/sound/soc/sunxi/sun4i-i2s.c
|
|
@@ -180,7 +180,7 @@ struct sun4i_i2s_quirks {
|
|
const struct sun4i_i2s_clk_div *mclk_dividers;
|
|
unsigned int num_mclk_dividers;
|
|
|
|
- unsigned long (*get_bclk_parent_rate)(const struct sun4i_i2s *);
|
|
+ unsigned long (*get_bclk_parent_rate)(const struct sun4i_i2s *i2s);
|
|
int (*get_sr)(unsigned int width);
|
|
int (*get_wss)(unsigned int width);
|
|
|
|
@@ -192,7 +192,7 @@ struct sun4i_i2s_quirks {
|
|
int (*set_chan_cfg)(const struct sun4i_i2s *i2s,
|
|
unsigned int channels, unsigned int slots,
|
|
unsigned int slot_width);
|
|
- int (*set_fmt)(const struct sun4i_i2s *, unsigned int);
|
|
+ int (*set_fmt)(const struct sun4i_i2s *i2s, unsigned int fmt);
|
|
};
|
|
|
|
struct sun4i_i2s {
|