linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] thermal: reduce the size of trips_disabled
@ 2016-03-28 14:03 Eduardo Valentin
  0 siblings, 0 replies; only message in thread
From: Eduardo Valentin @ 2016-03-28 14:03 UTC (permalink / raw)
  To: Rui Zhang; +Cc: Eduardo Valentin, linux-pm, linux-kernel

Currently we have a maximum of 12 trips per thermal zone:
 #define THERMAL_MAX_TRIPS       12

For this reason, there is no need to have a long to keep
track of status of each trip.

Fixes: 81ad4276b505e987dd8ebbdf63605f92cd172b52

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
---
 include/linux/thermal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index a55d052..47e3a93 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -192,7 +192,7 @@ struct thermal_zone_device {
 	struct thermal_attr *trip_hyst_attrs;
 	void *devdata;
 	int trips;
-	unsigned long trips_disabled;	/* bitmap for disabled trips */
+	unsigned int trips_disabled;	/* bitmap for disabled trips */
 	int passive_delay;
 	int polling_delay;
 	int temperature;
-- 
2.1.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-28 14:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-28 14:03 [PATCH 1/1] thermal: reduce the size of trips_disabled Eduardo Valentin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).