Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1271965ybl; Fri, 23 Aug 2019 16:39:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpl3lHtUWlyKnd2bs8hKVEuc9WkWoQ8yf4fuN102aZp6cni+k5kWbpnin63vmN2cA8u09W X-Received: by 2002:a65:518a:: with SMTP id h10mr6019222pgq.117.1566603548028; Fri, 23 Aug 2019 16:39:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566603548; cv=none; d=google.com; s=arc-20160816; b=WjCyEESqFQAg8+J4TvvOUKgGhDbiDC+A5eFO3kD+dGepjUKtT16i3E+9d+4k3e5DUX 3SAq4iIPjVwe6M206kZmL5mw0zkosUDATuAaxJPQY6AAeJSKeaATPznT4RjH+5OPUvLe 22xpWAVZOpJAf4HTSTbdUtRvzTibPqWmrBAY/7wVLJPLKT2wJxDCUuCy8P8WF7Nq71Po AGxGiG9y5kBlZaL0ZSUBmHX8k65cAJsfgGo2EmRZXzwkieJ9w9v6ff5YbV1jgyooqTe8 FVW5ZaKQxZdXi/HkPB8n/JO3GA0wAv068hRx3L+6VfQLQQeSuZiiY0N0VG7Zve2RbeN1 B66A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=s0XicrLXuGI/HXmhbkjUlUHssBuuijSTQe3NjyOcpYc=; b=xgpfGdZD8yQ/ddTnUhGzoD44xRTcabu+cdbcUMYHgA27RP6DJkeYWKpHxnOvnh0t8n CzASgmXlP6VqWus2Rojk873/q/W0uWJ9M4ezBO/jHqTJRyB+izmvqcOuuawBS9aZY2GV 79Qb8p35sJTS4yPqrpn5DS8+MpZFvBrihODCsMHWwbAksIRB3E08A2lcQ67r/6CBz/9q JrI7NW20QSWBePv1JENIpLpRlbyue+g6g9LUC4zMpJ+lOJn7r0U4awK7ha0qQHRH3Hh3 nBfQ6hqRz9eOiELVbxYas1rK1eNP66I+PdwP6DenHUXGefJq3cE7MaobRm4MECzmyb7G GMFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Yj9GHaIN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j23si2961815pgh.535.2019.08.23.16.38.52; Fri, 23 Aug 2019 16:39:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Yj9GHaIN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392228AbfHWTzj (ORCPT + 99 others); Fri, 23 Aug 2019 15:55:39 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:51446 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392200AbfHWTzf (ORCPT ); Fri, 23 Aug 2019 15:55:35 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7NJtRxr044090; Fri, 23 Aug 2019 14:55:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566590127; bh=s0XicrLXuGI/HXmhbkjUlUHssBuuijSTQe3NjyOcpYc=; h=From:To:CC:Subject:Date; b=Yj9GHaINlCrLeqpl554w/KOYgdyGojesoH0OC4jJaXLz1xIV/29ZxiqNurw1BKwk+ Bi15b+mYcRCSC18HK3TvzCX7kClgG+vCVvYPenvVu3hYbTQgnCbf3N/pdxzwvF3RdF +jW4fAByG5Pfe9cLExhlaOpInKNEQwp4hXmLz/7A= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7NJtRCG069056 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 23 Aug 2019 14:55:27 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 23 Aug 2019 14:55:27 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 23 Aug 2019 14:55:27 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7NJtRZL004700; Fri, 23 Aug 2019 14:55:27 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH] leds: ti-lmu-common: Fix coccinelle issue in TI LMU Date: Fri, 23 Aug 2019 14:55:23 -0500 Message-ID: <20190823195523.20950-1-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the coccinelle issues found in the TI LMU common code drivers/leds/leds-ti-lmu-common.c:97:20-29: WARNING: Unsigned expression compared with zero: ramp_down < 0 drivers/leds/leds-ti-lmu-common.c:97:5-12: WARNING: Unsigned expression compared with zero: ramp_up < 0 Fixes: f717460ba4d7 ("leds: TI LMU: Add common code for TI LMU devices") Signed-off-by: Dan Murphy --- drivers/leds/leds-ti-lmu-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-ti-lmu-common.c b/drivers/leds/leds-ti-lmu-common.c index adc7293004f1..c9ab40d5a6ba 100644 --- a/drivers/leds/leds-ti-lmu-common.c +++ b/drivers/leds/leds-ti-lmu-common.c @@ -84,7 +84,7 @@ static int ti_lmu_common_convert_ramp_to_index(unsigned int usec) int ti_lmu_common_set_ramp(struct ti_lmu_bank *lmu_bank) { struct regmap *regmap = lmu_bank->regmap; - u8 ramp, ramp_up, ramp_down; + int ramp, ramp_up, ramp_down; if (lmu_bank->ramp_up_usec == 0 && lmu_bank->ramp_down_usec == 0) { ramp_up = 0; -- 2.22.0.214.g8dca754b1e