Rev 1123 | Rev 1321 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1123 | Rev 1125 | ||
---|---|---|---|
Line 177... | Line 177... | ||
177 | /* vesa says 2.2 ms is enough, 1 jiffy doesn't seem to always |
177 | /* vesa says 2.2 ms is enough, 1 jiffy doesn't seem to always |
178 | * make this, 2 jiffies is a lot more reliable */ |
178 | * make this, 2 jiffies is a lot more reliable */ |
179 | i2c->algo.timeout = 2; |
179 | i2c->algo.timeout = 2; |
180 | i2c->algo.data = i2c; |
180 | i2c->algo.data = i2c; |
181 | i2c->rec = *rec; |
181 | i2c->rec = *rec; |
182 | i2c_set_adapdata(&i2c->adapter, i2c); |
182 | // i2c_set_adapdata(&i2c->adapter, i2c); |
Line 183... | Line 183... | ||
183 | 183 | ||
184 | ret = i2c_bit_add_bus(&i2c->adapter); |
184 | ret = i2c_bit_add_bus(&i2c->adapter); |
185 | if (ret) { |
185 | if (ret) { |
186 | DRM_INFO("Failed to register i2c %s\n", name); |
186 | DRM_INFO("Failed to register i2c %s\n", name); |
Line 197... | Line 197... | ||
197 | void radeon_i2c_destroy(struct radeon_i2c_chan *i2c) |
197 | void radeon_i2c_destroy(struct radeon_i2c_chan *i2c) |
198 | { |
198 | { |
199 | if (!i2c) |
199 | if (!i2c) |
200 | return; |
200 | return; |
Line 201... | Line 201... | ||
201 | 201 | ||
202 | i2c_del_adapter(&i2c->adapter); |
202 | // i2c_del_adapter(&i2c->adapter); |
203 | kfree(i2c); |
203 | kfree(i2c); |
Line 204... | Line 204... | ||
204 | } |
204 | } |
205 | 205 |