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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
---
 sound/soc/ti/ams-delta.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.25.1




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux