git: drm/i915: Fix multiple off-by-one errors in intel_i2c
Markus Pfeiffer
profmakx at crater.dragonflybsd.org
Thu Aug 14 15:07:54 PDT 2014
commit 53f7629ea2c0330e5f047665cf977c63f2ee169d
Author: Markus Pfeiffer <profmakx at dragonflybsd.org>
Date: Sat Aug 9 19:20:18 2014 +0100
drm/i915: Fix multiple off-by-one errors in intel_i2c
* the i2c pin numbers are 1 based as per intel spec but
we used the unit number as pin number, which is 0 based
* the gmbus array is 0 based, but the port number is 1 based
accesses into the port array are therefore off-by-one and this
only worked by chance before.
Summary of changes:
sys/dev/drm/i915/intel_i2c.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/53f7629ea2c0330e5f047665cf977c63f2ee169d
--
DragonFly BSD source repository
More information about the Commits
mailing list