diff options
author | Biju Das <[email protected]> | 2023-08-17 17:10:38 +0100 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2023-08-27 23:48:32 +0200 |
commit | f45d32d2cd183c09b6c9aa8689a91d6f2760b557 (patch) | |
tree | 348dbbf0b7aa07831967ded23c28781950b24e37 /scripts/rustdoc_test_builder.rs | |
parent | 45cc2a7de905a1f3bb38fb7d6f68a204c71630be (diff) |
rtc: isl1208: Fix incorrect logic in isl1208_set_xtoscb()
The XTOSCB bit is not bit 0, but xtosb_val is either 0 or 1. If it is 1,
test will never succeed. Fix this issue by using double negation.
While at it, remove unnecessary blank line from probe().
Reported-by: Pavel Machek <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Biju Das <[email protected]>
Reviewed-by: Pavel Machek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions