Browse Source

Fix the inclusion path to i2c-dev.h to make things build again.

git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4495 7894878c-1315-0410-8ee3-d5d059ff63e0
tags/v3.0.0
Jean Delvare 18 years ago
parent
commit
77e2e69bd1
  1. 2
      eepromer/24cXX.h
  2. 2
      eepromer/Makefile
  3. 2
      eepromer/eeprom.c
  4. 2
      eepromer/eepromer.c

2
eepromer/24cXX.h

@ -15,7 +15,7 @@
***************************************************************************/
#ifndef _24CXX_H_
#define _24CXX_H_
#include "i2c-dev.h"
#include <linux/i2c-dev.h>
#define EEPROM_TYPE_UNKNOWN 0
#define EEPROM_TYPE_8BIT_ADDR 1

2
eepromer/Makefile

@ -1,6 +1,6 @@
#eepromer Makefile
CFLAGS = -O2 -I../../kernel/include -Wall
CFLAGS = -O2 -I../include -Wall
all: eepromer eeprom eeprog

2
eepromer/eeprom.c

@ -9,7 +9,7 @@ Of course the program is provided without warranty of any kind.
#include <fcntl.h>
#include <string.h>
#include <time.h>
#include "i2c-dev.h"
#include <linux/i2c-dev.h>
/*
this program can read 24C16 (and probably smaller ones, too)

2
eepromer/eepromer.c

@ -5,7 +5,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <time.h>
#include "i2c-dev.h"
#include <linux/i2c-dev.h>
#define MAX_BLK_SIZE 64

Loading…
Cancel
Save