aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2015-08-20 14:54:12 +1000
committerBen Skeggs <[email protected]>2015-08-28 12:40:22 +1000
commit1cb57d25b6b62b39f07c4ff4370c2c48803000e9 (patch)
treeba1fc8ab30778db26868ce4ee3b30b2f60afd3fc /drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c
parent3ecd329b6445efdcad26e94edd57f0fd5ccd080b (diff)
drm/nouveau/i2c: switch to subdev printk macros
Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c b/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c
index 187af1183f2d..3496dfd93264 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c
@@ -282,31 +282,34 @@ nvkm_i2c_identify(struct nvkm_i2c *i2c, int index, const char *what,
bool (*match)(struct nvkm_i2c_port *,
struct i2c_board_info *, void *), void *data)
{
+ struct nvkm_subdev *subdev = &i2c->subdev;
struct nvkm_i2c_port *port = nvkm_i2c_find(i2c, index);
int i;
if (!port) {
- nv_debug(i2c, "no bus when probing %s on %d\n", what, index);
+ nvkm_debug(subdev, "no bus when probing %s on %d\n",
+ what, index);
return -ENODEV;
}
- nv_debug(i2c, "probing %ss on bus: %d\n", what, port->index);
+ nvkm_debug(subdev, "probing %ss on bus: %d\n", what, port->index);
for (i = 0; info[i].dev.addr; i++) {
u8 orig_udelay = 0;
if ((port->adapter.algo == &i2c_bit_algo) &&
(info[i].udelay != 0)) {
struct i2c_algo_bit_data *algo = port->adapter.algo_data;
- nv_debug(i2c, "using custom udelay %d instead of %d\n",
- info[i].udelay, algo->udelay);
+ nvkm_debug(subdev,
+ "using custom udelay %d instead of %d\n",
+ info[i].udelay, algo->udelay);
orig_udelay = algo->udelay;
algo->udelay = info[i].udelay;
}
if (nv_probe_i2c(port, info[i].dev.addr) &&
(!match || match(port, &info[i].dev, data))) {
- nv_info(i2c, "detected %s: %s\n", what,
- info[i].dev.type);
+ nvkm_info(subdev, "detected %s: %s\n", what,
+ info[i].dev.type);
return i;
}
@@ -316,7 +319,7 @@ nvkm_i2c_identify(struct nvkm_i2c *i2c, int index, const char *what,
}
}
- nv_debug(i2c, "no devices found.\n");
+ nvkm_debug(subdev, "no devices found.\n");
return -ENODEV;
}