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 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
arm A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atmel A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
core ALSA: seq: Do error checks at creating system ports 2020-04-07 12:26:42 +02:00
drivers ALSA: opl3: fix mismatch between snd_opl3_drum_switch definition and declaration 2020-04-06 15:17:05 +02:00
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 ALSA: sb8: add a check for request_region 2020-04-06 15:16:58 +02:00
mips A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
oss A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
parisc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci ALSA: hda/sigmatel - Disable automute for Elo VuPoint 2020-04-07 12:32:36 +02:00
pcmcia A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ppc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
soc ASoC: sgtl5000: avoid division by zero if lo_vag is zero 2020-04-07 12:27:03 +02:00
sparc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
spi A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
synth A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
usb ALSA: usb-audio: not submit urb for stopped endpoint 2020-04-07 12:23:34 +02:00
ac97_bus.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
last.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sound_core.c sound: fix a memory leak bug 2020-04-06 20:38:13 +02:00
sound_firmware.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30