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
|
QPNP temperature alarm peripherals are found inside of Qualcomm Technologies,
|
||||||
utilize the MSM SPMI implementation. These peripherals provide an interrupt
|
Inc. PMIC chips that utilize the MSM SPMI implementation. These peripherals
|
||||||
signal and status register to identify high PMIC die temperature.
|
provide an interrupt signal and status register to identify high PMIC die
|
||||||
|
temperature.
|
||||||
|
|
||||||
Required properties:
|
Required properties:
|
||||||
- compatible: Must be "qcom,qpnp-temp-alarm".
|
- compatible: Must be "qcom,qpnp-temp-alarm".
|
||||||
|
|
|
@ -406,19 +406,18 @@ config INTEL_PCH_THERMAL
|
||||||
programmable trip points and other information.
|
programmable trip points and other information.
|
||||||
|
|
||||||
config THERMAL_QPNP
|
config THERMAL_QPNP
|
||||||
tristate "Qualcomm Plug-and-Play PMIC Temperature Alarm"
|
tristate "Qualcomm Technologies, Inc. QPNP PMIC Temperature Alarm"
|
||||||
depends on THERMAL
|
depends on OF && SPMI
|
||||||
depends on OF
|
|
||||||
depends on SPMI
|
|
||||||
help
|
help
|
||||||
This enables a thermal Sysfs driver for Qualcomm plug-and-play (QPNP)
|
This enables a thermal Sysfs driver for Qualcomm Technologies, Inc.
|
||||||
PMIC devices. It shows up in Sysfs as a thermal zone with multiple
|
QPNP PMIC devices. It shows up in Sysfs as a thermal zone with
|
||||||
trip points. The temperature reported by the thermal zone reflects the
|
multiple trip points. The temperature reported by the thermal zone
|
||||||
real time die temperature if an ADC is present or an estimate of the
|
reflects the real time die temperature if an ADC is present or an
|
||||||
temperature based upon the over temperature stage value if no ADC is
|
estimate of the temperature based upon the over temperature stage
|
||||||
available. If allowed via compile time configuration; enabling the
|
value if no ADC is available. If allowed via compile time
|
||||||
thermal zone device via the mode file results in shifting PMIC over
|
configuration; enabling the thermal zone device via the mode file
|
||||||
temperature shutdown control from hardware to software.
|
results in shifting PMIC over temperature shutdown control from
|
||||||
|
hardware to software.
|
||||||
|
|
||||||
config THERMAL_QPNP_ADC_TM
|
config THERMAL_QPNP_ADC_TM
|
||||||
tristate "Qualcomm 8974 Thermal Monitor ADC Driver"
|
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
|
* 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
|
* 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
|
#define QPNP_TM_PM_OPS NULL
|
||||||
#endif
|
#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, },
|
{ .compatible = QPNP_TM_DRIVER_NAME, },
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue