All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Hendrik Noack <hendrik-noack@gmx.de>
Cc: Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	 Ferass El Hafidi <funderscore@postmarketos.org>,
	linux-input@vger.kernel.org, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org
Subject: Re: [PATCH v8 2/2] Input: Add support for Wacom W9000-series penabled touchscreens
Date: Thu, 28 May 2026 22:42:05 -0700	[thread overview]
Message-ID: <ahkmPEEyF-AKKy6X@google.com> (raw)
In-Reply-To: <20260528074818.12151-3-hendrik-noack@gmx.de>

Hi Hendrik,

On Thu, May 28, 2026 at 09:48:18AM +0200, Hendrik Noack wrote:
> +
> +struct wacom_w9000_data {
> +	struct i2c_client *client;
> +	struct input_dev *input_dev;
> +	const struct wacom_w9000_variant *variant;
> +	u16 fw_version;
> +
> +	struct touchscreen_properties prop;
> +	u16 max_pressure;
> +
> +	struct regulator *regulator;
> +	bool powered;

We do not really need this flag as ling as you use
input_device_enabled() in wacom_w9000_suspend().

...

> +
> +	dev_dbg(dev, "max_x:%d, max_y:%d, max_pressure:%d, fw:%#x", wacom_data->prop.max_x,
> +		wacom_data->prop.max_y, wacom_data->max_pressure,
> +		wacom_data->fw_version);

Here and in couple of other places we miss '\n' in the diagnostic
messages.

> +
> +	input_dev->name = wacom_data->variant->name;
> +	input_dev->id.bustype = BUS_I2C;
> +	input_dev->dev.parent = dev;

This is not needed: devm_input_allocate_device() sets the patent for us.

No need to resubmit, I made edits on my end.

Thanks.

-- 
Dmitry

      parent reply	other threads:[~2026-05-29  5:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-28  7:48 [PATCH v8 0/2] Add support for Wacom W9000-series penabled touchscreens Hendrik Noack
2026-05-28  7:48 ` [PATCH v8 1/2] dt-bindings: Input: Add " Hendrik Noack
2026-05-28  8:32   ` sashiko-bot
2026-05-28 17:10     ` Conor Dooley
2026-05-28  7:48 ` [PATCH v8 2/2] Input: Add support for " Hendrik Noack
2026-05-28  9:01   ` sashiko-bot
2026-05-29  5:42   ` Dmitry Torokhov [this message]

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=ahkmPEEyF-AKKy6X@google.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=funderscore@postmarketos.org \
    --cc=hendrik-noack@gmx.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-input@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.