From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: David Heidelberg <david@ixit.cz>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Lee Jones <lee@kernel.org>,
Stephen Boyd <sboyd@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>,
David Collins <david.collins@oss.qualcomm.com>,
Subbaraman Narayanamurthy
<subbaraman.narayanamurthy@oss.qualcomm.com>,
Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>,
Fenglin Wu <fenglin.wu@oss.qualcomm.com>,
Casey Connolly <casey@connolly.tech>,
linux-arm-msm@vger.kernel.org, linux-input@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
mfd@lists.linux.dev, phone-devel@vger.kernel.org
Subject: Re: [PATCH v8 3/9] Input: qcom-pmi8998-haptics - Add Qualcomm PMI8998 haptics driver
Date: Mon, 30 Nov 2026 10:33:40 +0100 [thread overview]
Message-ID: <aw1BmxXL1y-JYj7X@monoceros> (raw)
In-Reply-To: <20261130-qcom-pmi8998-haptics-v8-3-a64ecd72d3bb@ixit.cz>
[-- Attachment #1: Type: text/plain, Size: 1327 bytes --]
On Mon, Nov 30, 2026 at 01:13:50AM +0100, David Heidelberg wrote:
> +#include <linux/mod_devicetable.h>
> [...]
> +#include <linux/platform_device.h>
<linux/platform_device.h> already provides of_device_id without the
unneeded transitive includes that <linux/mod_devicetable.h> has. So
please drop the latter to reduce build dependencies in your driver (and
to not interfer with my quest to remove <linux/mod_devicetable.h>).
> [...]
> +static void pmi8998_haptics_shutdown(struct platform_device *pdev)
> +{
> + struct pmi8998_haptics *haptics = platform_get_drvdata(pdev);
> +
> + pmi8998_haptics_stop_all(haptics);
> +}
Is this really needed? If yes a comment describing why would be awesome.
> [...]
> +static struct platform_driver pmi8998_haptics_driver = {
> + .probe = pmi8998_haptics_probe,
> + .shutdown = pmi8998_haptics_shutdown,
> + .driver = {
> + .name = "qcom-pmi8998-haptics",
> + .pm = pm_sleep_ptr(&pmi8998_haptics_pm_ops),
> + .of_match_table = pmi8998_haptics_match_table,
I'm not a fan of aligning the = in such initializers, because it tends
so be broken by later patches (or they have to touch more lines than
necessary to reinstate the alignment). Sometimes the alignment is even
broken from the start ...
If you ask me, just use a single space before the =.
> + },
> +};
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-11-30 9:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 0:13 [PATCH v8 0/9] input: Add support for the Qualcomm PMI8998 and PM660 haptics David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 1/9] dt-bindings: input: Add Qualcomm PMI8998 / " David Heidelberg via B4 Relay
2026-11-30 0:22 ` sashiko-bot
2026-11-30 0:13 ` [PATCH v8 2/9] dt-bindings: mfd: qcom,spmi-pmic: Allow the PMI8998 haptics child node David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 3/9] Input: qcom-pmi8998-haptics - Add Qualcomm PMI8998 haptics driver David Heidelberg via B4 Relay
2026-11-30 0:26 ` sashiko-bot
2026-11-30 9:33 ` Uwe Kleine-König [this message]
2026-11-30 0:13 ` [PATCH v8 4/9] arm64: dts: qcom: pmi8998: Add haptics node David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 5/9] arm64: dts: qcom: sdm845-oneplus: Enable haptics David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 6/9] arm64: dts: qcom: sdm845-xiaomi-beryllium: " David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 7/9] arm64: dts: qcom: sdm845-shift-axolotl: " David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 8/9] arm64: dts: qcom: pm660: Add haptics node David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 9/9] arm64: dts: qcom: sdm660-xiaomi-lavender: Enable haptics David Heidelberg via B4 Relay
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=aw1BmxXL1y-JYj7X@monoceros \
--to=u.kleine-koenig@baylibre.com \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=casey@connolly.tech \
--cc=conor+dt@kernel.org \
--cc=david.collins@oss.qualcomm.com \
--cc=david@ixit.cz \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=fenglin.wu@oss.qualcomm.com \
--cc=kamal.wadhwa@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--cc=phone-devel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=subbaraman.narayanamurthy@oss.qualcomm.com \
/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