From patchwork Thu Jun 30 07:45:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 12901311 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 8A60BCCA481 for ; Thu, 30 Jun 2022 07:45:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233207AbiF3Hpn (ORCPT ); Thu, 30 Jun 2022 03:45:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233203AbiF3Hpl (ORCPT ); Thu, 30 Jun 2022 03:45:41 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CCD53A71C for ; Thu, 30 Jun 2022 00:45:40 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id mf9so37390644ejb.0 for ; Thu, 30 Jun 2022 00:45:40 -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=VBaQhh8M0SGoulgjZzCVQ2UkjFdtWV7Yt+dzNHvww78=; b=JCcxg9P/Qzd0goJ7WT9kRMcUwBSR0+QniS+dbJ8ePAquHKkURaZCDhsoeXGDw4Th+p pYxS34BY+bL9BH+CUO5St6BRL9iD8ddkcYVr8T1pz1N1stKRy6zMLAScsfLlYZsKL67h dKoJ5XuTadatvpcT2QMB/DCK7BbYwY6G1E3Fc= 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=VBaQhh8M0SGoulgjZzCVQ2UkjFdtWV7Yt+dzNHvww78=; b=7J7+QJoMcF5WkxGXS53/PqDkcls5od822PBO+q1W8I3oVHbQyQXuTz69mLQ4ajoqE4 uK4CRBc9GywDD2PQ01xsUXI24Zp4zIrYYtYqarTUmewCRkhoz2irKZ0PsKH4q58iz8XS f7AxTBVG79El4rV01O7va6CXDHhhMC0ZFP77Tmtd69d8I/Uvum1sdUJ7zY7A3pdPNsvp BtvGCoiAYwPY6ZpRpKPmnYDFoKjgPocjzMqW9o50QCXMa6r+gVznHBYMJ7nBXe3hBZPI w3BowhWUTkGCBOmrcBEGN0sZEWHdWvJWS/XP4qZuVguIgSAtkHvWH0iSFYuGRIDsISUw 5XMg== X-Gm-Message-State: AJIora/ihChD3wsnSdWo2MitIhiQzh+42jsqIASHk++We7JPwfHYcGmQ 2FkfjmxiQLVViqZMt1I0GbZMwA== X-Google-Smtp-Source: AGRyM1sDgEvklapqUFjo5inrAdF/mgAhHliKgdgUttcbfqZDFoCqIsitSjQSSgoZ1BPm6ZU7nGW4gw== X-Received: by 2002:a17:907:7fa9:b0:711:d214:36cd with SMTP id qk41-20020a1709077fa900b00711d21436cdmr7285524ejc.600.1656575138524; Thu, 30 Jun 2022 00:45:38 -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 b13-20020aa7c90d000000b0043564320274sm12594731edt.19.2022.06.30.00.45.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jun 2022 00:45:38 -0700 (PDT) From: Tommaso Merciai To: tommaso.merciai@amarulasolutions.com Cc: linuxfancy@googlegroups.com, linux-amarula@amarulasolutions.com, quentin.schulz@theobroma-systems.com, Jacopo Mondi , Sakari Ailus , Daniel Scally , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 6/6] media: ov5693: add ov5693_of_match, dts support Date: Thu, 30 Jun 2022 09:45:25 +0200 Message-Id: <20220630074525.481790-7-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220630074525.481790-1-tommaso.merciai@amarulasolutions.com> References: <20220630074525.481790-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 Reviewed-by: Jacopo Mondi Reviewed-by: Sakari Ailus Reviewed-by: Daniel Scally --- Changes since v2: - Change patch order 7 -> 6 as suggested by Sakari - Add missing signed-off as suggested by Jacopo Changes since v3: - Add reviewed-by tags, suggested by Jacopo, Krzysztof 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 3c805a5a5181..5930207193c7 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,