17dcd060cSBen Skeggs /*
27dcd060cSBen Skeggs * Copyright 2012 Red Hat Inc.
37dcd060cSBen Skeggs *
47dcd060cSBen Skeggs * Permission is hereby granted, free of charge, to any person obtaining a
57dcd060cSBen Skeggs * copy of this software and associated documentation files (the "Software"),
67dcd060cSBen Skeggs * to deal in the Software without restriction, including without limitation
77dcd060cSBen Skeggs * the rights to use, copy, modify, merge, publish, distribute, sublicense,
87dcd060cSBen Skeggs * and/or sell copies of the Software, and to permit persons to whom the
97dcd060cSBen Skeggs * Software is furnished to do so, subject to the following conditions:
107dcd060cSBen Skeggs *
117dcd060cSBen Skeggs * The above copyright notice and this permission notice shall be included in
127dcd060cSBen Skeggs * all copies or substantial portions of the Software.
137dcd060cSBen Skeggs *
147dcd060cSBen Skeggs * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
157dcd060cSBen Skeggs * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
167dcd060cSBen Skeggs * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
177dcd060cSBen Skeggs * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
187dcd060cSBen Skeggs * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
197dcd060cSBen Skeggs * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
207dcd060cSBen Skeggs * OTHER DEALINGS IN THE SOFTWARE.
217dcd060cSBen Skeggs *
227dcd060cSBen Skeggs * Authors: Ben Skeggs
237dcd060cSBen Skeggs */
242aa5eac5SBen Skeggs #include "priv.h"
252aa5eac5SBen Skeggs #include "pad.h"
267dcd060cSBen Skeggs
2749bd8da5SBen Skeggs static const struct nvkm_i2c_func
2849bd8da5SBen Skeggs nv50_i2c = {
292aa5eac5SBen Skeggs .pad_x_new = nv50_i2c_pad_new,
3049bd8da5SBen Skeggs };
3149bd8da5SBen Skeggs
3249bd8da5SBen Skeggs int
nv50_i2c_new(struct nvkm_device * device,enum nvkm_subdev_type type,int inst,struct nvkm_i2c ** pi2c)33c6ce0861SBen Skeggs nv50_i2c_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
34c6ce0861SBen Skeggs struct nvkm_i2c **pi2c)
3549bd8da5SBen Skeggs {
36c6ce0861SBen Skeggs return nvkm_i2c_new_(&nv50_i2c, device, type, inst, pi2c);
3749bd8da5SBen Skeggs }
38