diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2015-08-20 14:54:12 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-08-28 12:40:22 +1000 |
commit | 1cb57d25b6b62b39f07c4ff4370c2c48803000e9 (patch) | |
tree | ba1fc8ab30778db26868ce4ee3b30b2f60afd3fc /drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.h | |
parent | 3ecd329b6445efdcad26e94edd57f0fd5ccd080b (diff) | |
download | blackbird-op-linux-1cb57d25b6b62b39f07c4ff4370c2c48803000e9.tar.gz blackbird-op-linux-1cb57d25b6b62b39f07c4ff4370c2c48803000e9.zip |
drm/nouveau/i2c: switch to subdev printk macros
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.h b/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.h index f3422cc6f8db..577b18ecf5c6 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.h +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.h @@ -46,9 +46,11 @@ int _nvkm_i2c_pad_fini(struct nvkm_object *, bool); #ifndef MSG #define MSG(l,f,a...) do { \ struct nvkm_i2c_pad *_pad = (void *)pad; \ - nv_##l(_pad, "PAD:%c:%02x: "f, \ - _pad->index >= 0x100 ? 'X' : 'S', \ - _pad->index >= 0x100 ? _pad->index - 0x100 : _pad->index, ##a); \ + struct nvkm_i2c *_i2c = nvkm_i2c(_pad); \ + nvkm_##l(&_i2c->subdev, "PAD:%c:%02x: "f, \ + _pad->index >= 0x100 ? 'X' : 'S', \ + _pad->index >= 0x100 ? \ + _pad->index - 0x100 : _pad->index, ##a); \ } while(0) #define DBG(f,a...) MSG(debug, f, ##a) #define ERR(f,a...) MSG(error, f, ##a) |