Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752665AbcC1ODx (ORCPT ); Mon, 28 Mar 2016 10:03:53 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:36223 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751677AbcC1ODw (ORCPT ); Mon, 28 Mar 2016 10:03:52 -0400 From: Eduardo Valentin To: Rui Zhang Cc: Eduardo Valentin , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] thermal: reduce the size of trips_disabled Date: Mon, 28 Mar 2016 07:03:48 -0700 Message-Id: <1459173828-11149-1-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 938 Lines: 31 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 Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- 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