Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1238071pxu; Mon, 23 Nov 2020 15:36:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxeROh5K8pBGB3yAiJd+u4tKKBO2IZDGs/siVecBeRtf0KsiJF5S8Hh5kCZI72kdnpjo54l X-Received: by 2002:aa7:c30d:: with SMTP id l13mr1462599edq.280.1606174568151; Mon, 23 Nov 2020 15:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606174568; cv=none; d=google.com; s=arc-20160816; b=XoaWnO+l3rX4dQvaywO2vGebSIbiZ4gtyhr8EDSx6GSRpfjMC+B0fLKDkgGZRIoh3V f+Ak2MOmi8yN8XnpVkQa9IPVJShreq85sKcfTNw3QaOwcOv3e/vKa04OQKM84lPCd5BN N9wIvUj1JTw3dVK03cvrG5bbAyC4DveXsEHtdQ6QiwVjxx8H0TZ76HHF2bQxEZKGJJCz eSB0yzg3icwaj+/Q9TgZGxIfOy6ycMM9FK4FdQMm4uRX3+vRlaahSfxLsGL2YST3TKmX p/i+qKORaS0OHcpGz8NAS/2yNXh90unFuzORBd0UB9nUg+Kq8C4GhERFLx7ZlUiOGwv0 EanQ== 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=ZOXWDcfitSzQELPvgsgWYaxTtadBJW9opz4C75tkwoE=; b=WjJnjFGFwGODPb6Xt1syEeEiUJx4b9qzPudPKpFYgPzP5Ayeqa3QhKI12jyypzkk1n 7wSeztjhe4o62IGopUwQ/Kf5COJm1tAiEBEx+IjNcEuGBL2kMK+/7eyUBCwXAZCgBgED 6i6yzxBzSPS5i7ldrS0ptF8Mhfr13icNZf4D4tpx8DCLs3vmeVCBaFYrD9XmM3Guvdre k8pldQkmzj0Kz5b4Vuxq+FqJ3H8Vkcje17byIF/E2gI9XdFWInQK+i+AcgjbkxKkP2Q4 2XEHmcPOAeqzHLDJJmhspGFrue22/kBBxgUb6uSGVloDfAc2Rb/AOzE3tVv1aRfmd8N5 C2BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YOvRqqrc; 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 f12si7281681ejb.687.2020.11.23.15.35.45; Mon, 23 Nov 2020 15:36:08 -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=YOvRqqrc; 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 S1731150AbgKWMc5 (ORCPT + 99 others); Mon, 23 Nov 2020 07:32:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:43900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729564AbgKWMcf (ORCPT ); Mon, 23 Nov 2020 07:32:35 -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 C6DC920728; Mon, 23 Nov 2020 12:32:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134755; bh=MBo+IX/ML+jkCXfW30TJxNyDNIrE5kK8+sEyXfS/fdo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YOvRqqrcXvFwNeRHzdb6Mm+WY/pI23nQVbPqE4VkLdVRtdoSavQzNqdVt6aBjtCPy sxT3kS74DUoLAq+Ccesohv+dfDQByiA9IU8p4LfI7HCpj4SXMNlzkqkaH4uKcX9clY qtmebNNcMmW5kStbVT2vPivdJHIkvp8wHVgcWcmA= 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.19 40/91] Input: adxl34x - clean up a data type in adxl34x_probe() Date: Mon, 23 Nov 2020 13:22:00 +0100 Message-Id: <20201123121811.262599370@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121809.285416732@linuxfoundation.org> References: <20201123121809.285416732@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 a3e79bf5a04b0..3695dd7dbb9b4 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