Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164174
b: refs/heads/master
c: efac8aa
h: refs/heads/master
v: v3
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Sep 19, 2009
1 parent 1186191 commit 4353353
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c9230457a98f33fe3658fd0bd9b9ceffdd97b63b
refs/heads/master: efac8aaa8e747b1c1e9eff12b3d3c26f92e26018
25 changes: 0 additions & 25 deletions trunk/drivers/media/video/saa7164/saa7164-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,29 +69,6 @@ static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num)
return retval;
}

static int attach_inform(struct i2c_client *client)
{
struct saa7164_i2c *bus = i2c_get_adapdata(client->adapter);
struct saa7164_dev *dev = bus->dev;

dprintk(DBGLVL_I2C, "%s i2c attach [addr=0x%x,client=%s]\n",
client->driver->driver.name, client->addr, client->name);

if (!client->driver->command)
return 0;

return 0;
}

static int detach_inform(struct i2c_client *client)
{
struct saa7164_dev *dev = i2c_get_adapdata(client->adapter);

dprintk(DBGLVL_I2C, "i2c detach [client=%s]\n", client->name);

return 0;
}

void saa7164_call_i2c_clients(struct saa7164_i2c *bus, unsigned int cmd,
void *arg)
{
Expand All @@ -117,8 +94,6 @@ static struct i2c_adapter saa7164_i2c_adap_template = {
.name = "saa7164",
.owner = THIS_MODULE,
.algo = &saa7164_i2c_algo_template,
.client_register = attach_inform,
.client_unregister = detach_inform,
};

static struct i2c_client saa7164_i2c_client_template = {
Expand Down

0 comments on commit 4353353

Please sign in to comment.