diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-05-03 13:32:36 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-05-03 23:21:24 -0400 |
commit | 87d7a1f9e6487bb4cc8d04bd0e27e11a97b5a7b3 (patch) | |
tree | 141be9c41f315091bc5138b8e894fbbcea59a5ed | |
parent | 63f7d9828bf55cc8ee6f460830c5285fe06bef3e (diff) |
drm/radeon/kms: set i2c adapter class to I2C_CLASS_DDC
The most common use of the radeon i2c buses is for ddc.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_i2c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_i2c.c b/drivers/gpu/drm/radeon/radeon_i2c.c index 983cbac75af0..781196db792f 100644 --- a/drivers/gpu/drm/radeon/radeon_i2c.c +++ b/drivers/gpu/drm/radeon/radeon_i2c.c | |||
@@ -888,6 +888,7 @@ struct radeon_i2c_chan *radeon_i2c_create(struct drm_device *dev, | |||
888 | 888 | ||
889 | i2c->rec = *rec; | 889 | i2c->rec = *rec; |
890 | i2c->adapter.owner = THIS_MODULE; | 890 | i2c->adapter.owner = THIS_MODULE; |
891 | i2c->adapter.class = I2C_CLASS_DDC; | ||
891 | i2c->dev = dev; | 892 | i2c->dev = dev; |
892 | i2c_set_adapdata(&i2c->adapter, i2c); | 893 | i2c_set_adapdata(&i2c->adapter, i2c); |
893 | if (rec->mm_i2c || | 894 | if (rec->mm_i2c || |
@@ -947,6 +948,7 @@ struct radeon_i2c_chan *radeon_i2c_create_dp(struct drm_device *dev, | |||
947 | 948 | ||
948 | i2c->rec = *rec; | 949 | i2c->rec = *rec; |
949 | i2c->adapter.owner = THIS_MODULE; | 950 | i2c->adapter.owner = THIS_MODULE; |
951 | i2c->adapter.class = I2C_CLASS_DDC; | ||
950 | i2c->dev = dev; | 952 | i2c->dev = dev; |
951 | snprintf(i2c->adapter.name, sizeof(i2c->adapter.name), | 953 | snprintf(i2c->adapter.name, sizeof(i2c->adapter.name), |
952 | "Radeon aux bus %s", name); | 954 | "Radeon aux bus %s", name); |