From b2f04129caff9280ac320834c324ab07a539f610 Mon Sep 17 00:00:00 2001 From: David Collins Date: Tue, 31 Jan 2017 13:58:56 -0800 Subject: 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 --- include/linux/regulator/qpnp-regulator.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/linux') 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; -- cgit v1.2.3