]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: thermal: separate initialization/operation 23405/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sat, 16 May 2026 19:05:58 +0000 (21:05 +0200)
committerRobert Marko <robimarko@gmail.com>
Thu, 21 May 2026 10:07:57 +0000 (12:07 +0200)
commit3c4a547eb2142b0cb29054538fe22d59e372c90b
treed3feb50718e9cdb34300c522716616b54e2e2d69
parent6eead121eea0d9678fcb836ec9df48fff471df36
realtek: thermal: separate initialization/operation

The driver uses lazy initialization - during first temperature
get. Checking enabled status over and over again does not make
sense. Provide separate setup functions for this. With this split
the error handling will be improved. If initialization fails, the
sensor will not be registered at all.

While we are here fix some minor typos.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/23405
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.18/drivers/thermal/realtek-thermal.c