Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp488338pxb; Wed, 3 Mar 2021 08:06:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxh6QXYeEXwp0Pi15F4Jp/bGLByr/O7VqubTaiM/Xkt0aXdq2J3ooFa4RhwIpggYTOrOuxF X-Received: by 2002:a19:4181:: with SMTP id o123mr16050619lfa.350.1614787600035; Wed, 03 Mar 2021 08:06:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614787600; cv=none; d=google.com; s=arc-20160816; b=PqebDySoe6gBtNLQkEio9bxNNQcss/ytphf1uVeiJSjnS/j0zfkDNguGoXVuNuMjgZ jSS45zLzTHCa6bzD6jVCv3SL3tfXysCtR+DuFu62Nw8uutgfSA8cwRFPTEfNZDmz4ZWs xm1auJhbvLiMZblmpt5Ey2SaMXvYrggLzTpNUS0BXjs20UmHkFSEQAVmfS4GoQ5/PsCA I4VrOU+pn0+tyRyntR+vsO+XZC7NB0IQusWvWy+zzU5jw1yc+rLFUqQ2Vz11fVtGSdct Aq8rfpmAQm6SZuVUmeka0nDeHSQmhE8rvnO6WYsp/gRjq0ZeMivwiNwWaPxGu1OH/ETE fPAQ== 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=7dLzlR4iiUu3iRW4uJnYrujCQVsGMq8hj8Q87qEBE14=; b=V9QoXMP0d9kv16QgY6ksM2urbyCfKqQeXvc2vcn8rvqUKJMwDZ7mrDMqdtkv318odd Hcj6fPSAQdrgcRXSOfPqU7nRXf5ejjmkacuMwOoKzfKHX7NDLO1Hgib9hsuWZKbbbGLP FTdtXwBl8U3AceTsYKGK3asMOV2/GvEaBjsvnEE8lSK11tpP6N7eEFD74AiXWqdPZ11w Fvxysu43ShRF/ud7K2QnPl7aUGa7v2wHInaGOisiEoMjPUNQRZW5fXbbz5cU7NkSYyc0 f41g1avxYRlEPqbbu/RFsFyUb1/kPBrU6cJVIXij+6NjkgHvNCaI7m58rEgr9CC4OoZV DgUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1+ETHY4C; 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 y13si10211526edv.220.2021.03.03.08.06.09; Wed, 03 Mar 2021 08:06:39 -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=1+ETHY4C; 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 S1345815AbhCAXdl (ORCPT + 99 others); Mon, 1 Mar 2021 18:33:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:58160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238786AbhCASF1 (ORCPT ); Mon, 1 Mar 2021 13:05:27 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6775065209; Mon, 1 Mar 2021 17:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614619313; bh=/8fv/41ucan8odDlI03AJzbym/wLndf/NEMfCLKETo4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1+ETHY4CF+orO9T7lFp+NWFNmoD8H3g+yBgCfXV7gZ4G7jlW88flemxNZ6MHQyq/o ySaaPvFJfS6B6KUyCEP7+LGDy3sLTrBUsjdvypOryeYAGhkWwOMGf/1PR7PoboCduo o7FdsaFH2P8UOXNMEEyTTrdz9S/ihv8imCp6gFWE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Jiapeng Chong , Dmitry Torokhov , Sasha Levin Subject: [PATCH 5.10 392/663] Input: zinitix - fix return type of zinitix_init_touch() Date: Mon, 1 Mar 2021 17:10:40 +0100 Message-Id: <20210301161201.258833409@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@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: Dmitry Torokhov [ Upstream commit 836f308cb5c72d48e2dff8d3e64c3adb94f4710d ] zinitix_init_touch() returns error code or 0 for success and therefore return type must be int, not bool. Fixes: 26822652c85e ("Input: add zinitix touchscreen driver") Reported-by: kernel test robot Reported-by: Jiapeng Chong Link: https://lore.kernel.org/r/YC8z2bXc3Oy8pABa@google.com Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/touchscreen/zinitix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/zinitix.c b/drivers/input/touchscreen/zinitix.c index 1acc2eb2bcb33..fd8b4e9f08a21 100644 --- a/drivers/input/touchscreen/zinitix.c +++ b/drivers/input/touchscreen/zinitix.c @@ -190,7 +190,7 @@ static int zinitix_write_cmd(struct i2c_client *client, u16 reg) return 0; } -static bool zinitix_init_touch(struct bt541_ts_data *bt541) +static int zinitix_init_touch(struct bt541_ts_data *bt541) { struct i2c_client *client = bt541->client; int i; -- 2.27.0