1 #ifndef __NVKM_ICCSENSE_PRIV_H__
2 #define __NVKM_ICCSENSE_PRIV_H__
3 #define nvkm_iccsense(p) container_of((p), struct nvkm_iccsense, subdev)
4 #include <subdev/iccsense.h>
5 
6 struct nvkm_iccsense_rail {
7 	int (*read)(struct nvkm_iccsense *, struct nvkm_iccsense_rail *);
8 	struct i2c_adapter *i2c;
9 	u8 addr;
10 	u8 rail;
11 	u8 mohm;
12 };
13 
14 void nvkm_iccsense_ctor(struct nvkm_device *, int, struct nvkm_iccsense *);
15 int nvkm_iccsense_new_(struct nvkm_device *, int, struct nvkm_iccsense **);
16 #endif
17