diff options
Diffstat (limited to 'bin/nv_i2c.c')
-rw-r--r-- | bin/nv_i2c.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/nv_i2c.c b/bin/nv_i2c.c index 7b1c87952..b098fb113 100644 --- a/bin/nv_i2c.c +++ b/bin/nv_i2c.c @@ -74,16 +74,16 @@ main(int argc, char **argv) if (ret) return ret; - ret = nvif_device_new(nvif_object(client), 0, NV_DEVICE_CLASS, - &(struct nv_device_class) { + ret = nvif_device_new(nvif_object(client), 0, NV_DEVICE, + &(struct nv_device_v0) { .device = ~0ULL, - .disable = ~(NV_DEVICE_DISABLE_MMIO | - NV_DEVICE_DISABLE_IDENTIFY| - NV_DEVICE_DISABLE_VBIOS | - NV_DEVICE_DISABLE_CORE), + .disable = ~(NV_DEVICE_V0_DISABLE_MMIO | + NV_DEVICE_V0_DISABLE_IDENTIFY| + NV_DEVICE_V0_DISABLE_VBIOS | + NV_DEVICE_V0_DISABLE_CORE), .debug0 = ~((1 << NVDEV_SUBDEV_VBIOS) | (1 << NVDEV_SUBDEV_I2C)), - }, sizeof(struct nv_device_class), &device); + }, sizeof(struct nv_device_v0), &device); nvif_client_ref(NULL, &client); if (ret) return ret; |