All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
To: unlisted-recipients:; (no To-header on input)
Cc: linuxfancy@googlegroups.com, linux-amarula@amarulasolutions.com,
	quentin.schulz@theobroma-systems.com,
	Tommaso Merciai <tommaso.merciai@amarulasolutions.com>,
	Dario Binacchi <dario.binacchi@amarulasolutions.com>,
	Daniel Scally <djrscally@gmail.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2 6/7] media: ov5693: add ov5693_of_match, dts support
Date: Mon, 27 Jun 2022 17:04:52 +0200	[thread overview]
Message-ID: <20220627150453.220292-7-tommaso.merciai@amarulasolutions.com> (raw)
In-Reply-To: <20220627150453.220292-1-tommaso.merciai@amarulasolutions.com>

Add ov5693_of_match. Device tree support

Reviewed-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
 drivers/media/i2c/ov5693.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/media/i2c/ov5693.c b/drivers/media/i2c/ov5693.c
index 273caef467fe..0854226dc140 100644
--- a/drivers/media/i2c/ov5693.c
+++ b/drivers/media/i2c/ov5693.c
@@ -1532,10 +1532,17 @@ static const struct acpi_device_id ov5693_acpi_match[] = {
 };
 MODULE_DEVICE_TABLE(acpi, ov5693_acpi_match);
 
+static const struct of_device_id ov5693_of_match[] = {
+	{ .compatible = "ovti,ov5693", },
+	{ /* sentinel */ },
+};
+MODULE_DEVICE_TABLE(of, ov5693_of_match);
+
 static struct i2c_driver ov5693_driver = {
 	.driver = {
 		.name = "ov5693",
 		.acpi_match_table = ov5693_acpi_match,
+		.of_match_table = ov5693_of_match,
 		.pm = &ov5693_pm_ops,
 	},
 	.probe_new = ov5693_probe,
-- 
2.25.1


  parent reply	other threads:[~2022-06-27 15:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-27 15:04 [PATCH v2 0/7] media: ov5693: cleanup code and add dts support Tommaso Merciai
2022-06-27 15:04 ` [PATCH v2 1/7] media: ov5693: count num_supplies using array_size Tommaso Merciai
2022-06-29  7:59   ` Jacopo Mondi
2022-06-27 15:04 ` [PATCH v2 2/7] media: ov5693: add dvdd into ov5693_supply_names array Tommaso Merciai
2022-06-29  8:00   ` Jacopo Mondi
2022-06-27 15:04 ` [PATCH v2 3/7] media: ov5693: rename clk into xvclk Tommaso Merciai
2022-06-29  8:01   ` Jacopo Mondi
2022-06-27 15:04 ` [PATCH v2 4/7] media: ov5693: move hw cfg functions into ov5693_check_hwcfg Tommaso Merciai
2022-06-29  8:16   ` Jacopo Mondi
2022-06-29  9:15     ` Tommaso Merciai
2022-06-30 10:26     ` Daniel Scally
2022-06-27 15:04 ` [PATCH v2 5/7] media: ov5693: rename ov5693_check_hwcfg into ov5693_get_hwcfg Tommaso Merciai
2022-06-29  8:04   ` Jacopo Mondi
2022-06-27 15:04 ` Tommaso Merciai [this message]
2022-06-29  8:17   ` [PATCH v2 6/7] media: ov5693: add ov5693_of_match, dts support Jacopo Mondi
2022-06-27 15:04 ` [PATCH v2 7/7] media: dt-bindings: ov5693: document YAML binding Tommaso Merciai
2022-06-29 10:42   ` Krzysztof Kozlowski
2022-06-29 14:38     ` Tommaso Merciai

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=20220627150453.220292-7-tommaso.merciai@amarulasolutions.com \
    --to=tommaso.merciai@amarulasolutions.com \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=djrscally@gmail.com \
    --cc=linux-amarula@amarulasolutions.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linuxfancy@googlegroups.com \
    --cc=mchehab@kernel.org \
    --cc=quentin.schulz@theobroma-systems.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 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.