License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-block.git] / drivers / gpu / drm / nouveau / nvkm / subdev / iccsense / priv.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
dc06e366
MP
2#ifndef __NVKM_ICCSENSE_PRIV_H__
3#define __NVKM_ICCSENSE_PRIV_H__
4#define nvkm_iccsense(p) container_of((p), struct nvkm_iccsense, subdev)
5#include <subdev/iccsense.h>
5f1f07de 6#include <subdev/bios/extdev.h>
dc06e366 7
5f1f07de 8struct nvkm_iccsense_sensor {
92224e75 9 struct list_head head;
5f1f07de
KH
10 int id;
11 enum nvbios_extdev_type type;
b71c0892
KH
12 struct i2c_adapter *i2c;
13 u8 addr;
a8c119a4 14 u16 config;
5f1f07de
KH
15};
16
17struct nvkm_iccsense_rail {
18 struct list_head head;
19 int (*read)(struct nvkm_iccsense *, struct nvkm_iccsense_rail *);
20 struct nvkm_iccsense_sensor *sensor;
21 u8 idx;
b71c0892
KH
22 u8 mohm;
23};
24
dc06e366
MP
25void nvkm_iccsense_ctor(struct nvkm_device *, int, struct nvkm_iccsense *);
26int nvkm_iccsense_new_(struct nvkm_device *, int, struct nvkm_iccsense **);
27#endif