]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal/drivers/exynos: Simplify probe() with local dev variable
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 9 Jul 2024 12:59:34 +0000 (14:59 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 15 Jul 2024 11:31:40 +0000 (13:31 +0200)
commit4a6cf76edf5c8cda4def7b1578836a88b547ff69
treee4aac8112cd19407a499d9d80a1111fa41e386d2
parent9d55cb3ba36e218839ca04c55e977ab6faac1707
thermal/drivers/exynos: Simplify probe() with local dev variable

Simplify the probe() function by using local 'dev' instead of
&pdev->dev.  While touching devm_kzalloc(), use preferred sizeof(*)
syntax.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Link: https://lore.kernel.org/r/20240709-thermal-probe-v1-4-241644e2b6e0@linaro.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/samsung/exynos_tmu.c