Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74adfee5 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: max77686: Fix checkpatch warnings



Fix below checkpatch warnings:

$ scripts/checkpatch.pl -f drivers/regulator/max77686.c
ERROR: return is not a function, parentheses are not required
+       return (DIV_ROUND_UP(rdev->desc->uV_step

WARNING: line over 80 characters
+       .ops            = &max77686_buck_dvs_ops,                               \

total: 1 errors, 1 warnings, 339 lines checked

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 0d032731
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -75,17 +75,18 @@ static int max77686_set_dvs_voltage_time_sel(struct regulator_dev *rdev,
{
	struct max77686_data *max77686 = rdev_get_drvdata(rdev);
	int ramp_rate[] = {13, 27, 55, 100};
	return (DIV_ROUND_UP(rdev->desc->uV_step
			* abs(new_selector - old_selector),
			ramp_rate[max77686->ramp_delay]));

	return DIV_ROUND_UP(rdev->desc->uV_step *
			    abs(new_selector - old_selector),
			    ramp_rate[max77686->ramp_delay]);
}

static int max77686_set_voltage_time_sel(struct regulator_dev *rdev,
			unsigned int old_selector, unsigned int new_selector)
{
	/* Unconditionally 100 mV/us */
	return (DIV_ROUND_UP(rdev->desc->uV_step
		 * abs(new_selector - old_selector), 100));
	return DIV_ROUND_UP(rdev->desc->uV_step *
			    abs(new_selector - old_selector), 100);
}

static struct regulator_ops max77686_ops = {