diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-08-05 21:21:16 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-08-10 10:46:48 +1000 |
commit | f376b94fbc0a313a606748206340cbef6c2adf6b (patch) | |
tree | 79687e8c214bf70251c242f8042bc46d6fc61020 /drivers/gpu/drm/radeon/radeon.h | |
parent | 1729dd33d20bddf1b3f371f3090f0cfd6be50b7a (diff) | |
download | talos-op-linux-f376b94fbc0a313a606748206340cbef6c2adf6b.tar.gz talos-op-linux-f376b94fbc0a313a606748206340cbef6c2adf6b.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 3cd1c470b777..3dfcfa3ca425 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -1100,6 +1100,8 @@ struct radeon_device { struct notifier_block acpi_nb; /* only one userspace can use Hyperz features at a time */ struct drm_file *hyperz_filp; + /* i2c buses */ + struct radeon_i2c_chan *i2c_bus[RADEON_MAX_I2C_BUS]; }; int radeon_device_init(struct radeon_device *rdev, |