#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-pcf.h>
#include "i2c-algo-pcf.h"
Go to the source code of this file.
|
#define | DEB2(x) if (i2c_debug >= 2) x |
|
#define | DEB3(x) if (i2c_debug >= 3) x /* print several statistical values */ |
|
#define | DEBPROTO(x) if (i2c_debug >= 9) x; |
|
#define | DEF_TIMEOUT 16 |
|
#define | set_pcf(adap, ctl, val) adap->setpcf(adap->data, ctl, val) |
|
#define | get_pcf(adap, ctl) adap->getpcf(adap->data, ctl) |
|
#define | get_own(adap) adap->getown(adap->data) |
|
#define | get_clock(adap) adap->getclock(adap->data) |
|
#define | i2c_outb(adap, val) adap->setpcf(adap->data, 0, val) |
|
#define | i2c_inb(adap) adap->getpcf(adap->data, 0) |
|
#define get_clock |
( |
|
adap | ) |
adap->getclock(adap->data) |
#define get_own |
( |
|
adap | ) |
adap->getown(adap->data) |
#define get_pcf |
( |
|
adap, |
|
|
|
ctl |
|
) |
| adap->getpcf(adap->data, ctl) |
#define i2c_inb |
( |
|
adap | ) |
adap->getpcf(adap->data, 0) |
#define i2c_outb |
( |
|
adap, |
|
|
|
val |
|
) |
| adap->setpcf(adap->data, 0, val) |
MODULE_DESCRIPTION |
( |
"I2C-Bus PCF8584 algorithm" |
| ) |
|