xref: /linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/padnv04.c (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
1c39f472eSBen Skeggs /*
2c39f472eSBen Skeggs  * Copyright 2014 Red Hat Inc.
3c39f472eSBen Skeggs  *
4c39f472eSBen Skeggs  * Permission is hereby granted, free of charge, to any person obtaining a
5c39f472eSBen Skeggs  * copy of this software and associated documentation files (the "Software"),
6c39f472eSBen Skeggs  * to deal in the Software without restriction, including without limitation
7c39f472eSBen Skeggs  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8c39f472eSBen Skeggs  * and/or sell copies of the Software, and to permit persons to whom the
9c39f472eSBen Skeggs  * Software is furnished to do so, subject to the following conditions:
10c39f472eSBen Skeggs  *
11c39f472eSBen Skeggs  * The above copyright notice and this permission notice shall be included in
12c39f472eSBen Skeggs  * all copies or substantial portions of the Software.
13c39f472eSBen Skeggs  *
14c39f472eSBen Skeggs  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15c39f472eSBen Skeggs  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16c39f472eSBen Skeggs  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17c39f472eSBen Skeggs  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18c39f472eSBen Skeggs  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19c39f472eSBen Skeggs  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20c39f472eSBen Skeggs  * OTHER DEALINGS IN THE SOFTWARE.
21c39f472eSBen Skeggs  *
22c39f472eSBen Skeggs  * Authors: Ben Skeggs
23c39f472eSBen Skeggs  */
24c39f472eSBen Skeggs #include "pad.h"
25*2aa5eac5SBen Skeggs #include "bus.h"
26c39f472eSBen Skeggs 
27*2aa5eac5SBen Skeggs static const struct nvkm_i2c_pad_func
28*2aa5eac5SBen Skeggs nv04_i2c_pad_func = {
29*2aa5eac5SBen Skeggs 	.bus_new_0 = nv04_i2c_bus_new,
30c39f472eSBen Skeggs };
31*2aa5eac5SBen Skeggs 
32*2aa5eac5SBen Skeggs int
nv04_i2c_pad_new(struct nvkm_i2c * i2c,int id,struct nvkm_i2c_pad ** ppad)33*2aa5eac5SBen Skeggs nv04_i2c_pad_new(struct nvkm_i2c *i2c, int id, struct nvkm_i2c_pad **ppad)
34*2aa5eac5SBen Skeggs {
35*2aa5eac5SBen Skeggs 	return nvkm_i2c_pad_new_(&nv04_i2c_pad_func, i2c, id, ppad);
36*2aa5eac5SBen Skeggs }
37