Commit Graph
13 Commits
Author SHA1 Message Date
Jean Delvare 5467346e7b Backport SMBus PEC support rewrite from Linux 2.6:
The new SMBus PEC implementation doesn't support PEC emulation on
non-PEC non-I2C SMBus masters, so we can drop all related code.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3177 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 17:11:47 +00:00
Jean Delvare c12c82c13d Backport SMBus PEC support rewrite from Linux 2.6:
Discard I2C_FUNC_SMBUS_*_PEC defines. i2c clients are not supposed to
check for PEC support of i2c bus drivers on individual SMBus
transactions, and i2c bus drivers are not supposed to advertise them.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3176 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 12:24:30 +00:00
Jean Delvare 17e1b0c907 Add missing parentheses to some macros. Same was done to i2c.h
some months ago but we omitted to do the same in i2c-dev.h.
Drop I2C_FUNC_SMBUS_EMUL, it is meant as a convenient shortcut for plain
I2C bus drivers and has no use in user-space.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3107 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-29 18:03:23 +00:00
Jean Delvare f55e5038a3 Syncronize i2c_msg definition with i2c.h. Patch from Hideki
Iwamoto. Without this, I2C_RDWR ioctl does not work correctly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3105 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-27 18:11:57 +00:00
Jean Delvare d541844ecc Discard I2C_ACK_TEST, which was commented out and never really
existed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3103 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-26 17:35:48 +00:00
Jean Delvare 739986c1db The i2c_smbus_data union block member has a comment stating that an
extra byte is required for block process call SMBus transactions. This
has been true for three weeks around June 2002, but no more since, so
it is about time that we drop this comment and fix the definition.
Spotted by Hideki Iwamoto.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3100 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-24 09:40:14 +00:00
Kyosti Malkki 1cfe63804a (Kyösti) Cleanups
Copy sysctl enums to chip drivers from sensors.h for now,
   as seen in drivers included in 2.5 tree. File no longer included
   from kernel side.

   Apply i2c-proc change in CVS tagged -km2.

   Partial clean and sort of includes everywhere.

   Add i2c-dev.h, as a partial copy from i2c.
   Add to sensors.h from i2c-proc.h to compile things.
   Remove i2c-isa.h.

   Reflect header file changes to lib/ and prog/.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1705 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-21 20:01:27 +00:00
Frodo Looijaard 24e547b88e First round of lm_sensors changes for the new I2C tree
* The i2c package can no longer be compiled as part of the lm_sensors tree
* The archive of the i2c package is removed
* smbus, i2c-dev and i2c-proc modules and headers have been removed; they
  are now completely integrated into the i2c package
* The fake i2c.h header has been removed; this also allowed us to remove
  the ugly LM_SENSORS and TBD defines.
* A new variable I2C_HEADERS is introduced in the Makefile. This allows
  us to install the i2c headers in, for example, /usr/local/include/linux.
* All files now include <linux/i2c.h> instead of "i2c.h" and "smbus.h"

Status: 'make dep' works, all the right include files are found. 'make all'
         does not yet work.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@496 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-19 11:45:27 +00:00
Frodo Looijaard 24792039f6 Adrian's copyright patch applied
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@207 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-08 22:50:29 +00:00
Frodo Looijaard face12a534 Stuff to get rid of the LM_SENSORS define
Until now, all installed include files depended on a #defined variable
LM_SENSORS: if it was defined, other files were included as "somefile.h"
instead of <linux/somefile.h>. This was clearly dangerous, and is fixed
now, by automatically deleting the offending lines from the include file
when it is installed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@180 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-28 15:36:01 +00:00
Frodo Looijaard 50573c910d More i2c-dev fixes
* Made some smbus.h symbols visible in non-kernel mode
* Some i2c-dev.h fixes


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@164 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 20:25:21 +00:00
Frodo Looijaard a775db2fcc Completed i2c-dev. Not tested yet.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@160 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 19:07:57 +00:00
Frodo Looijaard 1b05c9e1c1 User-space header file added for i2c-dev access
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@159 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 16:46:38 +00:00