drm/nouveau/i2c: tidy up bit-bang helpers, also fixing nv50 setsda bug
authorBen Skeggs <bskeggs@redhat.com>
Thu, 17 Nov 2011 03:56:14 +0000 (13:56 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 21 Dec 2011 09:01:40 +0000 (19:01 +1000)
commit2bdb06e3cff066c546fb41152bc582a5ec73e899
tree919e599c07672b170f1a1b6c3ab9d13294974729
parent486a45c2a6c19b159602d044ab601a92cd81f524
drm/nouveau/i2c: tidy up bit-bang helpers, also fixing nv50 setsda bug

Was using nv_mask, which is bad.  Reading the reg senses the current line
states, which aren't necessarily the states we're trying to drive the
lines to.

Fixed to store SCL driver state just as we already do for SDA.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_dp.c
drivers/gpu/drm/nouveau/nouveau_i2c.c
drivers/gpu/drm/nouveau/nouveau_i2c.h