diff options
author | Amit Kucheria <amit.kucheria@linaro.org> | 2019-10-31 19:37:26 +0100 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2019-11-07 07:00:26 +0100 |
commit | 0e9c0bc73082403ec13361c4af9e9243d88f9580 (patch) | |
tree | f4c2bbcfc9fbe49e214eb63285f5260ed27b6e83 /block | |
parent | drivers: thermal: tsens: Get rid of id field in tsens_sensor (diff) | |
download | linux-0e9c0bc73082403ec13361c4af9e9243d88f9580.tar.xz linux-0e9c0bc73082403ec13361c4af9e9243d88f9580.zip |
drivers: thermal: tsens: Simplify code flow in tsens_probe
Move platform_set_drvdata up to avoid an extra 'if (ret)' check after
the call to tsens_register.
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/184422dcc1c12553e71a58c62e01425fd7d1172a.1572526427.git.amit.kucheria@linaro.org
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions