Well, first bug discovered
It seems that it is related to lack of definitions of some constants. These should be defined in 'linux/i2c-dev.h' include file (in fact, they are defined in 'linux/i2c.h', included from 'linux/i2c-dev.h'). As I2C support is built-in in 2.6 series kernel, maybe these files are somewhat different from that for 2.4 series. Strange, though.
I have second BP6 at work, it runs Slackware 10.1 (with 2.6 series kernel) - I will try to compile this code on that machine and look for problems.
EDIT:
It seems that it is not as simple as including 'i2c.h' in code. It seems that proper way to make it working is to use 'i2c-dev.h' file from lm_sensors package, not from kernel tree.
purrkur, please try following:
- copy 'i2c-dev.h' file from lm_sensors-x.y.z/kernel/include dir (I use 2.9.1 package) to dir containing my code
- in bp6fsb.c, exchange '#include <linux/i2c-dev.h>' with '#include "i2c-dev.h" '
- try to make...
As for me, it compiled OK. However, it compiled OK earlier, too
BTW, is there a way to modify file once posted as attachment? It seems that there will be some changes in contents of originally posted tgz...