OSDN Git Service

thermal: int3400_thermal: Statically initialize .get_mode()/.set_mode() ops
authorAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Tue, 14 Apr 2020 18:00:57 +0000 (20:00 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 15 Apr 2020 09:19:52 +0000 (11:19 +0200)
commit79799562bf087b30d9dd0fddf5bed2d3b038be08
treeabaa7d42b04c2af1ad38420c8c560498d24ff6be
parent48b2bce8c7db92601145e1204fa7048b1f74e442
thermal: int3400_thermal: Statically initialize .get_mode()/.set_mode() ops

int3400_thermal_ops is used inside int3400_thermal_probe() only after
the assignments, which can just as well be made statically at struct's
initizer.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200414180105.20042-2-andrzej.p@collabora.com
drivers/thermal/intel/int340x_thermal/int3400_thermal.c