/* -----exported algorithm data: ------------------------------------- */
static struct i2c_algorithm i2c_ks_algo = {
THIS_MODULE,
"ks0127-bug algorithm",
I2C_ALGO_BIT,
bit_xfer,
static struct i2c_driver i2c_driver_ks0127 = {
owner: THIS_MODULE,
name: KS0127_DEVNAME,
id: I2C_DRIVERID_KS0127,
flags: I2C_DF_NOTIFY,
attach_adapter: ks0127_attach,
detach_client: ks0127_detach,
command: ks0127_command,
inc_use: NULL,
dec_use: NULL
};
static struct i2c_driver i2c_driver_maven = {
name: MAVEN_DEVNAME,
id: I2C_DRIVERID_MGATVO,
attach_adapter: maven_attach,
detach_client: maven_detach,
command: maven_command,
inc_use: NULL, //inc use
dec_use: NULL //dec use
#include "ks0127.h"
#include "maven.h"
#include <linux/i2c.h>
#include "i2c-algo-ks.h"
}
static void adap_inc_use(struct i2c_adapter *adap)
{
#ifdef MODULE
MOD_INC_USE_COUNT;
#endif
static void adap_dec_use(struct i2c_adapter *adap)
MOD_DEC_USE_COUNT;
static struct i2c_algo_ks_data mga_i2c_bit_ops_tmpl = {
data: NULL,
setsda: mga_setsda,
static struct i2c_adapter mga_i2c_adap_tmpl = {
"mgai2c",
I2C_HW_B_BT848, /* needed for 2.4 tuner/msp3400*/ /* I2C_HW_B_G400 fixme */
NULL,
adap_inc_use,
adap_dec_use,
adap_reg_client,
adap_unreg_client,