Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1239035pxu; Mon, 23 Nov 2020 15:38:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtsveNd3fCbMfa+V7L4OghaZT7Be/hyGRnHsTqYAaL1ZzQYdk4Mwq/2hehVJA5K5YGgKvp X-Received: by 2002:a05:6402:17b4:: with SMTP id j20mr1613851edy.24.1606174681500; Mon, 23 Nov 2020 15:38:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606174681; cv=none; d=google.com; s=arc-20160816; b=Sfy436fLuVM4fuKKYcZ0jKc3SRLqiw0IRPm28jh7KNJPlHT3Pn3yqBLjJ1To5kQnpg t7cz5b880dInQ7pOeCPavsSpYtMCM3CK2zQ7r4M50hxVcu14fnXaExvNK6LKiyv2Uv5S qzJUbMufRaia7Jq9EJwTW3n33HSy2vp+L6h6cnJJHSlY2JC1jP7D4sC4+OnVCB/l5T9t 6UHbzVymhxatPXuPf+BAL5/35HL1Jb9YXtTF9ICml1muJgh92VhoCotI/qQXsiAOYbDh X+uhgkE0fTHejrpsqFnSrMJMuhZaRBZFvxFhEacToz6PWIgcn4J+ecCXSo9uzr5C+Lxl XW1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HMTq8eCeGihAZGN0hegb2OdT++elWYJje7/rdfkvCeE=; b=x9RBuEtj+EN7M8/eauCSUhfdEKoZpymGvI2Gns2jKD0+WjspoSS+kP5xSxzmGI+yk2 f5R6rPSwVaX4Ykr4SDq1WUPF+lRjuktxm3+kFOeWU+Ib0pSuhXtGESzToMJsn0fCbtN7 bWKzwGg4Fg+vG2jrVTf/BSYwwR9HzPX8QjPRqTfTHcPreoIhsnEV/kd3tKRzvOyZIoME vU1r64LT/WGp2JNHljRn7QsUjRlVkJKzdAbLoFeVE+xLeG2SN5f1rE8VCCX5yEHCCCg1 Lb2Bjax7f2gR8+DRXUq3q1CXtO12o038GQiMXO7j5smzwV1B8G0OQxGMHu/UCONdg2Pi kqAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PU34X++b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb5si4247791ejc.446.2020.11.23.15.37.39; Mon, 23 Nov 2020 15:38:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PU34X++b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731990AbgKWMho (ORCPT + 99 others); Mon, 23 Nov 2020 07:37:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:49852 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731981AbgKWMhm (ORCPT ); Mon, 23 Nov 2020 07:37:42 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1ED892076E; Mon, 23 Nov 2020 12:37:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606135060; bh=0LRfqDYjziXAuIpjvJLLp/ikPqxdv7i5/GDhApY3MoA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PU34X++bO/P/j31BudyfPIB10bapQwU4lpu9FMIwqFn9PGphZTMUNV1GPllKCSCH6 RJBCCXEZPC/YOWBehnq3o++nlr89BHnIOZunI6zL7ggC+bOxXSTTBBmtE0iQGYCIny +plng+s9LsO4cSvgJMGBR6g5kRpSy72yZYKCFlWE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Michael Hennerich , Dmitry Torokhov , Sasha Levin Subject: [PATCH 5.4 060/158] Input: adxl34x - clean up a data type in adxl34x_probe() Date: Mon, 23 Nov 2020 13:21:28 +0100 Message-Id: <20201123121822.835087869@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121819.943135899@linuxfoundation.org> References: <20201123121819.943135899@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter [ Upstream commit 33b6c39e747c552fa770eecebd1776f1f4a222b1 ] The "revid" is used to store negative error codes so it should be an int type. Fixes: e27c729219ad ("Input: add driver for ADXL345/346 Digital Accelerometers") Signed-off-by: Dan Carpenter Acked-by: Michael Hennerich Link: https://lore.kernel.org/r/20201026072824.GA1620546@mwanda Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/misc/adxl34x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/misc/adxl34x.c b/drivers/input/misc/adxl34x.c index 5fe92d4ba3f0c..4cc4e8ff42b33 100644 --- a/drivers/input/misc/adxl34x.c +++ b/drivers/input/misc/adxl34x.c @@ -696,7 +696,7 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq, struct input_dev *input_dev; const struct adxl34x_platform_data *pdata; int err, range, i; - unsigned char revid; + int revid; if (!irq) { dev_err(dev, "no IRQ?\n"); -- 2.27.0