mfd: ab8500-debugfs: Fix incompatible types in comparison expression issue
authorLee Jones <lee.jones@linaro.org>
Tue, 23 Jun 2020 10:05:23 +0000 (11:05 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 6 Jul 2020 07:31:55 +0000 (08:31 +0100)
commitddb6b26c4102aab886277b2ca3c027b4976d819b
tree5faa77d90f7b5c59be21913fdc6f13d5e7187f77
parent54daa5d47c47662067115a78dd317fba3de9e828
mfd: ab8500-debugfs: Fix incompatible types in comparison expression issue

Smatch reports:

 drivers/mfd/ab8500-debugfs.c:1804:20: error: incompatible types in comparison expression (different type sizes):
 drivers/mfd/ab8500-debugfs.c:1804:20:    unsigned int *
 drivers/mfd/ab8500-debugfs.c:1804:20:    unsigned long *

This is due to mixed types being compared in a min() comparison.  Fix
this by treating values as signed and casting them to the same type
as the receiving variable.

Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ab8500-debugfs.c