Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752883AbcDZJT6 (ORCPT ); Tue, 26 Apr 2016 05:19:58 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:60817 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752797AbcDZJTz (ORCPT ); Tue, 26 Apr 2016 05:19:55 -0400 From: Arnd Bergmann To: Mark Brown Cc: Arnd Bergmann , Liam Girdwood , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Wadim Egorov , Doug Anderson , Chris Zhong , linux-kernel@vger.kernel.org Subject: [PATCH] regulator: rk808: remove unused rk808_reg_ops_ranges Date: Tue, 26 Apr 2016 11:19:26 +0200 Message-Id: <1461662378-1879912-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:1oCIv8HpbWcfylxRTE5uQe25ErrHCNHtk++ura85qJdn7WtUK9B kcJntQovkViJQ/VTs/LeFp0YE5x0Fp//3PMEFEWqCv5O4JWy2akuLcLWJHKTdBQ2a5GyEHk aT3BqqZxDN6bRMbkb5rW50ZEICImwGLpxTjgrrYmp/IHJEHmFPp1p57iO7aJLDfFAsAvcI5 CNw7mw0Fw4WPWSvCBHyXA== X-UI-Out-Filterresults: notjunk:1;V01:K0:fa0ud3fF4Qo=:JCJ01AwHGPiF0NKiJ6eSHe 0LbJF3e/5VRR7Xmv5sHNjTev6YhuA36RNzc9VPONV2FpfPjE/yTHSiOtgYcCfoLZ/SbNPjAoi BbQkfh1AK5FbIXLGagppT5I3f7pJ8kk0ttq4Jx0ICvvlhL+c/KxVGUvScD9UhttwfEruhVkME F6Fva+bKNtLiaAy01nkK2kuLo5cLxegN4hn47NtgpimVYfGGpCkXdJrkJGL5CKMkZ4hkoaj4R 6hIjVV1htCq756M0FcAvSq3z+BFNhvOtaI93U6168mU3DEuy0O3p/E8u4PV+gI80X7EyrH65H 3gOwLztLVD4kVbAVofydNeDW7CHbctjOUsYFpLwQ3dOr6/vhO9HSrRtzGFDkG7mNgkoc78uQm 9dtb/T62y99ihBpz7luIN7gt0XCFxOpqv84hQ/jXMh+9xhNxWq30DTkRpY9EWVcpSoPEHDIoj mtO2C4+ehPjhnY6g2I6R+OI27uW7eglBmzUcTbLCZtPqO3vM8g+sBTpbLgTOvznoGfDX1k036 M1VWq/WLYBffnFhVV+0SYVfzUGy5fCTtaP5EPeIkZG53fyw2D45JbhhdMkEA6V8/riq4F8xB+ MgAZAxttsc/C8Tndf9KQeCE/k4K/VziAMF/x+/eRGBJsjnbTnJKOpkab5DMhpd14XG45bGgu9 GLKGnDSqw40uxXLBS8WDIrbh0dNFid+QCkBsCZ7weQjS/wjw2rsEkvVZvjpwLu8Kv+PM= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2209 Lines: 63 After removing all uses of the range operations in a recent patch, we get a warning about the symbol not being referenced anywhere: drivers/regulator/rk808-regulator.c:306:29: 'rk808_reg_ops_ranges' defined but not used This removes the now-unused structure along with the rk808_set_suspend_voltage_range function that is only referenced from rk808_reg_ops_ranges. Signed-off-by: Arnd Bergmann Fixes: afcd666d9db0 ("regulator: rk808: remove linear range definitions with a single range") --- drivers/regulator/rk808-regulator.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index 964b95eed271..67f72feed815 100644 --- a/drivers/regulator/rk808-regulator.c +++ b/drivers/regulator/rk808-regulator.c @@ -238,21 +238,6 @@ static int rk808_set_suspend_voltage(struct regulator_dev *rdev, int uv) sel); } -static int rk808_set_suspend_voltage_range(struct regulator_dev *rdev, int uv) -{ - unsigned int reg; - int sel = regulator_map_voltage_linear_range(rdev, uv, uv); - - if (sel < 0) - return -EINVAL; - - reg = rdev->desc->vsel_reg + RK808_SLP_REG_OFFSET; - - return regmap_update_bits(rdev->regmap, reg, - rdev->desc->vsel_mask, - sel); -} - static int rk808_set_suspend_enable(struct regulator_dev *rdev) { unsigned int reg; @@ -303,19 +288,6 @@ static struct regulator_ops rk808_reg_ops = { .set_suspend_disable = rk808_set_suspend_disable, }; -static struct regulator_ops rk808_reg_ops_ranges = { - .list_voltage = regulator_list_voltage_linear_range, - .map_voltage = regulator_map_voltage_linear_range, - .get_voltage_sel = regulator_get_voltage_sel_regmap, - .set_voltage_sel = regulator_set_voltage_sel_regmap, - .enable = regulator_enable_regmap, - .disable = regulator_disable_regmap, - .is_enabled = regulator_is_enabled_regmap, - .set_suspend_voltage = rk808_set_suspend_voltage_range, - .set_suspend_enable = rk808_set_suspend_enable, - .set_suspend_disable = rk808_set_suspend_disable, -}; - static struct regulator_ops rk808_switch_ops = { .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, -- 2.7.0