diff options
| author | David Collins <collinsd@codeaurora.org> | 2017-01-31 13:58:56 -0800 |
|---|---|---|
| committer | David Collins <collinsd@codeaurora.org> | 2017-02-03 12:18:57 -0800 |
| commit | b2f04129caff9280ac320834c324ab07a539f610 (patch) | |
| tree | fdebfb21029f91eb628ec83bdcf8dee1c0fdaafb /include/linux | |
| parent | 7d2b2afa0ff4e672f57b4072ec0839eb0f0eed94 (diff) | |
regulator: qpnp-regulator: correct various coding style issues
Correct warnings flagged by checkpatch. In particular, modify
the following:
- Use octal file permissions instead of symbolic.
- Add 'const' to type of struct of_device_id variables.
- Remove unnecessary out-of-memory error messages.
- Change variables of type 'unsigned' to 'unsigned int'.
- Restructure conditionals to avoid else after return/break.
- Remove 'return' from the end of void functions.
- Join strings that are wrapped across two lines.
- Remove ';' from the end of a macro definition.
- Update the REGULATOR_QPNP Kconfig entry and the device tree
documentation to use the name: 'Qualcomm Technologies, Inc.'
Change-Id: I9f2cde58929ae57667366bb886e65154d36dfd3d
Signed-off-by: David Collins <collinsd@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/regulator/qpnp-regulator.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/regulator/qpnp-regulator.h b/include/linux/regulator/qpnp-regulator.h index c7afeb50f244..36288c068ac3 100644 --- a/include/linux/regulator/qpnp-regulator.h +++ b/include/linux/regulator/qpnp-regulator.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2013, 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 @@ -158,8 +158,8 @@ enum qpnp_boost_current_limit { struct qpnp_regulator_platform_data { struct regulator_init_data init_data; int pull_down_enable; - unsigned pin_ctrl_enable; - unsigned pin_ctrl_hpm; + unsigned int pin_ctrl_enable; + unsigned int pin_ctrl_hpm; int system_load; int enable_time; int ocp_enable; |
