]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ALSA: ice1712: define i2c eeprom addr to header file
authorKonstantinos Tsimpoukas <kostaslinuxxx@gmail.com>
Sun, 5 Nov 2017 20:11:01 +0000 (14:11 -0600)
committerTakashi Iwai <tiwai@suse.de>
Mon, 6 Nov 2017 14:05:20 +0000 (15:05 +0100)
Signed-off-by: Konstantinos Tsimpoukas <kostaslinuxxx@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ice1712/ice1712.c
sound/pci/ice1712/ice1712.h

index 0e66afa403a37ca25908a0595cca2c32efc2307b..f1fe497c2f9df79be49ac64c3faec849d8c50cfa 100644 (file)
@@ -2285,7 +2285,7 @@ static unsigned char snd_ice1712_read_i2c(struct snd_ice1712 *ice,
 static int snd_ice1712_read_eeprom(struct snd_ice1712 *ice,
                                   const char *modelname)
 {
-       int dev = 0xa0;         /* EEPROM device address */
+       int dev = ICE_I2C_EEPROM_ADDR;  /* I2C EEPROM device address */
        unsigned int i, size;
        struct snd_ice1712_card_info * const *tbl, *c;
 
index 5cfba09c97614c752ad89d441809ddf5f946aa7f..8ae8742662a501bbf1a2ffc16cf81abb1db53f81 100644 (file)
 
 
 /*
- *
+ * I2C EEPROM Address
  */
+#define ICE_I2C_EEPROM_ADDR            0xA0
 
 struct snd_ice1712;