Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c83a60c authored by Hridya Valsaraju's avatar Hridya Valsaraju
Browse files

ANDROID: GKI: Fix ABI diff for struct thermal_cooling_device_ops



Adds members set/get_min_state() to struct
thermal_cooling_device_ops.

Also adds the field min_state_throttle to struct thermal_governor.

Test: build
Bug: 149945768
Change-Id: I085feb9d3b818dcf9754f0f624166c360593bce6
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
(cherry picked from commit 8a12149c)
[hridya: cherry-picked only the ABI diff]
Signed-off-by: default avatarHridya Valsaraju <hridya@google.com>
parent e000f4e8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -134,6 +134,10 @@ struct thermal_cooling_device_ops {
	int (*get_max_state) (struct thermal_cooling_device *, unsigned long *);
	int (*get_cur_state) (struct thermal_cooling_device *, unsigned long *);
	int (*set_cur_state) (struct thermal_cooling_device *, unsigned long);
	int (*set_min_state)(struct thermal_cooling_device *cdev,
				unsigned long target);
	int (*get_min_state)(struct thermal_cooling_device *cdev,
				unsigned long *target);
	int (*get_requested_power)(struct thermal_cooling_device *,
				   struct thermal_zone_device *, u32 *);
	int (*state2power)(struct thermal_cooling_device *,
@@ -256,6 +260,7 @@ struct thermal_governor {
	void (*unbind_from_tz)(struct thermal_zone_device *tz);
	int (*throttle)(struct thermal_zone_device *tz, int trip);
	struct list_head	governor_list;
	int min_state_throttle;
};

/* Structure that holds binding parameters for a zone */