From patchwork Wed Jun 29 15:29:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 12900316 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97ADFC43334 for ; Wed, 29 Jun 2022 15:30:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234278AbiF2PaQ (ORCPT ); Wed, 29 Jun 2022 11:30:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234271AbiF2PaD (ORCPT ); Wed, 29 Jun 2022 11:30:03 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8DE536695 for ; Wed, 29 Jun 2022 08:30:01 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id n8so8766229eda.0 for ; Wed, 29 Jun 2022 08:30:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YM+AbWC19jugmctruXrYCqIRv2YGYgOFFX1PeI35Oss=; b=qLIJUtXYkIpODcJfHifnKXFE5qcQQLG2Wz/bg0gL0wYRpBV5vzhEa/8SGXn92FnQVi zxGF9NNWYpukQKcGa6B4pPCmoOhxJoyucSAqMfh1MUhOkMT5mJbsNFV0diMjIPWLkKiA h6pov3sYNneBYMfnhIXs93GwD58/PB4/+YfVM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YM+AbWC19jugmctruXrYCqIRv2YGYgOFFX1PeI35Oss=; b=Tg/2BvKVX612Y3V5WOh1J83nejwIJcbGotsh6xcYlhmT987wIbJ1Je7ijQTGH8pO1T yI77p1m+/vr9zLgGAcH0TVRzyP38RnQB6I2dVK+AIMrmLoMyZfcIBjKrcIvYeA/sK+/5 whmlowoec2XhZ7OuNUaPBr3+hF4nB+kWbMVjym5B93NfnCUHcuVs9Fmpw+2mRm3+eh21 jAfhQkZN67DbIHErWbKO8vDfb9uBV8JO3H4LU0zEznyJHTX7Eai1msVGnLYne/e3DeQc zGWclfSThC2yCHJhiaGQqSpQAvbf5TmqMpSpVn5vXdkPR0GFcZKWUrYmlxDFuKpSCBnh 0+tA== X-Gm-Message-State: AJIora/tGHp0JPmorn7CdL0Nh8d/K1b2LkPB50p1pqQAXdHjy7OdC4bg sNdd9qZpzW6vCmnx0ANCsbWSRQ== X-Google-Smtp-Source: AGRyM1t76aeDWU3Npw3pikScp+6JZnN5RmrXhyErEib0ezH30zTOHpxmhgthGS8X1vCNZR/EaxGKpg== X-Received: by 2002:a05:6402:50ce:b0:435:9249:dfe9 with SMTP id h14-20020a05640250ce00b004359249dfe9mr4957862edb.310.1656516600532; Wed, 29 Jun 2022 08:30:00 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-58-216.cust.vodafonedsl.it. [188.217.58.216]) by smtp.gmail.com with ESMTPSA id h1-20020a1709063c0100b006feec47dae9sm7821853ejg.157.2022.06.29.08.29.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 08:30:00 -0700 (PDT) From: Tommaso Merciai To: tommaso.merciai@amarulasolutions.com Cc: linuxfancy@googlegroups.com, linux-amarula@amarulasolutions.com, quentin.schulz@theobroma-systems.com, Daniel Scally , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 6/6] media: ov5693: add ov5693_of_match, dts support Date: Wed, 29 Jun 2022 17:29:33 +0200 Message-Id: <20220629152933.422990-7-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220629152933.422990-1-tommaso.merciai@amarulasolutions.com> References: <20220629152933.422990-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add ov5693_of_match. Device tree support Signed-off-by: Tommaso Merciai --- Changes since v2: - Change patch order 7 -> 6 as suggested by Sakari - Add missing signed-off as suggested by Jacopo 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 2359b00fc428..ac2ea3238db9 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,