diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-10-12 20:25:06 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-10-20 19:25:22 +0200 |
commit | 78869767f2ad3a98d2c830b718a503d8b0a94b26 (patch) | |
tree | cb6e8a3834125e710eefdadb9d0e34d1b4e04991 /drivers/iio/trigger/stm32-timer-trigger.c | |
parent | a26b452e836e39223915adc41867441f3f0b372b (diff) |
thermal: trip: Simplify computing trip indices
A trip index can be computed right away as a difference between the
value of a trip pointer pointing to the given trip object and the
start of the trips[] table in the given thermal zone, so change
thermal_zone_trip_id() accordingly.
No intentional functional impact (except for some speedup).
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Tested-by: Lukasz Luba <lukasz.luba@arm.com>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions