Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7468451 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nv50-/i2c: kill some unused struct members



Left-over from before a rework a while back.

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 6ef4ead1
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -10,8 +10,6 @@ struct nv50_i2c_priv {
struct nv50_i2c_port {
struct nv50_i2c_port {
	struct nouveau_i2c_port base;
	struct nouveau_i2c_port base;
	u32 addr;
	u32 addr;
	u32 ctrl;
	u32 data;
	u32 state;
	u32 state;
};
};


+0 −9
Original line number Original line Diff line number Diff line
@@ -214,10 +214,6 @@ nv94_i2c_port_ctor(struct nouveau_object *parent, struct nouveau_object *engine,


	port->state = 7;
	port->state = 7;
	port->addr = nv50_i2c_addr[info->drive];
	port->addr = nv50_i2c_addr[info->drive];
	if (info->share != DCB_I2C_UNUSED) {
		port->ctrl = 0x00e500 + (info->share * 0x50);
		port->data = 0x0000e001;
	}
	return 0;
	return 0;
}
}


@@ -244,11 +240,6 @@ nv94_aux_port_ctor(struct nouveau_object *parent, struct nouveau_object *engine,


	port->base.aux = info->drive;
	port->base.aux = info->drive;
	port->addr = info->drive;
	port->addr = info->drive;
	if (info->share != DCB_I2C_UNUSED) {
		port->ctrl = 0x00e500 + (info->drive * 0x50);
		port->data = 0x00002002;
	}

	return 0;
	return 0;
}
}


+0 −4
Original line number Original line Diff line number Diff line
@@ -66,10 +66,6 @@ nvd0_i2c_port_ctor(struct nouveau_object *parent, struct nouveau_object *engine,


	port->state = 0x00000007;
	port->state = 0x00000007;
	port->addr = 0x00d014 + (info->drive * 0x20);
	port->addr = 0x00d014 + (info->drive * 0x20);
	if (info->share != DCB_I2C_UNUSED) {
		port->ctrl = 0x00e500 + (info->share * 0x50);
		port->data = 0x0000e001;
	}
	return 0;
	return 0;
}
}