diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-12-05 12:03:55 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-01-10 23:57:07 +1000 |
commit | 7101a897d09bf98a38bf7998295bc0a6070b4ab8 (patch) | |
tree | 419d7c4de17307df8f37a83f4fdec58f53c92132 /nvkm/subdev/i2c/nv04.c | |
parent | 0f6561990f72040d69a3d8bf757769ec20f017ac (diff) | |
download | nouveau-7101a897d09bf98a38bf7998295bc0a6070b4ab8.tar.gz |
i2c: pad/ports do not have an engine
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'nvkm/subdev/i2c/nv04.c')
-rw-r--r-- | nvkm/subdev/i2c/nv04.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nvkm/subdev/i2c/nv04.c b/nvkm/subdev/i2c/nv04.c index b1725bdea..0db5de6a2 100644 --- a/nvkm/subdev/i2c/nv04.c +++ b/nvkm/subdev/i2c/nv04.c @@ -39,7 +39,7 @@ struct nv04_i2c_port { static void nv04_i2c_drive_scl(struct nouveau_i2c_port *base, int state) { - struct nv04_i2c_priv *priv = (void *)nv_object(base)->engine; + struct nv04_i2c_priv *priv = (void *)nouveau_i2c(base); struct nv04_i2c_port *port = (void *)base; u8 val = nv_rdvgac(priv, 0, port->drive); if (state) val |= 0x20; @@ -50,7 +50,7 @@ nv04_i2c_drive_scl(struct nouveau_i2c_port *base, int state) static void nv04_i2c_drive_sda(struct nouveau_i2c_port *base, int state) { - struct nv04_i2c_priv *priv = (void *)nv_object(base)->engine; + struct nv04_i2c_priv *priv = (void *)nouveau_i2c(base); struct nv04_i2c_port *port = (void *)base; u8 val = nv_rdvgac(priv, 0, port->drive); if (state) val |= 0x10; @@ -61,7 +61,7 @@ nv04_i2c_drive_sda(struct nouveau_i2c_port *base, int state) static int nv04_i2c_sense_scl(struct nouveau_i2c_port *base) { - struct nv04_i2c_priv *priv = (void *)nv_object(base)->engine; + struct nv04_i2c_priv *priv = (void *)nouveau_i2c(base); struct nv04_i2c_port *port = (void *)base; return !!(nv_rdvgac(priv, 0, port->sense) & 0x04); } @@ -69,7 +69,7 @@ nv04_i2c_sense_scl(struct nouveau_i2c_port *base) static int nv04_i2c_sense_sda(struct nouveau_i2c_port *base) { - struct nv04_i2c_priv *priv = (void *)nv_object(base)->engine; + struct nv04_i2c_priv *priv = (void *)nouveau_i2c(base); struct nv04_i2c_port *port = (void *)base; return !!(nv_rdvgac(priv, 0, port->sense) & 0x08); } |