diff options
author | Sean Young <sean@mess.org> | 2020-11-29 18:01:26 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-12-01 16:00:51 +0100 |
commit | d904eb0b351fe5545d9ba5b85844342f49025923 (patch) | |
tree | b3412a6ca6b59a2d98ded7b334b92586dc0b1de1 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
parent | 44f28934af141149959c4e6495bb60c1903bda32 (diff) |
media: mtk-cir: fix calculation of chk period
Since commit 528222d853f9 ("media: rc: harmonize infrared durations to
microseconds"), the calculation of the chk period is wrong. As a result,
all reported IR will have incorrect timings.
Now that the calculations are done in microseconds rather than nanoseconds,
we can fold the calculations in a simpler form with less rounding error.
Tested-by: Frank Wunderlich <frank-w@public-files.de>
Fixes: 528222d853f9 ("media: rc: harmonize infrared durations to microseconds")
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions