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

Commit 21fea546 authored by shiwgupt's avatar shiwgupt
Browse files

msm: camera: sensor: Change regulator get,put to devres entry



This change modifies regulator_get, regulator_put to devres entry.
Devres is linked list of arbitrarily sized memory areas associated
with a struct device.  Each devres entry is associated with a release
function. All devres entries are released on driver detach. This
avoids potential leaking of resources on driver detach or having half
broken failure path implementation in probe call which would leak
resources when failure occurs.

CRs-Fixed: 2890861
Change-Id: Ibd46bc37bd6e31aeb2a5ea90ed75a1f596b57bf9
Signed-off-by: default avatarshiwgupt <shiwgupt@codeaurora.org>
parent 0a3354e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment