summaryrefslogtreecommitdiff
path: root/eepromer
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2012-04-26 10:10:22 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2012-04-26 10:10:22 +0000
commit5762df4407c567ef602201abaac884a317267122 (patch)
tree44f8ed60748dc8f37fdd69f10547965cedfcc70f /eepromer
parent6c1dbcb2a0b1d18a3f75031c303ce90ca8ecf2b4 (diff)
downloadi2c-tools-5762df4407c567ef602201abaac884a317267122.tar.gz
i2c-dev: Move SMBus helper functions to include/i2c/smbus.h
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6048 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'eepromer')
-rw-r--r--eepromer/24cXX.c3
-rw-r--r--eepromer/24cXX.h2
-rw-r--r--eepromer/eeprom.c2
-rw-r--r--eepromer/eepromer.c2
4 files changed, 8 insertions, 1 deletions
diff --git a/eepromer/24cXX.c b/eepromer/24cXX.c
index 00a21fd..6a0b610 100644
--- a/eepromer/24cXX.c
+++ b/eepromer/24cXX.c
@@ -18,11 +18,14 @@
#include <unistd.h>
#include <stdlib.h>
#include <linux/fs.h>
+#include <linux/i2c.h>
+#include <linux/i2c-dev.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <assert.h>
#include <string.h>
+#include <i2c/smbus.h>
#include "24cXX.h"
static int i2c_write_1b(struct eeprom *e, __u8 buf)
diff --git a/eepromer/24cXX.h b/eepromer/24cXX.h
index 5edb310..6b3885b 100644
--- a/eepromer/24cXX.h
+++ b/eepromer/24cXX.h
@@ -15,7 +15,7 @@
***************************************************************************/
#ifndef _24CXX_H_
#define _24CXX_H_
-#include <linux/i2c-dev.h>
+#include <linux/types.h>
#define EEPROM_TYPE_UNKNOWN 0
#define EEPROM_TYPE_8BIT_ADDR 1
diff --git a/eepromer/eeprom.c b/eepromer/eeprom.c
index 2dd064d..78f5481 100644
--- a/eepromer/eeprom.c
+++ b/eepromer/eeprom.c
@@ -2,6 +2,7 @@
This program is hereby placed into the public domain.
Of course the program is provided without warranty of any kind.
*/
+#include <sys/ioctl.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
@@ -9,6 +10,7 @@ Of course the program is provided without warranty of any kind.
#include <fcntl.h>
#include <string.h>
#include <time.h>
+#include <linux/i2c.h>
#include <linux/i2c-dev.h>
/*
diff --git a/eepromer/eepromer.c b/eepromer/eepromer.c
index 0d81271..1536b15 100644
--- a/eepromer/eepromer.c
+++ b/eepromer/eepromer.c
@@ -1,3 +1,4 @@
+#include <sys/ioctl.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
@@ -5,6 +6,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <time.h>
+#include <linux/i2c.h>
#include <linux/i2c-dev.h>