]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
commitf6f808c8e1c4a3b7e3e0a6cb81541ec615aeb5fd
tree1755f20d63cc3066a16263961272fbd3f6b077c5
parentc167a6fc6ed78a300c29181a6caf9ae1b9993289
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