From nobody Mon Nov 25 02:02:32 2024 Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (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 EB77015687C for ; Fri, 1 Nov 2024 07:46:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730447201; cv=none; b=T2Qr2Yb/D32BOL196hZHw81mfSnL1/G+PqePvkNCzSk6dV+SYmhMDXbnjY94H19hpGw4yNlA3ygZ3Sgo+GtOOxGmUYLtkgf+li7I6LSNSPfOeXLZxWZxVW4MJrp3uxK6Bvx5bKZqyUIgrDXDejAEmFKTjwHKgNuSk+C6bvMkyvY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730447201; c=relaxed/simple; bh=CUtvkf+t59QX4prslptAVYmO9B9yIfrnRI6r3hKSoAg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZMLai8mzlB3Kiq/Onnxw14sbxb4qUnhEZlEPBXFR5ngduU/tg3tucjxBBBDpoAevsLET9fwR1u7nnxQEpAr/kr9nCyXcc4+o830IgccAMT/a401XTKf0BfMbsF5JZ2lywHA8utyV0ktg1je9JXgByHUILKtcbqPm//ziSecVF/o= 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=mqPL/EuQ; arc=none smtp.client-ip=209.85.219.44 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="mqPL/EuQ" Received: by mail-qv1-f44.google.com with SMTP id 6a1803df08f44-6cbce16d151so10550616d6.2 for ; Fri, 01 Nov 2024 00:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1730447198; x=1731051998; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=adgmJOhHcaFkex36EFAe1BXPWl8Ng3rQHGIFjAA8UGA=; b=mqPL/EuQrfZnUTzjIOMPZHal32m+YGMJuOywQsjfi0JoLuc9mlooedb5W6Z1oTIsg9 lVu5QKRh8j1z52tfPi3m4LjXc2MPIcKU5YheoM8kZNPigfpy3OXcJ5RxaT1U/We/oY2R g+KXU9xeezAWbEELqs5Jg1OwMcKsIMQa5Rag8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730447198; x=1731051998; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=adgmJOhHcaFkex36EFAe1BXPWl8Ng3rQHGIFjAA8UGA=; b=atPqaDcCoDzLngC7ajhX5XdNGS8h+mhxFNB7A5LKj3ItMFRhKe+KRdUH0QWILco7d/ wgeDMlRL6wPlO9vIxAK7mK14zcL03jlkQIc+F3FZQX1gdV1lbIHIyHTBp76wNz8SFVQ9 XdPcnlpYi/VlnKOzKqpr4QS8f8ULr1FKG+l0A5b2B6j0k5peVIZqTxU0DL4/cFwSg286 whTU+1sNkII+6BPBXSiz2yFbUwMNSPUuFSAhEerMDhoqNr6wP/nOOnk62q2HSi5jYs4M IDGXcufKt+GPr9RY6QFlGQMr7w/ChPEo8ycP8TWwSsJ6q3o4zIyutYUHwfWWxN9z5lEw 8ZsQ== X-Forwarded-Encrypted: i=1; AJvYcCXwlWwC+LEygfLqZuynBf8QpBlTG68ZQOq8vESBsCBSDOQ7MzXmj2dKtgaSW6KAgWJ0U7vCoQtSGfmjKAc=@vger.kernel.org X-Gm-Message-State: AOJu0YyL8mFuFjZMK90BuzUGHc4h4yzXzRzc+neBj5C8YqydLfaY4Tcn hZ8nmfr2n+WciBrA3aRnI/6AKlEM/t31LL9LZNw/qZRavZyCB+gxhVqZGiA54w== X-Google-Smtp-Source: AGHT+IESbbksSKB95l0C8Ah+v/s+ywwV7GE+w0AJMTMGdTtVsJeriYkTZ0MfwWXgg+cncsRV1leGZQ== X-Received: by 2002:a05:6214:2f81:b0:6cb:c9bc:1a23 with SMTP id 6a1803df08f44-6d1856ea81dmr255805576d6.24.1730447197931; Fri, 01 Nov 2024 00:46:37 -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 6a1803df08f44-6d35415b1casm16444236d6.78.2024.11.01.00.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2024 00:46:37 -0700 (PDT) From: Ricardo Ribalda Date: Fri, 01 Nov 2024 07:46:30 +0000 Subject: [PATCH v3 4/5] iio: hid-sensors-prox: Make proximity channel indexed 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241101-hpd-v3-4-e9c80b7c7164@chromium.org> References: <20241101-hpd-v3-0-e9c80b7c7164@chromium.org> In-Reply-To: <20241101-hpd-v3-0-e9c80b7c7164@chromium.org> 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 We are going to introduce more proximity channels. Make proximity a indexed channel now, in a simple patch, so the change can be easily bisected if there are any issues. Signed-off-by: Ricardo Ribalda --- drivers/iio/light/hid-sensor-prox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/light/hid-sensor-prox.c b/drivers/iio/light/hid-se= nsor-prox.c index d38564fe22df..0f12a8a83790 100644 --- a/drivers/iio/light/hid-sensor-prox.c +++ b/drivers/iio/light/hid-sensor-prox.c @@ -40,6 +40,7 @@ static const struct iio_chan_spec prox_channels[] =3D { BIT(IIO_CHAN_INFO_SAMP_FREQ) | BIT(IIO_CHAN_INFO_HYSTERESIS), .scan_index =3D CHANNEL_SCAN_INDEX_PRESENCE, + .indexed =3D true, } }; =20 --=20 2.47.0.163.g1226f6d8fa-goog