diff options
Diffstat (limited to 'drivers/media/video/bt856.c')
-rw-r--r-- | drivers/media/video/bt856.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/bt856.c b/drivers/media/video/bt856.c index 98ee2d8feb34..ab2ce4d7b5de 100644 --- a/drivers/media/video/bt856.c +++ b/drivers/media/video/bt856.c | |||
@@ -68,8 +68,8 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)"); | |||
68 | 68 | ||
69 | /* ----------------------------------------------------------------------- */ | 69 | /* ----------------------------------------------------------------------- */ |
70 | 70 | ||
71 | #define REG_OFFSET 0xDA | 71 | #define BT856_REG_OFFSET 0xDA |
72 | #define BT856_NR_REG 6 | 72 | #define BT856_NR_REG 6 |
73 | 73 | ||
74 | struct bt856 { | 74 | struct bt856 { |
75 | unsigned char reg[BT856_NR_REG]; | 75 | unsigned char reg[BT856_NR_REG]; |
@@ -89,7 +89,7 @@ bt856_write (struct i2c_client *client, | |||
89 | { | 89 | { |
90 | struct bt856 *encoder = i2c_get_clientdata(client); | 90 | struct bt856 *encoder = i2c_get_clientdata(client); |
91 | 91 | ||
92 | encoder->reg[reg - REG_OFFSET] = value; | 92 | encoder->reg[reg - BT856_REG_OFFSET] = value; |
93 | return i2c_smbus_write_byte_data(client, reg, value); | 93 | return i2c_smbus_write_byte_data(client, reg, value); |
94 | } | 94 | } |
95 | 95 | ||
@@ -103,7 +103,7 @@ bt856_setbit (struct i2c_client *client, | |||
103 | 103 | ||
104 | return bt856_write(client, reg, | 104 | return bt856_write(client, reg, |
105 | (encoder-> | 105 | (encoder-> |
106 | reg[reg - REG_OFFSET] & ~(1 << bit)) | | 106 | reg[reg - BT856_REG_OFFSET] & ~(1 << bit)) | |
107 | (value ? (1 << bit) : 0)); | 107 | (value ? (1 << bit) : 0)); |
108 | } | 108 | } |
109 | 109 | ||