mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-26 18:43:33 -05:00
- Fix uninitialized error code value for the SPMI adc driver (Yang
Yingliang) - Fix kernel doc warning (Yang Li) - Fix wrong read-write thermal trip point initialization (Srinivas Pandruvada) -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEGn3N4YVz0WNVyHskqDIjiipP6E8FAmCvae0ACgkQqDIjiipP 6E++Kgf+L2kN8Qm39GlAZQEcW8/KJKsEhbK41Ke52kBPWuflD2VBVd8OTbcfc+Ei +vUaRIzh9hnSpIgdP15xgRX5pM65bnmB66LcmwxrVQsgddLiVLYA9bFLtkCPqVXd ZBCxLr/4lwg8JQlkQd8WXXXhbIqpyfV+diQdvuGLVMJvhvQKgj8hAG750Aa853VQ 2VEdeLV02P0YSMJGU2g9oZRqkohf9IoCiLCuT4a+03pRYmauDdTFbvlmNMkt1dPW JkECzSvQQmKXTkup9+rE5lV+u76GEVJN61gRNsO0nT3r6LGRyaJwq/Zi27YgbYgS 5z1uNfTWmgVsfvrtIx13vWjwN/zS/A== =xmZO -----END PGP SIGNATURE----- Merge tag 'thermal-v5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux Pull thermal fixes from Daniel Lezcano: - Fix uninitialized error code value for the SPMI adc driver (Yang Yingliang) - Fix kernel doc warning (Yang Li) - Fix wrong read-write thermal trip point initialization (Srinivas Pandruvada) * tag 'thermal-v5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux: thermal/drivers/qcom: Fix error code in adc_tm5_get_dt_channel_data() thermal/ti-soc-thermal: Fix kernel-doc thermal/drivers/intel: Initialize RW trip to THERMAL_TEMP_INVALID
This commit is contained in:
commit
df8c66c4cf
4 changed files with 7 additions and 3 deletions
|
@ -237,6 +237,8 @@ struct int34x_thermal_zone *int340x_thermal_zone_add(struct acpi_device *adev,
|
|||
if (ACPI_FAILURE(status))
|
||||
trip_cnt = 0;
|
||||
else {
|
||||
int i;
|
||||
|
||||
int34x_thermal_zone->aux_trips =
|
||||
kcalloc(trip_cnt,
|
||||
sizeof(*int34x_thermal_zone->aux_trips),
|
||||
|
@ -247,6 +249,8 @@ struct int34x_thermal_zone *int340x_thermal_zone_add(struct acpi_device *adev,
|
|||
}
|
||||
trip_mask = BIT(trip_cnt) - 1;
|
||||
int34x_thermal_zone->aux_trip_nr = trip_cnt;
|
||||
for (i = 0; i < trip_cnt; ++i)
|
||||
int34x_thermal_zone->aux_trips[i] = THERMAL_TEMP_INVALID;
|
||||
}
|
||||
|
||||
trip_cnt = int340x_thermal_read_trips(int34x_thermal_zone);
|
||||
|
|
|
@ -166,7 +166,7 @@ static int sys_get_trip_temp(struct thermal_zone_device *tzd,
|
|||
if (thres_reg_value)
|
||||
*temp = zonedev->tj_max - thres_reg_value * 1000;
|
||||
else
|
||||
*temp = 0;
|
||||
*temp = THERMAL_TEMP_INVALID;
|
||||
pr_debug("sys_get_trip_temp %d\n", *temp);
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -441,7 +441,7 @@ static int adc_tm5_get_dt_channel_data(struct adc_tm5_chip *adc_tm,
|
|||
|
||||
if (args.args_count != 1 || args.args[0] >= ADC5_MAX_CHANNEL) {
|
||||
dev_err(dev, "%s: invalid ADC channel number %d\n", name, chan);
|
||||
return ret;
|
||||
return -EINVAL;
|
||||
}
|
||||
channel->adc_channel = args.args[0];
|
||||
|
||||
|
|
|
@ -770,7 +770,7 @@ static int ti_bandgap_tshut_init(struct ti_bandgap *bgp,
|
|||
}
|
||||
|
||||
/**
|
||||
* ti_bandgap_alert_init() - setup and initialize talert handling
|
||||
* ti_bandgap_talert_init() - setup and initialize talert handling
|
||||
* @bgp: pointer to struct ti_bandgap
|
||||
* @pdev: pointer to device struct platform_device
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue