1 /* SPDX-License-Identifier: GPL-2.0 */
15 * struct gsc_hwmon_channel - configuration parameters
16 * @reg: I2C register offset
19 * @mvoffset: voltage offset
20 * @vdiv: voltage divider array (2 resistor values in milli-ohms)
22 struct gsc_hwmon_channel {
26 unsigned int mvoffset;
31 * struct gsc_hwmon_platform_data - platform data for gsc_hwmon driver
32 * @nchannels: number of elements in @channels array
33 * @vreference: voltage reference (mV)
34 * @resolution: ADC bit resolution
35 * @fan_base: register base for FAN controller
36 * @channels: array of gsc_hwmon_channel structures describing channels
38 struct gsc_hwmon_platform_data {
40 unsigned int resolution;
41 unsigned int vreference;
42 unsigned int fan_base;
43 struct gsc_hwmon_channel channels[];