diff options
| author | David Collins <collinsd@codeaurora.org> | 2017-02-01 16:50:26 -0800 |
|---|---|---|
| committer | David Collins <collinsd@codeaurora.org> | 2017-02-03 12:19:09 -0800 |
| commit | ce2f3b9612576d0db6291f50ca2bf3f17d647575 (patch) | |
| tree | 6d4feecee1bc3a4d6ae86e15e09e662b3fd414ad /drivers/platform | |
| parent | 2fbc77cbfa11182be4d9d2199ffb80a4b6215f0b (diff) | |
platform: msm: qpnp-coincell: correct various coding style issues
Correct warnings flagged by checkpatch. In particular, modify
the following:
- Add 'const' to the type of a struct of_device_id variable.
- Update the QPNP_COINCELL Kconfig entry and the device tree
documentation to use the name: 'Qualcomm Technologies, Inc.'
Change-Id: Ieb737138dc5dacb01eb840a1861afe14cf14ddc6
Signed-off-by: David Collins <collinsd@codeaurora.org>
Diffstat (limited to 'drivers/platform')
| -rw-r--r-- | drivers/platform/msm/Kconfig | 10 | ||||
| -rw-r--r-- | drivers/platform/msm/qpnp-coincell.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/platform/msm/Kconfig b/drivers/platform/msm/Kconfig index 37d5bc4361cb..024c66ac8e57 100644 --- a/drivers/platform/msm/Kconfig +++ b/drivers/platform/msm/Kconfig @@ -11,14 +11,14 @@ config QPNP_REVID type is mapped to a QTI chip part number and logged as well. config QPNP_COINCELL - tristate "Qualcomm QPNP coincell charger support" + tristate "QPNP coincell charger support" depends on SPMI help This driver supports the QPNP coincell peripheral found inside of - Qualcomm QPNP PMIC devices. The coincell charger provides a means to - charge a coincell battery or backup capacitor which is used to - maintain PMIC register state when the main battery is removed from the - mobile device. + Qualcomm Technologies, Inc. QPNP PMIC devices. The coincell charger + provides a means to charge a coincell battery or backup capacitor + which is used to maintain PMIC register state when the main battery is + removed from the mobile device. config SPS bool "SPS support" diff --git a/drivers/platform/msm/qpnp-coincell.c b/drivers/platform/msm/qpnp-coincell.c index 6aaa53526868..b427f43e76df 100644 --- a/drivers/platform/msm/qpnp-coincell.c +++ b/drivers/platform/msm/qpnp-coincell.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. +/* Copyright (c) 2013-2015, 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 @@ -244,7 +244,7 @@ static int qpnp_coincell_remove(struct platform_device *pdev) return 0; } -static struct of_device_id qpnp_coincell_match_table[] = { +static const struct of_device_id qpnp_coincell_match_table[] = { { .compatible = QPNP_COINCELL_DRIVER_NAME, }, {} }; |
