diff options
| author | Tomi Valkeinen <[email protected]> | 2023-09-06 06:50:58 +0000 |
|---|---|---|
| committer | Robert Foss <[email protected]> | 2023-09-20 11:48:47 +0000 |
| commit | f1dabbe645065d20ca863c8d446c74c59ca1ca9d (patch) | |
| tree | 114bff618fe65e34af7c66f07d608f9e86625277 /drivers/gpu/drm/drm_auth.c | |
| parent | drm/bridge: tc358768: Clean up clock period code (diff) | |
| download | kernel-f1dabbe645065d20ca863c8d446c74c59ca1ca9d.tar.gz kernel-f1dabbe645065d20ca863c8d446c74c59ca1ca9d.zip | |
drm/bridge: tc358768: Fix tc358768_ns_to_cnt()
The tc358768_ns_to_cnt() is, most likely, supposed to do a div-round-up
operation, but it misses subtracting one from the dividend.
Fix this by just using DIV_ROUND_UP().
Fixes: ff1ca6397b1d ("drm/bridge: Add tc358768 driver")
Reviewed-by: Peter Ujfalusi <[email protected]>
Tested-by: Maxim Schwalm <[email protected]> # Asus TF700T
Tested-by: Marcel Ziswiler <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
Signed-off-by: Robert Foss <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/drm_auth.c')
0 files changed, 0 insertions, 0 deletions
