From d43a09275a2b7aea49f4807daa7ec5825b8c04f2 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 15 May 2015 06:15:58 -0600 Subject: [PATCH] AT24 EEPROM driver. Fix some an incorrect variable name used in conditional compilation. SourceForge patch #55 --- drivers/mtd/at24xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/at24xx.c b/drivers/mtd/at24xx.c index 9a03981e88..fbb56b7108 100644 --- a/drivers/mtd/at24xx.c +++ b/drivers/mtd/at24xx.c @@ -399,7 +399,7 @@ static ssize_t at24c_read(FAR struct mtd_dev_s *dev, off_t offset, size_t nbytes /* Don't permit reads beyond the end of the memory region */ -#ifdef MTDIOC_EXTENDED +#ifdef CONFIG_AT24XX_EXTENDED if (priv->extended) { memsize = CONFIG_AT24XX_EXTSIZE; @@ -420,7 +420,7 @@ static ssize_t at24c_read(FAR struct mtd_dev_s *dev, off_t offset, size_t nbytes /* Get the I2C address, converting it to the extended I2C if needed */ addr = priv->addr; -#ifdef MTDIOC_EXTENDED +#ifdef CONFIG_AT24XX_EXTENDED if (priv->extended) { addr |= 0x08;