]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - drivers/gpu/drm/nouveau/nvkm/subdev/i2c/port.h
drm/nouveau/i2c: namespace + nvidia gpu names (no binary change)
[mirror_ubuntu-zesty-kernel.git] / drivers / gpu / drm / nouveau / nvkm / subdev / i2c / port.h
1 #ifndef __NVKM_I2C_PORT_H__
2 #define __NVKM_I2C_PORT_H__
3 #include "priv.h"
4
5 #ifndef MSG
6 #define MSG(l,f,a...) do { \
7 struct nvkm_i2c_port *_port = (void *)port; \
8 nv_##l(_port, "PORT:%02x: "f, _port->index, ##a); \
9 } while(0)
10 #define DBG(f,a...) MSG(debug, f, ##a)
11 #define ERR(f,a...) MSG(error, f, ##a)
12 #endif
13 #endif