aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/xilinx-selectmap.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2023-01-30 19:47:43 +0100
committerRafael J. Wysocki <[email protected]>2023-02-02 15:31:04 +0100
commit1bcebcab887ba4c4d790d7ccb055303c5dc7dbbb (patch)
treed85e25728cad6298eeefcf4287cacfca56a81521 /drivers/fpga/xilinx-selectmap.c
parentd0009d14e9853bb5f553a36df9fb7791deffc594 (diff)
thermal: intel: int340x: Improve int340x_thermal_set_trip_temp()
Instead of using snprintf() to populate the ACPI object name in int340x_thermal_set_trip_temp(), use an appropriate initializer and make the function fail if its trip argument is greater than 9, because ACPI object names can only be 4 characters long and it does not make sense to even try to evaluate objects with longer names (that argument is guaranteed to be non-negative, because it comes from the thermal code that will not pass negative trip numbers to zone callbacks). Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Daniel Lezcano <[email protected]> Tested-by: Zhang Rui <[email protected]> Reviewed-by: Zhang Rui <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-selectmap.c')
0 files changed, 0 insertions, 0 deletions