]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms/atom: unify i2c gpio table handling
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Nov 2011 17:41:21 +0000 (12:41 -0500)
committerDave Airlie <airlied@redhat.com>
Tue, 22 Nov 2011 20:10:28 +0000 (20:10 +0000)
commit8f66d4fe9fa848a1cfd1cff109875b06c9eb5812
treeef5496cbf9dbd7f5032f0a8d7d7c9646efbd58a4
parent48dea87db54eda0c3e6b644942a4a1bfc820ca5a
drm/radeon/kms/atom: unify i2c gpio table handling

Split the quirks and i2c_rec assignment into separate
functions used by both radeon_lookup_i2c_gpio() and
radeon_atombios_i2c_init().  This avoids duplicating code
and cases where quirks were only added to one of the
functions.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_atombios.c