thermal: qpnp-temp-alarm: correct various coding style issues
Correct warnings flagged by checkpatch. In particular, modify the following: - Add 'const' to type of a struct of_device_id variable. - Update the THERMAL_QPNP Kconfig entry and the device tree documentation to use the name: 'Qualcomm Technologies, Inc.' Change-Id: Ia25eb58820107d0c068ee3e2c31d46f0cb13e3d6 Signed-off-by: David Collins <collinsd@codeaurora.org>
This commit is contained in:
parent
ec1ec741b7
commit
5b77c3d190
3 changed files with 18 additions and 18 deletions
|
@ -1,8 +1,9 @@
|
|||
Qualcomm QPNP Temperature Alarm
|
||||
Qualcomm Technologies, Inc. QPNP Temperature Alarm
|
||||
|
||||
QPNP temperature alarm peripherals are found inside of Qualcomm PMIC chips that
|
||||
utilize the MSM SPMI implementation. These peripherals provide an interrupt
|
||||
signal and status register to identify high PMIC die temperature.
|
||||
QPNP temperature alarm peripherals are found inside of Qualcomm Technologies,
|
||||
Inc. PMIC chips that utilize the MSM SPMI implementation. These peripherals
|
||||
provide an interrupt signal and status register to identify high PMIC die
|
||||
temperature.
|
||||
|
||||
Required properties:
|
||||
- compatible: Must be "qcom,qpnp-temp-alarm".
|
||||
|
|
|
@ -406,19 +406,18 @@ config INTEL_PCH_THERMAL
|
|||
programmable trip points and other information.
|
||||
|
||||
config THERMAL_QPNP
|
||||
tristate "Qualcomm Plug-and-Play PMIC Temperature Alarm"
|
||||
depends on THERMAL
|
||||
depends on OF
|
||||
depends on SPMI
|
||||
tristate "Qualcomm Technologies, Inc. QPNP PMIC Temperature Alarm"
|
||||
depends on OF && SPMI
|
||||
help
|
||||
This enables a thermal Sysfs driver for Qualcomm plug-and-play (QPNP)
|
||||
PMIC devices. It shows up in Sysfs as a thermal zone with multiple
|
||||
trip points. The temperature reported by the thermal zone reflects the
|
||||
real time die temperature if an ADC is present or an estimate of the
|
||||
temperature based upon the over temperature stage value if no ADC is
|
||||
available. If allowed via compile time configuration; enabling the
|
||||
thermal zone device via the mode file results in shifting PMIC over
|
||||
temperature shutdown control from hardware to software.
|
||||
This enables a thermal Sysfs driver for Qualcomm Technologies, Inc.
|
||||
QPNP PMIC devices. It shows up in Sysfs as a thermal zone with
|
||||
multiple trip points. The temperature reported by the thermal zone
|
||||
reflects the real time die temperature if an ADC is present or an
|
||||
estimate of the temperature based upon the over temperature stage
|
||||
value if no ADC is available. If allowed via compile time
|
||||
configuration; enabling the thermal zone device via the mode file
|
||||
results in shifting PMIC over temperature shutdown control from
|
||||
hardware to software.
|
||||
|
||||
config THERMAL_QPNP_ADC_TM
|
||||
tristate "Qualcomm 8974 Thermal Monitor ADC Driver"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -773,7 +773,7 @@ static const struct dev_pm_ops qpnp_tm_pm_ops = {
|
|||
#define QPNP_TM_PM_OPS NULL
|
||||
#endif
|
||||
|
||||
static struct of_device_id qpnp_tm_match_table[] = {
|
||||
static const struct of_device_id qpnp_tm_match_table[] = {
|
||||
{ .compatible = QPNP_TM_DRIVER_NAME, },
|
||||
{}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue