Skip to content
Commit 9504db57 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jonathan Cameron
Browse files

iio: adc: tsc2046: fix a warning message in tsc2046_adc_update_scan_mode()



These variables are unsigned so the condition can't be less than zero
and the warning message will never be printed.

Fixes: 9374e8f5 ("iio: adc: add ADC driver for the TI TSC2046 controller")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YJ+ZuO43TnguY5vq@mwanda


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 2989df46
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment