From: David Lechner <dlechner@baylibre.com>
To: Dixit Parmar <dixitparmar19@gmail.com>,
Jonathan Cameron <jic23@kernel.org>
Cc: "Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 1/2] iio: magnetometer: add support for Infineon TLV493D 3D Magentic sensor
Date: Tue, 5 Aug 2025 11:32:01 -0500 [thread overview]
Message-ID: <b0764ff2-1361-457e-b240-2d08c0916a1f@baylibre.com> (raw)
In-Reply-To: <aJAmgX0876tu5Ss0@dixit>
On 8/3/25 10:18 PM, Dixit Parmar wrote:
>>> +static const struct iio_buffer_setup_ops tlv493d_setup_ops = { NULL };
>>
>> No need specify that NULL. Due to some odd quirks of compiler specific
>> handling and C spec evolution (none of which apply to the kernel because
>> we carefully choose build options) that is actually less likely to do what
>> you want than = { };
>>
> Originally it was { } in V1. Got review comment that it must have NULL
> if no ops is being passed, so I added (May be I would have asked and
> understand their point). Nevertheless will remove NULL.
We don't need tlv493d_setup_ops at all. The NULL comes later where
tlv493d_setup_ops was used:
ret = devm_iio_triggered_buffer_setup(dev, indio_dev,
iio_pollfunc_store_time,
tlv493d_trigger_handler,
NULL);
next prev parent reply other threads:[~2025-08-05 16:32 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-02 6:44 [PATCH v2 0/2] iio: magnetometer: add support for Infineon TLV493D 3D Magnetic Sensor Dixit Parmar
2025-08-02 6:44 ` [PATCH v2 1/2] iio: magnetometer: add support for Infineon TLV493D 3D Magentic sensor Dixit Parmar
2025-08-02 11:43 ` Jonathan Cameron
2025-08-02 13:25 ` Andy Shevchenko
2025-08-04 3:18 ` Dixit Parmar
2025-08-05 16:32 ` David Lechner [this message]
2025-08-10 18:34 ` Jonathan Cameron
2025-08-06 16:27 ` kernel test robot
2025-08-02 6:44 ` [PATCH v2 2/2] dt-bindings: iio: magnetometer: document Infineon TLV493D 3D Magnetic sensor Dixit Parmar
2025-08-02 7:45 ` Krzysztof Kozlowski
2025-08-04 2:44 ` Dixit Parmar
2025-08-04 6:03 ` Krzysztof Kozlowski
2025-08-04 6:16 ` Krzysztof Kozlowski
2025-08-04 13:36 ` Dixit Parmar
2025-08-03 16:20 ` Rob Herring (Arm)
2025-08-04 2:41 ` Dixit Parmar
2025-08-05 16:35 ` David Lechner
2025-08-02 8:53 ` [PATCH v2 0/2] iio: magnetometer: add support for Infineon TLV493D 3D Magnetic Sensor Andy Shevchenko
2025-08-02 11:15 ` Jonathan Cameron
2025-08-02 13:17 ` Andy Shevchenko
2025-08-04 2:52 ` Dixit Parmar
2025-08-04 9:03 ` Andy Shevchenko
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=b0764ff2-1361-457e-b240-2d08c0916a1f@baylibre.com \
--to=dlechner@baylibre.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dixitparmar19@gmail.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--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®