Tag: 929ca89c305a6ed7a4149115be99af6d73c36918

cpufreq-dt: fix handling regulator_get_voltage() result

Author: Andrzej Hajda <a.hajda@samsung.com> The function can return negative values so it should be assigned to signed type. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci. Link: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda Acked-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki — drivers/cpufreq/cpufreq-dt.c | 5 +++– 1 file changed, 3 insertions(+), 2 deletions(-)   diff –git …

Continue reading