thermal: make device_register's type argument const
authorJean-Francois Dagenais <jeff.dagenais@gmail.com>
Thu, 18 Apr 2019 16:36:39 +0000 (12:36 -0400)
committerZhang Rui <rui.zhang@intel.com>
Mon, 6 May 2019 12:35:11 +0000 (20:35 +0800)
commitf991de53a8abef21fae3e31967cb4f6a75c070b5
tree1924a52e49d6a2cc90a72020a5aa41b468f0fe36
parentdc4060a5dc2557e6b5aa813bf5b73677299d62d2
thermal: make device_register's type argument const

...because it can be, the buffer is strlcpy'd into a local buffer in a
thermal struct member.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_core.c
include/linux/thermal.h