drm/radeon/kms: unify i2c handling
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 6 Aug 2010 01:21:16 +0000 (21:21 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 10 Aug 2010 00:46:48 +0000 (10:46 +1000)
commitf376b94fbc0a313a606748206340cbef6c2adf6b
tree79687e8c214bf70251c242f8042bc46d6fc61020
parent1729dd33d20bddf1b3f371f3090f0cfd6be50b7a
drm/radeon/kms: unify i2c handling

Previously we added i2c buses as needed when enumerating connectors
power management, etc.  This only exposed the actual buses used and
could have lead to the same buse getting created more than once if
one buses was used for more than one purpose.  This patch sets up
all i2c buses on the card in one place and users of the buses just
point back to the one instance.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_atombios.c
drivers/gpu/drm/radeon/radeon_combios.c
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_display.c
drivers/gpu/drm/radeon/radeon_i2c.c
drivers/gpu/drm/radeon/radeon_mode.h