summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-11-22 17:16:57 -0800
committerElliott Hughes <enh@google.com>2013-11-22 17:16:57 -0800
commit54e2f9f2bcdedf1c0ffc2af1dca5f457544dd85b (patch)
treeab45b818dcb91f203cfe2b565d61023ca8698b07
parent42f5b41d22bbbad1b16b9cd3aba0512a399f32a6 (diff)
downloadlibnfc-nxp-54e2f9f2bcdedf1c0ffc2af1dca5f457544dd85b.tar.gz
Remove a dependency on a device-kernel-specific header.
This header isn't in uapi (or in the main linux kernel tree, or in the android linux kernel tree). Bug: 11559337 Change-Id: Iaf4c4c3d0fd4957f5cc16c6422873d94593bd501
-rw-r--r--Linux_x86/phDal4Nfc_i2c.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Linux_x86/phDal4Nfc_i2c.c b/Linux_x86/phDal4Nfc_i2c.c
index 8b742d9..72edb22 100644
--- a/Linux_x86/phDal4Nfc_i2c.c
+++ b/Linux_x86/phDal4Nfc_i2c.c
@@ -41,8 +41,6 @@
#include <string.h>
#endif
-#include <linux/pn544.h>
-
typedef struct
{
int nHandle;
@@ -266,6 +264,7 @@ FUNCTION: phDal4Nfc_i2c_reset
PURPOSE: Reset the PN544, using the VEN pin
-----------------------------------------------------------------------------*/
+#define PN544_SET_PWR _IOW(0xe9, 0x01, unsigned int)
int phDal4Nfc_i2c_reset(long level)
{
DAL_DEBUG("phDal4Nfc_i2c_reset, VEN level = %ld", level);