android_kernel_samsung_a7y1.../sound
Philipp Klocke 6a1bd84ac7 ALSA: i2c/cs8427: Fix int to char conversion
[ Upstream commit eb7ebfa3c1989aa8e59d5e68ab3cddd7df1bfb27 ]

Compiling with clang yields the following warning:

sound/i2c/cs8427.c:140:31: warning: implicit conversion from 'int'
to 'char' changes value from 160 to -96 [-Wconstant-conversion]
    data[0] = CS8427_REG_AUTOINC | CS8427_REG_CORU_DATABUF;
            ~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~

Because CS8427_REG_AUTOINC is defined as 128, it is too big for a
char field.
So change data from char to unsigned char, that it can hold the value.

This patch does not change the generated code.

Signed-off-by: Philipp Klocke <philipp97kl@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 12:35:00 +02:00
..
aoa
arm
atmel
core ALSA: seq: Do error checks at creating system ports 2020-04-07 12:26:42 +02:00
drivers
firewire ALSA: isight: fix leak of reference to firewire unit in error path of .probe callback 2020-04-07 12:34:13 +02:00
hda Revert "ALSA: hda: Flush interrupts on disabling" 2020-04-07 09:28:46 +02:00
i2c ALSA: i2c/cs8427: Fix int to char conversion 2020-04-07 12:35:00 +02:00
isa
mips
oss
parisc
pci ALSA: hda/sigmatel - Disable automute for Elo VuPoint 2020-04-07 12:32:36 +02:00
pcmcia
ppc
sh
soc ASoC: sgtl5000: avoid division by zero if lo_vag is zero 2020-04-07 12:27:03 +02:00
sparc
spi
synth
usb ALSA: usb-audio: not submit urb for stopped endpoint 2020-04-07 12:23:34 +02:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c sound: fix a memory leak bug 2020-04-06 20:38:13 +02:00
sound_firmware.c