To: linus, akpm Cc: lkml Subject: [PATCH] dsp56k sparse const Atari dsp56k: Add missing `const' keywords (found by sparse) Signed-off-by: Geert Uytterhoeven --- dsp56k.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- linux-2.6.8-rc2/drivers/char/dsp56k.c 2004-05-03 20:04:47.000000000 +0200 +++ linux-m68k-2.6.8-rc2/drivers/char/dsp56k.c 2004-07-10 21:07:36.000000000 +0200 @@ -293,10 +293,10 @@ } case 2: /* 16 bit */ { - short *data; + const short *data; count /= 2; - data = (short*) buf; + data = (const short *)buf; handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, get_user(dsp56k_host_interface.data.w[1], data+n++)); return 2*n; @@ -312,10 +312,10 @@ } case 4: /* 32 bit */ { - long *data; + const long *data; count /= 4; - data = (long*) buf; + data = (const long *)buf; handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT, get_user(dsp56k_host_interface.data.l, data+n++)); return 4*n;