]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: i2c: unconditionally set up gpio fallback
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 Feb 2012 17:58:49 +0000 (18:58 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 29 Feb 2012 19:53:36 +0000 (20:53 +0100)
commit480c042e13bc89e18f466931e9a1c7f2804bbd7c
tree1755f20d63cc3066a16263961272fbd3f6b077c5
parente21f44608cfa0422b9e6772f026b05e1e68e6d21
drm/i915: i2c: unconditionally set up gpio fallback

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 any more.

v2: Chris Wilson noticed that I've mixed up && and & ...

v3: Clarify an if block as suggested by Eugeni Dodonov.

Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_i2c.c