Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1110358rdb; Mon, 19 Feb 2024 04:49:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX47YaaC6JlnOBAd0HTsmHzOjZo9n8P164DZwwtl9scpWDCrqlNFbBBXtMhKqFLb/gtFUc34fMq89pcOYq2EVS/LCaKLvSXUPXe/SjXzg== X-Google-Smtp-Source: AGHT+IGVLLJauub1k/1tCVsPbYSczjeaDXqsKVQyJK8HhIWvIBt70/+OsYumtkoOniXcmHpfWzZN X-Received: by 2002:aa7:8a14:0:b0:6e3:b7cb:b105 with SMTP id m20-20020aa78a14000000b006e3b7cbb105mr3377523pfa.18.1708346968726; Mon, 19 Feb 2024 04:49:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708346968; cv=pass; d=google.com; s=arc-20160816; b=UwzTia7rchA1Wo7T97HrhYQLMK8lBpTkry5GsCSas22Nuuj12mKWZwXPKBs6rqcvZA OlOA0QVqBH/j+pU00nzo8KxAsxl7F887BXFAr05TIM2wslrA8LN//xzkmlG5eJij9etm OxzspLyaJui4NbWZy8iqklDLitWqmsmoOxL6umIGxB4Yjd9xbqkwr8K/RzuqjLUe/XEJ m/q/qC3oeFP5FWXhwpSSirm0oyL6EliTYgS3LnYrbwiBhG8Wc6mKEhQzK08tn6NxPY4K aE7bDUGYjmVVgaksDBjWpg6xk07knk1FuKuuREiyDN7kpAkMf999s8Q9E0fhJNDEqc+8 U2xA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gJALkusf1cXf4p7M933GGzZIRRakiGBqKNoFoSjNoJY=; fh=RULONb7ux2Epp9EhSMzquVHmNWMjbQ411KXz9X6MJQ8=; b=z6PUfYWzuCHKk4Hph6D6y2u6sLdYwQAST+sKH1Q+XmfzbfDwJaDS4sO7bmBR//a5yI reAB6hm+0NJm4hMHi7HePqaVMUPZBUV/ziDHyaE98yrg8SjeDjjQkbbNYNX/ONpRHfs3 syTuNPMnutQyrFb2Oye9zW1kL6JuU5Rhg8Lea6hu0FIJuHmgICMiwxKh6AfEg9z2ylWy BIqR/Z70LRr7YpiFTYOpotl5lh7LzDai/MjNLjeQw7OYDzve8RACyLdtvcvVjMNaA85b IZfw2EHhrQd8pO1bu3ir5FfYQVMrCbexE8qnlpgfsV/1mFjEKnZabkzTSbkkVdwDm1MC uvCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Dt8kmLMu; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-71345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l5-20020a632505000000b005dc4f9cececsi4402509pgl.623.2024.02.19.04.49.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 04:49:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Dt8kmLMu; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-71345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6A59C28193E for ; Mon, 19 Feb 2024 12:49:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDB1B2E859; Mon, 19 Feb 2024 12:49:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Dt8kmLMu" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E00DF2D05D; Mon, 19 Feb 2024 12:49:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708346960; cv=none; b=XkaN1SL5mvUmgcxapmOVkLG8EXjxDbYSHXXXeQuNIFdf3369vY9JzJ2fb4xJDu65Fpm9esEdmDuvVbV/AR8XHKn3kDnAus5Te53nFtD0QDxnrkK4W25Qov+JNYtGx3jc9VeZ3BxwRJqMohAwlMuKkfYaOR8JKFEvA8YfPyW5dBY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708346960; c=relaxed/simple; bh=06p6ukdvxbrRf6/uOtqeOyeu+dw+dCTpr3YlazzJxlM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sXhb4mrnNbDFfnbSIOvInBXoxQDu2STrlNwnTJ0CtpdBbnqLALv/kDMReyFi4LXgFrszmG159T0LAaXPo/k340Tu31fofUa5EXMrmci0tiF3TBjeZbCti5OY8KC67f0ZkI+yya6Kq3g3z68dI93/1tyH/V1g1VqeqUVcva/3+Qs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Dt8kmLMu; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 336FB40006; Mon, 19 Feb 2024 12:49:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708346954; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gJALkusf1cXf4p7M933GGzZIRRakiGBqKNoFoSjNoJY=; b=Dt8kmLMuUKWq7J5kXL2nVlaTETvYXuskZRDGfU95wO2IHZ+Ppd4DsAGYhht5GaputNIkF2 Dr7TOaMh2TErh9ue2Stx5Eh1QhGz5Jc2f8u1eZaBjLKDv+qO3CliZ8t14wCP9Z1pX+UgTg nA/jCP9JGV4tiKN3brQhVwVYPcdHOUSrIcUhBO4ec8jqK1FCw4bMIa1HMDEgNKtt45lLGv B8RwL5ETqIHOs7pj/TylF4YGPwNUJz/y31jizxHbS5uTsYJkEPm9AHA5L6o2pP2OhodsFQ 4K3Aapf/caxS3vxsv3DA4bx8CT/8u6DQFJe8zzHOkm3DdbHmsbGHpgp+ekR0VA== Date: Mon, 19 Feb 2024 13:49:13 +0100 From: Kamel Bouhara To: SHUKLA Mamta Ramendra Cc: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Henrik Rydberg , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , Marco Felsch , Jeff LaBundy , POPESCU Catalin , "mark.satterthwaite@touchnetix.com" , Thomas Petazzoni , Gregory Clement , GEO-CHHER-bsp-development Subject: Re: [PATCH v8 3/3] Input: Add TouchNetix axiom i2c touchscreen driver Message-ID: <20240219124913.GA99571@tpx1.home> References: <20240219101221.129750-1-kamel.bouhara@bootlin.com> <20240219101221.129750-4-kamel.bouhara@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-GND-Sasl: kamel.bouhara@bootlin.com Le Mon, Feb 19, 2024 at 10:58:22AM +0000, SHUKLA Mamta Ramendra a ?crit : > > > Hello Kamel, Hello, [...] > > + > > +/* > > + * Support function to axiom_process_u41_report. > > + * Generates input-subsystem events for every target. > > + * After calling this function the caller shall issue > > + * a Sync to the input sub-system. > > + */ > > +static bool axiom_process_u41_report_target(struct axiom_data *ts, > > + struct axiom_target_report *target) > > +{ > > + struct input_dev *input_dev = ts->input_dev; > > + struct axiom_u41_target *target_prev_state; > > + enum axiom_target_state current_state; > > + int id; > > + > > + /* Verify the target index */ > > + if (target->index >= AXIOM_U41_MAX_TARGETS) { > > + dev_err(ts->dev, "Invalid target index! %u\n", target->index); > > + return false; > > + } > > + > > + target_prev_state = &ts->targets[target->index]; > > + > > + current_state = AXIOM_TARGET_STATE_NOT_PRESENT; > > + > > + if (target->present) { > > + if (target->z >= 0) > > + current_state = AXIOM_TARGET_STATE_TOUCHING; > > + else if (target->z > AXIOM_PROX_LEVEL && target->z < 0) > > + current_state = AXIOM_TARGET_STATE_HOVER; > > + else if (target->z == AXIOM_PROX_LEVEL) > > + current_state = AXIOM_TARGET_STATE_PROX; > > + } > > + > > + if (target_prev_state->state == current_state && > > + target_prev_state->x == target->x && > > + target_prev_state->y == target->y && > > + target_prev_state->z == target->z) > > + return false; > > + > > + id = target->index; > > + > > + dev_dbg(ts->dev, "U41 Target T%u, slot:%u present:%u, x:%u, y:%u, z:%d\n", > > + target->index, slot, target->present, > > + target->x, target->y, target->z); > > This doesn't compile. You forgot to replace slot with id. > > > - dev_dbg(ts->dev, "U41 Target T%u, slot:%u present:%u, x:%u, > y:%u, z:%d\n", > - target->index, slot, target->present, > + dev_dbg(ts->dev, "U41 Target T%u, id:%u present:%u, x:%u, y:%u, > z:%d\n", > + target->index, id, target->present, > I don't know how I could missed this one :/ ! Fixed thanks ! -- Kamel Bouhara, Bootlin Embedded Linux and kernel engineering https://bootlin.com