]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
drm/nouveau/i2c: pass the function pointers in at creation time
[karo-tx-linux.git] / drivers / gpu / drm / nouveau / core / subdev / i2c / base.c
index 8ae2625415e155b22b3c97459c54e3f3d939fd22..2895c19bb1529f14196a4ff36d6861af57c35dd4 100644 (file)
@@ -95,6 +95,7 @@ nouveau_i2c_port_create_(struct nouveau_object *parent,
                         struct nouveau_object *engine,
                         struct nouveau_oclass *oclass, u8 index,
                         const struct i2c_algorithm *algo,
+                        const struct nouveau_i2c_func *func,
                         int size, void **pobject)
 {
        struct nouveau_device *device = nv_device(parent);
@@ -112,6 +113,7 @@ nouveau_i2c_port_create_(struct nouveau_object *parent,
        port->adapter.owner = THIS_MODULE;
        port->adapter.dev.parent = &device->pdev->dev;
        port->index = index;
+       port->func = func;
        i2c_set_adapdata(&port->adapter, i2c);
 
        if ( algo == &nouveau_i2c_bit_algo &&