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 * @channels: pointer to array of gsc_hwmon_channel structures
34 * @nchannels: number of elements in @channels array
35 * @vreference: voltage reference (mV)
36 * @resolution: ADC bit resolution
37 * @fan_base: register base for FAN controller
39 struct gsc_hwmon_platform_data {
40 const struct gsc_hwmon_channel *channels;
42 unsigned int resolution;
43 unsigned int vreference;
44 unsigned int fan_base;