diff mbox series

[1/2] ASoC: ams-delta.c: fixup cx81801_receive() parameter

Message ID 87v8atq62i.wl-kuninori.morimoto.gx@renesas.com (mailing list archive)
State New, archived
Headers show
Series ASoC: ams-delta.c: use component after check | expand

Commit Message

Kuninori Morimoto Oct. 27, 2023, 12:09 a.m. UTC
This patch solves below compile error

	${LINUX}/sound/soc/ti/ams-delta.c:405:24: error: initialization\
	  of 'void (*)(struct tty_struct *, const u8 *, const u8 *,\
	  size_t)' {aka 'void (*)(struct tty_struct *, const unsigned\
	  char *, const unsigned char *, long unsigned int)'} from \
	  incompatible pointer type 'void (*)(struct tty_struct *,\
	  const u8 *, const char *, int)' {aka 'void (*)(struct\
	  tty_struct *, const unsigned char *, const char *, int)'}\
	  [-Werror=incompatibl e-pointer-types]
	  405 |         .receive_buf = cx81801_receive,
	      |                        ^~~~~~~~~~~~~~~

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/ti/ams-delta.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sound/soc/ti/ams-delta.c b/sound/soc/ti/ams-delta.c
index 687c1d969285..0c1ff65fcb86 100644
--- a/sound/soc/ti/ams-delta.c
+++ b/sound/soc/ti/ams-delta.c
@@ -337,7 +337,7 @@  static void cx81801_hangup(struct tty_struct *tty)
 
 /* Line discipline .receive_buf() */
 static void cx81801_receive(struct tty_struct *tty, const u8 *cp,
-		const char *fp, int count)
+		const u8 *fp, size_t count)
 {
 	struct snd_soc_component *component = tty->disc_data;
 	const unsigned char *c;