summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c
diff options
context:
space:
mode:
authorPatrick Boettcher <devnull@localhost>2005-04-29 17:06:05 +0000
committerPatrick Boettcher <devnull@localhost>2005-04-29 17:06:05 +0000
commit9c21fd640621a3b55eeea528ed0b12e941a9ea43 (patch)
tree301f4808e8113f78b02934bf09fce0e0f356ed7b /linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c
parentd3760654aa8e4cfd1ab6fc2f2efa3928171a59cb (diff)
downloadmediapointer-dvb-s2-9c21fd640621a3b55eeea528ed0b12e941a9ea43.tar.gz
mediapointer-dvb-s2-9c21fd640621a3b55eeea528ed0b12e941a9ea43.tar.bz2
added comments to dvb-usb.h to better describe the dvb-usb structure
renamed some fields
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c b/linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c
index 4f027e542..baab40cf9 100644
--- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c
+++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c
@@ -34,15 +34,15 @@ int dvb_usb_i2c_init(struct dvb_usb_device *d)
if ((ret = i2c_add_adapter(&d->i2c_adap)) < 0)
err("could not add i2c adapter");
- d->init_state |= DVB_USB_STATE_I2C;
+ d->state |= DVB_USB_STATE_I2C;
return ret;
}
int dvb_usb_i2c_exit(struct dvb_usb_device *d)
{
- if (d->init_state & DVB_USB_STATE_I2C)
+ if (d->state & DVB_USB_STATE_I2C)
i2c_del_adapter(&d->i2c_adap);
- d->init_state &= ~DVB_USB_STATE_I2C;
+ d->state &= ~DVB_USB_STATE_I2C;
return 0;
}