Skip to contentSkip to conversation

ice1712: tiny patch defining i2c eeprom addr to header file

PATCH Applied Konstantinos Tsimpoukas 2 participants 2 messages Nov 5, 2017 – Nov 6, 2017 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ice1712: tiny patch defining i2c eeprom addr to header file

---
 sound/pci/ice1712/ice1712.c | 2 +-
 sound/pci/ice1712/ice1712.h | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
sound/pci/ice1712/ice1712.c +1 -1
index 0e66afa..f1fe497 100644
@@ -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;
 
sound/pci/ice1712/ice1712.h +2 -1
index 5cfba09..8ae8742 100644
@@ -218,8 +218,9 @@
 
 
 /*
- *
+ * I2C EEPROM Address
  */
+#define ICE_I2C_EEPROM_ADDR		0xA0
 
 struct snd_ice1712;
 
Signature · 1 line
2.7.4