hwmon: (coretemp) rearrange tjmax handing code
authorZhang Rui <rui.zhang@intel.com>
Sun, 13 Nov 2022 15:31:43 +0000 (23:31 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 5 Dec 2022 00:45:03 +0000 (16:45 -0800)
commit2bc0e6d07ee50497043112d677fdd34327cf025c
treeb3535deb98823b7a6b3bd5c319a2ed214f014162
parent07619140e2a12484ea262b8845fd09e099f843a8
hwmon: (coretemp) rearrange tjmax handing code

Rearrange the tjmax handling code so that it can be used directly in
the sysfs attribute callbacks without forward declarations.

No functional change in this patch.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Link: https://lore.kernel.org/r/20221113153145.32696-2-rui.zhang@intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/coretemp.c