ALSA: i2c: cleanup: change parameter to pointer
We actually pass an array of 7 chars not 5. This silences a smatch warning. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Родитель
5cd165e705
Коммит
f11947c7c5
|
@ -307,7 +307,7 @@ struct ak4113 {
|
|||
|
||||
int snd_ak4113_create(struct snd_card *card, ak4113_read_t *read,
|
||||
ak4113_write_t *write,
|
||||
const unsigned char pgm[AK4113_WRITABLE_REGS],
|
||||
const unsigned char *pgm,
|
||||
void *private_data, struct ak4113 **r_ak4113);
|
||||
void snd_ak4113_reg_write(struct ak4113 *ak4113, unsigned char reg,
|
||||
unsigned char mask, unsigned char val);
|
||||
|
|
|
@ -70,7 +70,7 @@ static int snd_ak4113_dev_free(struct snd_device *device)
|
|||
}
|
||||
|
||||
int snd_ak4113_create(struct snd_card *card, ak4113_read_t *read,
|
||||
ak4113_write_t *write, const unsigned char pgm[5],
|
||||
ak4113_write_t *write, const unsigned char *pgm,
|
||||
void *private_data, struct ak4113 **r_ak4113)
|
||||
{
|
||||
struct ak4113 *chip;
|
||||
|
|
Загрузка…
Ссылка в новой задаче