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)
commit21240f9bc1b0ac925cd18b74618327a110022332
treeef5496cbf9dbd7f5032f0a8d7d7c9646efbd58a4
parentd724502a9d7a46f4a56a1663b1f50d2dc9d1ef40
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