PGA11x driver belongs in analog/ not input/

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4978 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-07-25 18:58:45 +00:00
parent cf48e3c73f
commit 7e70b4bdf6
8 changed files with 44 additions and 34 deletions
+6
View File
@@ -58,6 +58,12 @@ ifeq ($(CONFIG_ADC),y)
CSRCS += adc.c
# Amplifiers/multiplexers
ifeq ($(CONFIG_ADC_PGA11X),y)
CSRCS += pga11x.c
endif
# Include ADC device drivers
ifeq ($(CONFIG_ADC_ADS125X),y)
@@ -1,5 +1,5 @@
/****************************************************************************
* drivers/input/pga11x.c
* drivers/analog/pga11x.c
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -48,9 +48,9 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/input/pga11x.h>
#include <nuttx/analog/pga11x.h>
#if defined(CONFIG_INPUT) && defined(CONFIG_INPUT_PGA11X)
#if defined(CONFIG_ADC) && defined(CONFIG_ADC_PGA11X)
/****************************************************************************
* Pre-processor Definitions
@@ -576,5 +576,5 @@ int pga11x_enable(PGA11X_HANDLE handle)
return OK;
}
#endif /* CONFIG_INPUT && CONFIG_INPUT_PGA11X */
#endif /* CONFIG_ADC && CONFIG_ADC_PGA11X */
-4
View File
@@ -63,10 +63,6 @@ ifneq ($(CONFIG_INPUT_STMPE811_TEMP_DISABLE),y)
endif
endif
ifeq ($(CONFIG_INPUT_PGA11X),y)
CSRCS += pga11x.c
endif
# Include input device driver build support
DEPPATH += --dep-path input