lkml.org 
[lkml]   [2020]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 5.5 424/542] regulator: core: Fix exported symbols to the exported GPL version
    Date
    From: Enric Balletbo i Serra <enric.balletbo@collabora.com>

    [ Upstream commit 3d7610e8da993539346dce6f7c909fd3d56bf4d5 ]

    Change the exported symbols introduced by commit e9153311491da
    ("regulator: vctrl-regulator: Avoid deadlock getting and setting the voltage")
    from EXPORT_SYMBOL() to EXPORT_SYMBOL_GPL(), like is used for all the core
    parts.

    Fixes: e9153311491da ("regulator: vctrl-regulator: Avoid deadlock getting and setting the voltage")
    Reported-by: Dmitry Osipenko <digetx@gmail.com>
    Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
    Link: https://lore.kernel.org/r/20200120123921.1204339-1-enric.balletbo@collabora.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/regulator/core.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
    index e7d167ce326cb..d015d99cb59d9 100644
    --- a/drivers/regulator/core.c
    +++ b/drivers/regulator/core.c
    @@ -3470,7 +3470,7 @@ int regulator_set_voltage_rdev(struct regulator_dev *rdev, int min_uV,
    out:
    return ret;
    }
    -EXPORT_SYMBOL(regulator_set_voltage_rdev);
    +EXPORT_SYMBOL_GPL(regulator_set_voltage_rdev);

    static int regulator_limit_voltage_step(struct regulator_dev *rdev,
    int *current_uV, int *min_uV)
    @@ -4035,7 +4035,7 @@ int regulator_get_voltage_rdev(struct regulator_dev *rdev)
    return ret;
    return ret - rdev->constraints->uV_offset;
    }
    -EXPORT_SYMBOL(regulator_get_voltage_rdev);
    +EXPORT_SYMBOL_GPL(regulator_get_voltage_rdev);

    /**
    * regulator_get_voltage - get regulator output voltage
    --
    2.20.1
    \
     
     \ /
      Last update: 2020-02-14 18:55    [W:7.066 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site