From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751951AbcFKIFL (ORCPT ); Sat, 11 Jun 2016 04:05:11 -0400 Received: from mga03.intel.com ([134.134.136.65]:23878 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbcFKIFF (ORCPT ); Sat, 11 Jun 2016 04:05:05 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,455,1459839600"; d="scan'208";a="825977549" Date: Sat, 11 Jun 2016 01:08:44 -0700 From: Bin Gao To: Zhang Rui , Lee Jones , Eduardo Valentin , linux-kernel@vger.kernel.org Cc: ysiyer , Ajay Thomas , Bin Gao Subject: [PATCH 1/3] include/linux/mfd/intel_soc_pmic.h: add new data structures Message-ID: <20160611080844.GB92337@worksta> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds three new data structures: struct trip_config_map {}, struct thermal_irq_map {} and struct pmic_thermal_data {} which are required by some new drivers. Signed-off-by: ysiyer Signed-off-by: Bin Gao --- include/linux/mfd/intel_soc_pmic.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/linux/mfd/intel_soc_pmic.h b/include/linux/mfd/intel_soc_pmic.h index cf619db..7df4302 100644 --- a/include/linux/mfd/intel_soc_pmic.h +++ b/include/linux/mfd/intel_soc_pmic.h @@ -21,6 +21,27 @@ #include +struct trip_config_map { + u16 irq_reg; + u16 irq_en; + u16 evt_stat; + u8 irq_mask; + u8 irq_en_mask; + u8 evt_mask; + u8 trip_num; +}; + +struct thermal_irq_map { + char handle[20]; + int num_trips; + struct trip_config_map *trip_config; +}; + +struct pmic_thermal_data { + struct thermal_irq_map *maps; + int num_maps; +}; + struct intel_soc_pmic { int irq; struct regmap *regmap; -- 1.9.1