HomeFreeBSD

rk_pinctrl: fix error check

Description

rk_pinctrl: fix error check

The parse_bias method returns a signed int, with a value of -1 when
the device tree reports nothing of the bias configuration. Convert the
local 'bias' from unsigned to signed to properly check this condition.

PR: 229721
Reviewed by: mhorne
MFC after: 3 days

(cherry picked from commit 97ab935d566c85458bc7cab99c402f026d704eff)

Details

Provenance
John F. Carr <jfc@mit.edu>Authored on Jun 14 2024, 4:37 PM
mhorneCommitted on Jun 27 2024, 5:56 PM
Parents
rGb31999c05135: physmem: Correct a comment
Branches
Unknown
Tags
Unknown

Event Timeline