Linux I2C development
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa@kernel.org>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: linux-i2c@vger.kernel.org, Jose Cazarin <joseespiriki@gmail.com>
Subject: Re: Device match data and DT compatible string fallback
Date: Mon, 28 Jun 2021 17:55:01 +0200	[thread overview]
Message-ID: <YNnw1aqUk/zVkz4j@ninjato> (raw)
In-Reply-To: <YNnq5ljCeSbBU7cQ@pendragon.ideasonboard.com>

[-- Attachment #1: Type: text/plain, Size: 399 bytes --]


> I could fix this in the driver by calling of_device_get_match_data() in
> the probe function with dev->of_node is not NULL, but I feel this is
> really an issue that should be handled by the framework. Has anyone ever
> given it a thought ?

The of entries should also have .data entries and use that.

The driver could also be converted to probe_new to become independent of
the i2c_device_id.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2021-06-28 15:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-28 15:29 Device match data and DT compatible string fallback Laurent Pinchart
2021-06-28 15:55 ` Wolfram Sang [this message]
2021-06-28 16:21   ` Laurent Pinchart

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=YNnw1aqUk/zVkz4j@ninjato \
    --to=wsa@kernel.org \
    --cc=joseespiriki@gmail.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-i2c@vger.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