summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/emc2305.h
blob: 54d672dd6f7d1302ac701d36c71e4f1c11447b46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0 */

#ifndef __LINUX_PLATFORM_DATA_EMC2305__
#define __LINUX_PLATFORM_DATA_EMC2305__

#define EMC2305_PWM_MAX	5

/**
 * struct emc2305_platform_data - EMC2305 driver platform data
 * @max_state: maximum cooling state of the cooling device;
 * @pwm_num: number of active channels;
 * @pwm_separate: separate PWM settings for every channel;
 * @pwm_min: array of minimum PWM per channel;
 */
struct emc2305_platform_data {
	u8 max_state;
	u8 pwm_num;
	bool pwm_separate;
	u8 pwm_min[EMC2305_PWM_MAX];
};

#endif