From: Guenter Roeck <linux@roeck-us.net>
To: Hermes Zhang <Hermes.Zhang@axis.com>,
jdelvare@suse.com, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org
Cc: kernel@axis.com, linux-kernel@vger.kernel.org,
linux-hwmon@vger.kernel.org, Jonathan Cameron <jic23@kernel.org>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: Re: [PATCH 2/2] hwmon: Add support for D3-323-AA Pyroelectric IR sensor
Date: Wed, 11 Dec 2024 22:17:49 -0800 [thread overview]
Message-ID: <5b53cffd-ae7f-45e5-b265-8e700d753275@roeck-us.net> (raw)
In-Reply-To: <20241212042412.702044-3-Hermes.Zhang@axis.com>
Hi,
On 12/11/24 20:24, Hermes Zhang wrote:
> Add support for Nicera D3-323-AA Pyroelectric IR sensor. The sensor
> support to config the threshold/filter_type/filter_step and return the
> detect result in sysfs attribute.
>
> Signed-off-by: Hermes Zhang <Hermes.Zhang@axis.com>
> ---
>
...
> +
> +static DEVICE_ATTR_WO(pir_threshold);
> +static DEVICE_ATTR_WO(pir_filter_step);
> +static DEVICE_ATTR_WO(pir_filter_type);
> +static DEVICE_ATTR_RO(pir_detector);
> +
> +static struct attribute *d3323aa_attrs[] = {
> + &dev_attr_pir_threshold.attr,
> + &dev_attr_pir_filter_step.attr,
> + &dev_attr_pir_filter_type.attr,
> + &dev_attr_pir_detector.attr,
> + NULL,
> +};
> +
> +ATTRIBUTE_GROUPS(d3323aa);
> +
I don't know what this is, but it is most definitely not a hardware
monitoring device. I don't see a definition of those attributes,
so I have no idea what they represent.
Maybe this is an iio device, but given the unusual attributes
I am not even sure about that. Jonathan, any thoughts ?
Guenter
next prev parent reply other threads:[~2024-12-12 6:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20241212042412.702044-1-Hermes.Zhang@axis.com>
2024-12-12 4:24 ` [PATCH 1/2] dt-bindings: hwmon: Add D3-323-AA Hermes Zhang
2024-12-13 11:06 ` Krzysztof Kozlowski
2024-12-12 4:24 ` [PATCH 2/2] hwmon: Add support for D3-323-AA Pyroelectric IR sensor Hermes Zhang
2024-12-12 6:17 ` Guenter Roeck [this message]
2024-12-12 16:59 ` Jonathan Cameron
2024-12-13 5:39 ` Hermes Zhang
2024-12-14 11:46 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5b53cffd-ae7f-45e5-b265-8e700d753275@roeck-us.net \
--to=linux@roeck-us.net \
--cc=Hermes.Zhang@axis.com \
--cc=conor+dt@kernel.org \
--cc=jdelvare@suse.com \
--cc=jic23@kernel.org \
--cc=kernel@axis.com \
--cc=krzk+dt@kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®