summaryrefslogtreecommitdiff
path: root/nvkm
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-08-19 07:22:32 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-12-02 15:37:18 +1000
commit04ddc211caecc8a9fb1ebb6cf9905b6a4cc7889a (patch)
tree1788afdfbe2c6acc0fef4f38d68289dbd3a09f39 /nvkm
parentf50e0a87a443e61da64a80fbc837fb2f24affc63 (diff)
downloadnouveau-04ddc211caecc8a9fb1ebb6cf9905b6a4cc7889a.tar.gz
i2c/nv50-: kill some unused struct members
Left-over from before a rework a while back. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'nvkm')
-rw-r--r--nvkm/subdev/i2c/nv50.h2
-rw-r--r--nvkm/subdev/i2c/nv94.c9
-rw-r--r--nvkm/subdev/i2c/nvd0.c4
3 files changed, 0 insertions, 15 deletions
diff --git a/nvkm/subdev/i2c/nv50.h b/nvkm/subdev/i2c/nv50.h
index 5d2a77421..290cf7db6 100644
--- a/nvkm/subdev/i2c/nv50.h
+++ b/nvkm/subdev/i2c/nv50.h
@@ -10,8 +10,6 @@ struct nv50_i2c_priv {
struct nv50_i2c_port {
struct nouveau_i2c_port base;
u32 addr;
- u32 ctrl;
- u32 data;
u32 state;
};
diff --git a/nvkm/subdev/i2c/nv94.c b/nvkm/subdev/i2c/nv94.c
index f59c3a255..60fdd4884 100644
--- a/nvkm/subdev/i2c/nv94.c
+++ b/nvkm/subdev/i2c/nv94.c
@@ -214,10 +214,6 @@ nv94_i2c_port_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
port->state = 7;
port->addr = nv50_i2c_addr[info->drive];
- if (info->share != DCB_I2C_UNUSED) {
- port->ctrl = 0x00e500 + (info->share * 0x50);
- port->data = 0x0000e001;
- }
return 0;
}
@@ -244,11 +240,6 @@ nv94_aux_port_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
port->base.aux = info->drive;
port->addr = info->drive;
- if (info->share != DCB_I2C_UNUSED) {
- port->ctrl = 0x00e500 + (info->drive * 0x50);
- port->data = 0x00002002;
- }
-
return 0;
}
diff --git a/nvkm/subdev/i2c/nvd0.c b/nvkm/subdev/i2c/nvd0.c
index 364ddb1c5..ff50ed79e 100644
--- a/nvkm/subdev/i2c/nvd0.c
+++ b/nvkm/subdev/i2c/nvd0.c
@@ -66,10 +66,6 @@ nvd0_i2c_port_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
port->state = 0x00000007;
port->addr = 0x00d014 + (info->drive * 0x20);
- if (info->share != DCB_I2C_UNUSED) {
- port->ctrl = 0x00e500 + (info->share * 0x50);
- port->data = 0x0000e001;
- }
return 0;
}