summaryrefslogtreecommitdiff
path: root/nvkm
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-12-05 12:12:23 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-01-10 23:57:07 +1000
commit74e97c155ad14e3cba89d4f6b646d30cf9bc2e16 (patch)
treedae97431cd48b95216c4b6008f72d98ad6f60e6e /nvkm
parent88314d3280fa785099535fa67962e48c73a07620 (diff)
downloadnouveau-74e97c155ad14e3cba89d4f6b646d30cf9bc2e16.tar.gz
disp: outp/conns do not have an engine
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'nvkm')
-rw-r--r--nvkm/engine/disp/base.c3
-rw-r--r--nvkm/engine/disp/conn.c2
-rw-r--r--nvkm/engine/disp/conn.h2
-rw-r--r--nvkm/engine/disp/outp.c6
-rw-r--r--nvkm/engine/disp/outp.h2
5 files changed, 7 insertions, 8 deletions
diff --git a/nvkm/engine/disp/base.c b/nvkm/engine/disp/base.c
index 64b84667f..c8a5f810e 100644
--- a/nvkm/engine/disp/base.c
+++ b/nvkm/engine/disp/base.c
@@ -225,8 +225,7 @@ nouveau_disp_create_(struct nouveau_object *parent,
sclass++;
}
- nouveau_object_ctor(*pobject, *pobject, oclass,
- &dcbE, i, &object);
+ nouveau_object_ctor(*pobject, NULL, oclass, &dcbE, i, &object);
hpd = max(hpd, (u8)(dcbE.connector + 1));
}
diff --git a/nvkm/engine/disp/conn.c b/nvkm/engine/disp/conn.c
index 1496b567d..498ab4b8a 100644
--- a/nvkm/engine/disp/conn.c
+++ b/nvkm/engine/disp/conn.c
@@ -86,8 +86,8 @@ nvkm_connector_create_(struct nouveau_object *parent,
int length, void **pobject)
{
static const u8 hpd[] = { 0x07, 0x08, 0x51, 0x52, 0x5e, 0x5f, 0x60 };
+ struct nouveau_disp *disp = nouveau_disp(parent);
struct nouveau_gpio *gpio = nouveau_gpio(parent);
- struct nouveau_disp *disp = (void *)engine;
struct nvkm_connector *conn;
struct nvkm_output *outp;
struct dcb_gpio_func func;
diff --git a/nvkm/engine/disp/conn.h b/nvkm/engine/disp/conn.h
index 55e5f5c82..a1bf359e5 100644
--- a/nvkm/engine/disp/conn.h
+++ b/nvkm/engine/disp/conn.h
@@ -46,7 +46,7 @@ struct nvkm_connector_impl {
#ifndef MSG
#define MSG(l,f,a...) do { \
struct nvkm_connector *_conn = (void *)conn; \
- nv_##l(nv_object(conn)->engine, "%02x:%02x%02x: "f, _conn->index, \
+ nv_##l(_conn, "%02x:%02x%02x: "f, _conn->index, \
_conn->info.location, _conn->info.type, ##a); \
} while(0)
#define DBG(f,a...) MSG(debug, f, ##a)
diff --git a/nvkm/engine/disp/outp.c b/nvkm/engine/disp/outp.c
index bbd9b6fdc..c5589c26e 100644
--- a/nvkm/engine/disp/outp.c
+++ b/nvkm/engine/disp/outp.c
@@ -62,9 +62,9 @@ nvkm_output_create_(struct nouveau_object *parent,
struct dcb_output *dcbE, int index,
int length, void **pobject)
{
- struct nouveau_bios *bios = nouveau_bios(engine);
+ struct nouveau_disp *disp = nouveau_disp(parent);
+ struct nouveau_bios *bios = nouveau_bios(parent);
struct nouveau_i2c *i2c = nouveau_i2c(parent);
- struct nouveau_disp *disp = (void *)engine;
struct nvbios_connE connE;
struct nvkm_output *outp;
u8 ver, hdr;
@@ -98,7 +98,7 @@ nvkm_output_create_(struct nouveau_object *parent,
connE.type = DCB_CONNECTOR_NONE;
}
- ret = nouveau_object_ctor(parent, engine, nvkm_connector_oclass,
+ ret = nouveau_object_ctor(parent, NULL, nvkm_connector_oclass,
&connE, outp->info.connector,
(struct nouveau_object **)&outp->conn);
if (ret < 0) {
diff --git a/nvkm/engine/disp/outp.h b/nvkm/engine/disp/outp.h
index 187f435ad..5305aa0f7 100644
--- a/nvkm/engine/disp/outp.h
+++ b/nvkm/engine/disp/outp.h
@@ -50,7 +50,7 @@ struct nvkm_output_impl {
#ifndef MSG
#define MSG(l,f,a...) do { \
struct nvkm_output *_outp = (void *)outp; \
- nv_##l(nv_object(outp)->engine, "%02x:%04x:%04x: "f, _outp->index, \
+ nv_##l(_outp, "%02x:%04x:%04x: "f, _outp->index, \
_outp->info.hasht, _outp->info.hashm, ##a); \
} while(0)
#define DBG(f,a...) MSG(debug, f, ##a)