[PATCH 6/7] drm/i915: i2c: unconditionally set up gpio fallback

2012-02-14 Thread Daniel Vetter
This way we can simplify the setup and teardown a bit. Because we don't actually allocate anything anymore for the force_bit case, we can now convert that into a boolean. Also and the functionality supported by the bit-banging together with what gmbus can do, so that this doesn't randomly change

[PATCH 6/7] drm/i915: i2c: unconditionally set up gpio fallback

2012-02-14 Thread Eugeni Dodonov
On Tue, Feb 14, 2012 at 19:37, Daniel Vetter wrote: >/* Hardware may not support GMBUS over these pins? Try GPIO > bitbanging instead. */ > - bus->force_bit = intel_gpio_create(bus, bus->reg0 & 0xff); > - if (!bus->force_bit) > - ret = -ENOMEM; > - else > -

Re: [PATCH 6/7] drm/i915: i2c: unconditionally set up gpio fallback

2012-02-14 Thread Eugeni Dodonov
On Tue, Feb 14, 2012 at 19:37, Daniel Vetter wrote: >/* Hardware may not support GMBUS over these pins? Try GPIO > bitbanging instead. */ > - bus->force_bit = intel_gpio_create(bus, bus->reg0 & 0xff); > - if (!bus->force_bit) > - ret = -ENOMEM; > - else > -

[PATCH 6/7] drm/i915: i2c: unconditionally set up gpio fallback

2012-02-14 Thread Daniel Vetter
This way we can simplify the setup and teardown a bit. Because we don't actually allocate anything anymore for the force_bit case, we can now convert that into a boolean. Also and the functionality supported by the bit-banging together with what gmbus can do, so that this doesn't randomly change