Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp842310pxu; Mon, 23 Nov 2020 05:40:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxX0ZFfv844kLasv367+OQ30IGBlkadG1HNmjMOP28BiVqxz2Daq1oTTwzWllPv+L8pPn6F X-Received: by 2002:aa7:c049:: with SMTP id k9mr5197916edo.49.1606138812813; Mon, 23 Nov 2020 05:40:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606138812; cv=none; d=google.com; s=arc-20160816; b=MUyyp+eE7nkGHMvX98V7+g9LIYEDqKKsfxmtkdiOtree6rnMw0/rZtGnwGidwy3nOg +V1YgxyRFVFEgnHDdnlGgPTTHatoCLIUTTYpulefysyHXQNw6Um0fHKSbnMfb11wiSIn hBM8Lse3Whi3nosqliVp+pThQRwpNLYcySlMsn5K00NkZycDbV5A16y3c9Qbv5spfrlD 26BnYJMhQxpX9EAjy67R5lKrtCl7CJiB3ERX953vJtWaCLg9yQK4JDr3XMuu07QzTix4 6hjGn5Fa1BC4q5yr3rQAFMEwoBWTJL41UMwukfSXgOow4bQM/hmQzkQI7JjUc3PzBVDi 4P8w== 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=CmaYEq7A3b/I1QYF6gxsRJ73PSDU12p1q2BqOozRF0I=; b=ITk43iXCEN6WDVfRXDXuyNUszPNRPjwEetq8anXK0Oe54tHA5YLFYgOQhAdSXqBFTB rIeAxnyM8hDujgsEyiGLQkS67Pcn3mdEYTD5UjfljOlgawNYvkWbgSQ8T5MzXmJZXU/J eS2Hylm9dNXxaVOoOnhGktz//tn+0yhXTrk0GAKjMAqj9L/S4zGl1AGXgsOQ4M+QVT0Y UOyTo+DRKCBL+tLInOGbqdhLAFRZBJ2Wmx4Zx0/eGCEaIG/hhfDSm+sTGi70hZ4wBlJe 2T8uAXQbzTRTdsU+PMR2zMZSBhjwJDIz4qRvLbylI2IW1YzQ2Eh0NYWVh60iE/MtEtLt fheQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kgGcnBTN; 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 b9si6374018ejd.156.2020.11.23.05.39.49; Mon, 23 Nov 2020 05:40:12 -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=kgGcnBTN; 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 S1732258AbgKWNee (ORCPT + 99 others); Mon, 23 Nov 2020 08:34:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:33570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729392AbgKWMYH (ORCPT ); Mon, 23 Nov 2020 07:24:07 -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 7C6AE208C3; Mon, 23 Nov 2020 12:24:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134247; bh=zVq/UhSpo+wwOKmNI02tM31g0NVlvNP7AgVGE8ogwg8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kgGcnBTNPyLLglSeRCHgU1Qv+Tq1uoRDa6yONv33Uve2syakOzGHUooMj1GUqxRuP C+Emb0L0syHOizooXeE3uO42oOYely5eXok/Q9vNG5/Iu0uh6fzFfqlDO1C3B8976H 5cx+mMZWdnYgASQJ3GpNjKsYIPQnKZ4BgcyKeeMY= 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 4.4 16/38] Input: adxl34x - clean up a data type in adxl34x_probe() Date: Mon, 23 Nov 2020 13:22:02 +0100 Message-Id: <20201123121805.093068558@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121804.306030358@linuxfoundation.org> References: <20201123121804.306030358@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 2b2d02f408bbb..2e189646d8fe2 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