From patchwork Thu Oct 24 13:29:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13849028 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 635531B3937 for ; Thu, 24 Oct 2024 13:29:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729776550; cv=none; b=SyNcJo7h59AgcqGc6zOcjB5K2TrXnuveDw8HSH6yRGDCkpMrE+TfKQ3pomu4S4Gm+IkEt3RuL0V99nJZ422+/8gy67VbvgjzFQ+DLsKG0iU9rZc60pIoOdFUnS5Ey6TyQ9gU5zytcdbNHv6lOl7gEbjHQbb/I+m4KyS5m4MT0yY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729776550; c=relaxed/simple; bh=q68HfXlHTWWl4rbaigobDcpvpCJTjQLMfFVW8h0dY2o=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=ZJS+jYrmiiwXaPTDXAqafFuMuSwE1zFfMsk5/K6mtQeQWq/I4rsqQO6oHraJ8X4UobAKcsMZnXdc0a9u4Qno1iL4cA/sMsWMKf3IWwADX1pOmb7h+VMM3yxXlGboXIoCAXjQd8FikeF4ATuWsYx6WHHpEtaG4LbJUIGiZbo+h7k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=lg3ATmPT; arc=none smtp.client-ip=209.85.222.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="lg3ATmPT" Received: by mail-qk1-f170.google.com with SMTP id af79cd13be357-7ac83a98e5eso86415285a.0 for ; Thu, 24 Oct 2024 06:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1729776547; x=1730381347; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=+2C1zNVTnqxK3bfhcpA0Ha1gOp3kHd+uO9/rg3CaC1Y=; b=lg3ATmPT2eJd1aJ9Z7eJp2Ae/K84OQuHDsygmNX+QKVjESOxfDpVlJUwHM0HvkmuY6 TFTBJrGraIa2N/o2nKIc4NOYxtX8TjYXnX/oYEGoLutIjTj83ClHc4m9lrKf+aI/vFp7 2n1V6VqL/Vw/KTl56yoGc+VkuIlNOdX/VsHS4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729776547; x=1730381347; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+2C1zNVTnqxK3bfhcpA0Ha1gOp3kHd+uO9/rg3CaC1Y=; b=mZaWpmo1uj8HCtioslH4OgClyn4KqqDfCuUjW5FsiuqwqEfLtt1m+im8dspqHnMrbI 4uStak6pLDy+itXbzmx/0OqT537biYW3WdpyLAcquEL0NLpWomA3dBU4zPQXkMHatN1s 6svGa6WDw0Yit885vlTVM615k6PNM70Wvwd3e93d1fxtNUdeLHEfPbnnFvxhRu36GqV5 U0eXz+PEMkT4gwqQwr6iTKe8W4tsZ7lChL7QGjxuamgT3Vdmws+PtUo9dYkTS77zRbOQ stEbWlLKAjXGEL8bkrrdOOJC8Zc5KW2zUpLu+/U+v+bFYohviY/GpHOdMzj7nARRtUXZ sBpw== X-Forwarded-Encrypted: i=1; AJvYcCV1T6UYMwSdwM0Cdsdgc48W7TSc84x13lpz6+94ncUAC2KdO39HhSGum5vs6t/irbk9Sxl/RwG45S0=@vger.kernel.org X-Gm-Message-State: AOJu0YylDhfi8dUGh7S1bmIpifYPFoPUkeSBqEjA/0Sc6NLnCmoUvV5Z tAD8wx9HbpQbfdV2EE/icGW0InzMJ0I6LbEgi54q7yf92mUmb3OgbQbQnPwfUA== X-Google-Smtp-Source: AGHT+IHo6T2ehrPfPNdovec+8cu0oAkEDPWTP6Qxezwn1gUeaYeTy3QxY04P2gTKRbvhnZyY+AAyEw== X-Received: by 2002:a05:620a:2409:b0:7a9:abdf:f517 with SMTP id af79cd13be357-7b186648cf8mr307570285a.25.1729776547153; Thu, 24 Oct 2024 06:29:07 -0700 (PDT) Received: from denia.c.googlers.com (189.216.85.34.bc.googleusercontent.com. [34.85.216.189]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7b165a5d663sm484204885a.94.2024.10.24.06.29.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2024 06:29:06 -0700 (PDT) From: Ricardo Ribalda Subject: [PATCH 0/3] iio: hid-sensors-prox: Add support for more channels Date: Thu, 24 Oct 2024 13:29:04 +0000 Message-Id: <20241024-hpd-v1-0-2a125882f1f8@chromium.org> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAKBLGmcC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxNDAyNj3YyCFN3UlNQkY/M0w7S0ZBMloMqCotS0zAqwKdGxtbUAuuzIFlU AAAA= To: Jiri Kosina , Benjamin Tissoires , Jonathan Cameron , Srinivas Pandruvada , Lars-Peter Clausen Cc: Harvey Yang , linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.13.0 EgisVision 620 provides two additional channels: - proximity - attention Add support for them. Signed-off-by: Ricardo Ribalda --- Ricardo Ribalda (3): iio: hid-sensors: Add proximity and attention IDs iio: hid-sensors-prox: Factor-in hid_sensor_push_data iio: hid-sensor-prox: Add support for more channels drivers/iio/light/hid-sensor-prox.c | 177 +++++++++++++++++++----------------- include/linux/hid-sensor-ids.h | 2 + 2 files changed, 95 insertions(+), 84 deletions(-) --- base-commit: c2ee9f594da826bea183ed14f2cc029c719bf4da change-id: 20241023-hpd-edeb37f1ffc4 Best regards,