Skip to contentSkip to conversation

Remove CFG_EEPROM_PAGE* dependencies for temperature sensors

PATCH New Peter Tyser 2 participants 2 messages Sep 23, 2008 – Oct 14, 2008 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove CFG_EEPROM_PAGE* dependencies for temperature sensors

The checks for CFG_EEPROM_PAGE_WRITE_ENABLE and CFG_EEPROM_PAGE_WRITE_BITS in various temperature sensor drivers are not necessary

---
 drivers/hwmon/ds1621.c |    5 -----
 drivers/hwmon/lm75.c   |    6 ------
 drivers/hwmon/lm81.c   |    6 ------
 3 files changed, 0 insertions(+), 17 deletions(-)
drivers/hwmon/ds1621.c +0 -5
index 749aa26..523f8be 100644
@@ -26,11 +26,6 @@
  */
 
 #include <common.h>
-
-#if !defined(CFG_EEPROM_PAGE_WRITE_ENABLE) || \
-	(CFG_EEPROM_PAGE_WRITE_BITS < 1)
-# error "CFG_EEPROM_PAGE_WRITE_ENABLE must be defined and CFG_EEPROM_PAGE_WRITE_BITS must be greater than 1 to use CONFIG_DTT_DS1621"
-#endif
 #include <i2c.h>
 #include <dtt.h>
 
drivers/hwmon/lm75.c +0 -6
index 67a18f6..6770cdd 100644
@@ -26,12 +26,6 @@
  */
 
 #include <common.h>
-
-#if !defined(CFG_EEPROM_PAGE_WRITE_ENABLE) || \
-	(CFG_EEPROM_PAGE_WRITE_BITS < 1)
-# error "CFG_EEPROM_PAGE_WRITE_ENABLE must be defined and CFG_EEPROM_PAGE_WRITE_BITS must be greater than  1 to use CONFIG_DTT_LM75"
-#endif
-
 #include <i2c.h>
 #include <dtt.h>
 
drivers/hwmon/lm81.c +0 -6
index 9349eb6..668ee9f 100644
@@ -31,12 +31,6 @@
  */
 
 #include <common.h>
-
-#if !defined(CFG_EEPROM_PAGE_WRITE_ENABLE) || \
-	(CFG_EEPROM_PAGE_WRITE_BITS < 1)
-# error "CFG_EEPROM_PAGE_WRITE_ENABLE must be defined and CFG_EEPROM_PAGE_WRITE_BITS must be greater than  1 to use CONFIG_DTT_LM81"
-#endif
-
 #include <i2c.h>
 #include <dtt.h>
 
Signature · 1 line
1.5.4.3
#1 lore raw

PATCH 1/1 Remove CFG_EEPROM_PAGE* dependencies for temperature sensors

Dear Peter Tyser,

Quoted 9 lines · In message <[email protected]> you wrote:

The checks for CFG_EEPROM_PAGE_WRITE_ENABLE and CFG_EEPROM_PAGE_WRITE_BITS in various temperature sensor drivers are not necessary

---
 drivers/hwmon/ds1621.c |    5 -----
 drivers/hwmon/lm75.c   |    6 ------
 drivers/hwmon/lm81.c   |    6 ------
 3 files changed, 0 insertions(+), 17 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Neckties strangle clear thinking.                       -- Lin Yutang