Update to the latest (mod-19990118) kernel archive

I really hope I did not forget an add or remove. If strange things happen
when you compile, please let me know.

There may still be problems with the EXPORT_* stuff; it seems to work now
for kernel 2.0.36pre19, but it may give trouble for earlier kernels. We
need to check that.

Some i2c modules may be a bit verbose at this moment.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@184 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1999-01-29 13:40:25 +00:00
1 parent a9ed098e1a
commit 634cb32ac0
18 files changed
+62 -264

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@
#include <linux/kernel.h>
#include "i2c.h"
#ifdef SPINLOCK
#ifdef I2C_SPINLOCK
#include <asm/spinlock.h>
#else
#include <asm/semaphore.h>
+4 -4
View File
@@ -35,8 +35,8 @@
*/
#include <asm/types.h>
/* SPINLOCK is defined in i2c.h. */
#ifdef SPINLOCK
/* I2C_SPINLOCK is defined in i2c.h. */
#ifdef I2C_SPINLOCK
#include <asm/spinlock.h>
#else
#include <asm/semaphore.h>
@@ -104,14 +104,14 @@ struct isa_algorithm {
/* An adapter is a specifc instance of a bus: for each detected bus, there will
be an adapter. Its operation is controlled by an algorithm.
SPINLOCK must be the same as declared in i2c.h.
I2C_SPINLOCK must be the same as declared in i2c.h.
This structure is essentially the same as i2c_algorithm. */
struct isa_adapter {
char name[32];
unsigned int id;
struct isa_algorithm *algo;
void *data;
#ifdef SPINLOCK
#ifdef I2C_SPINLOCK
spinlock_t lock;
unsigned long lockflags;
#else
+4 -4
View File
@@ -54,8 +54,8 @@ union smbus_data {
#ifdef __KERNEL__
/* SPINLOCK is defined in i2c.h. */
#ifdef SPINLOCK
/* I2C_SPINLOCK is defined in i2c.h. */
#ifdef I2C_SPINLOCK
#include <asm/spinlock.h>
#else
#include <asm/semaphore.h>
@@ -118,14 +118,14 @@ struct smbus_algorithm {
/* An adapter is a specifc instance of a bus: for each detected bus, there will
be an adapter. Its operation is controlled by an algorithm.
SPINLOCK must be the same as declared in i2c.h.
I2C_SPINLOCK must be the same as declared in i2c.h.
This structure is an extension of i2c_algorithm. */
struct smbus_adapter {
char name[32];
unsigned int id;
struct smbus_algorithm *algo;
void *data;
#ifdef SPINLOCK
#ifdef I2C_SPINLOCK
spinlock_t lock;
unsigned long lockflags;
#else
+3 -3
View File
@@ -23,7 +23,7 @@
#include <linux/stddef.h>
#include "i2c.h"
#ifdef SPINLOCK
#ifdef I2C_SPINLOCK
#include <asm/spinlock.h>
#else
#include <asm/semaphore.h>
@@ -76,14 +76,14 @@ s32 smbus_access (struct i2c_adapter * adapter, u8 addr, char read_write,
{
int res;
if ((adapter->id & ALGO_MASK) == ALGO_SMBUS) {
#ifdef SPINLOCK
#ifdef I2C_SPINLOCK
spin_lock_irqsave(&adapter->lock,adapter->lockflags);
#else
down(&adapter->lock);
#endif
res = ((struct smbus_adapter *) adapter) ->
smbus_access(addr,read_write,command,size,data);
#ifdef SPINLOCK
#ifdef I2C_SPINLOCK
spin_unlock_irqrestore(&adapter->lock,adapter->lockflags);
#else
up(&adapter->lock);