]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
drm/nv50-/i2c: kill some unused struct members
authorBen Skeggs <bskeggs@redhat.com>
Mon, 18 Aug 2014 21:22:32 +0000 (07:22 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 2 Dec 2014 05:43:44 +0000 (15:43 +1000)
Left-over from before a rework a while back.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/i2c/nv50.h
drivers/gpu/drm/nouveau/core/subdev/i2c/nv94.c
drivers/gpu/drm/nouveau/core/subdev/i2c/nvd0.c

index 5d2a77421c7408f909018a9ef46d0d041208b223..290cf7db682c1c184e63d8f3b735d2f4afbd1506 100644 (file)
@@ -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;
 };
 
index f59c3a25546285dfe9304cbc7a86b5319d56a836..60fdd4884cd91c234a0882ec5ba36ac4bf00bf06 100644 (file)
@@ -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;
 }
 
index 364ddb1c5f034d527d0f4e8566018ca242e14c10..ff50ed79e17599170b096a9582e197ee5c257cf3 100644 (file)
@@ -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;
 }