Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9627303imu; Wed, 5 Dec 2018 07:49:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/UsfelvtUmzTlPiwch/KoQOdyVqZ1YS6TRvhB+tH/EPE0Ah+zxU/ImCNf4W/wnalRcryZZT X-Received: by 2002:a63:fe0a:: with SMTP id p10mr20635343pgh.265.1544024998577; Wed, 05 Dec 2018 07:49:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544024998; cv=none; d=google.com; s=arc-20160816; b=lBqEz58ZLByaFrpheYmLKBlwBPxoDJOLtVFo2LvGgz4gCe0m4c6yyFJ73P8Pq7aZkx 5zDBsHU0AMyvVzmr3AfqeKb1hKdLayuE8SXiFgqHY9USFubEC+NsGMB6Uy2rWMpym2J+ G0TcokHA1A3vMEZutytFCNmUdUj8hiWdFhux/vfaR67sy1cSJAqje5dlRgMxj9Ec0FXR 6RTAOcBtC+lX4FCQG/GB9qdyFipd2Cxxn1RCa6BJ8E8admua9UlDeWzscdcjdD9j+q77 2s3QZ7xkCeaiYSO71xULkxV6UUcVbIrDIEr71TlxQzzr97uOk9ZjTbm+YH0QlVjzYJNC LWVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jlxCKYT+/bGGxNDhXvCFjFcnBbho+Yzq9ypg9mJV4aQ=; b=1FN+hOYfupuFL33ZxxtMVTrhQXR/w0FM7x+WI+S9RJ+Qf9pxQN43aKgmD7PgplGRX1 gr6OiINQSHdTeDrqDZhSbOOob3oZ+P+6vdrj2gdHKK5kBWsdY9O77n3Qs3KyP1lHXOdJ 3LwKOWWlgPPytT6LY3sw82EConoRvydOw7FFFezfg7FqT/75ayCx287Wbo5rxirxHR1Z Fhei5f5iBHPDKON9/sQErO4UJpX5zL+yooM8DgIAqB3VSw11C5Y3kTPUNTDemNh467cQ sTJk3lVF45VQqhTlQ6wvlgTfZc5C98D57MdlFX2YtOGQ5nOshBB4Zuf1WuHClGwlnogZ z25g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qtkSgPIi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j21si19183585pll.150.2018.12.05.07.49.43; Wed, 05 Dec 2018 07:49:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qtkSgPIi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728115AbeLEPs4 (ORCPT + 99 others); Wed, 5 Dec 2018 10:48:56 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:42723 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728051AbeLEPsy (ORCPT ); Wed, 5 Dec 2018 10:48:54 -0500 Received: by mail-lf1-f67.google.com with SMTP id l10so15058446lfh.9; Wed, 05 Dec 2018 07:48:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jlxCKYT+/bGGxNDhXvCFjFcnBbho+Yzq9ypg9mJV4aQ=; b=qtkSgPIieYYm1MekCJi1sNuirVcqFnjubsHcGF4nVLspOqBYPbk+N+WTXAZZpSCLMq rUBIpdLs3bIQcNq1yOSwpuuoRuT8D80a0MeQNQgcid8del7OvoA+77xgSgr/p0ErfQpL 1lc8qQ7/OS8Qh1z8FBMFPe9jUlqpGn2gVI3iN9B65KEcIxNBULwc0ZpJklg1VL53lmR3 Wv5Hw49ipHqh7JcyP2LXCt30FdpcuKgscK0APVTsmgp6ad1+2C4/tTa87rATvGOzepH8 8SaRQMUCHIY4Sumx0GMOcDD9hbLnZ+l3xHbZDBbguyiuTBRZZJO8NljqO1kLkICn6mp0 QwpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jlxCKYT+/bGGxNDhXvCFjFcnBbho+Yzq9ypg9mJV4aQ=; b=IUknAKUJIcdphPlWf0as9TErqBh50nQXhFI/AJLc1kNFc+MQUPOWC+uvMF9/rsZkuG F6VsCNbkwGpKzxEdStQLTWTlH5Eq1pgaBQn+ARwfZ1ZbG4cEVWpc6Ho8DKS2pWFyz6RD i/vzSfgVgDLT4ofQQX2EbnkLON7dfhdWSAqC1wBYdbKiQZDgWGWaQB4bwo7usvBOar3I f6avZxx2VZxNWWGPBFlQ8Ct4fCLZx58xaeeOWQyc9A+a8yqfz8H4cjQX8IlVbL10JIGV p4ntV9gHUCj04pSyYHCOyGzOs+YWpQZiSFM0xxtyeLGZl9FKqDZa1Z8fb41KMJk/UzeP 3ciw== X-Gm-Message-State: AA+aEWYLvLkZfHtL08BtGiUmLQnxKOcQHozdGtM6sY46xuPMQkjPRVsW z4mDgAwWYQ14rbFXiywGM97bpZseZz9RAA== X-Received: by 2002:a19:a7c1:: with SMTP id q184mr14000716lfe.4.1544024931361; Wed, 05 Dec 2018 07:48:51 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:41e8:260c:942a:b736]) by smtp.googlemail.com with ESMTPSA id t18sm3592517lft.93.2018.12.05.07.48.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 07:48:50 -0800 (PST) From: =?UTF-8?q?Pawe=C5=82=20Chmiel?= To: mchehab@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: hverkuil@xs4all.nl, fischerdouglasc@gmail.com, keescook@chromium.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, =?UTF-8?q?Pawe=C5=82=20Chmiel?= Subject: [PATCH 1/5] si470x-i2c: Add device tree support Date: Wed, 5 Dec 2018 16:47:46 +0100 Message-Id: <20181205154750.17996-2-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181205154750.17996-1-pawel.mikolaj.chmiel@gmail.com> References: <20181205154750.17996-1-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit enables device tree support adding simple of_match table. Signed-off-by: Paweł Chmiel --- drivers/media/radio/si470x/radio-si470x-i2c.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/media/radio/si470x/radio-si470x-i2c.c b/drivers/media/radio/si470x/radio-si470x-i2c.c index 9751ea1d80be..250828ddb5fa 100644 --- a/drivers/media/radio/si470x/radio-si470x-i2c.c +++ b/drivers/media/radio/si470x/radio-si470x-i2c.c @@ -527,6 +527,13 @@ static int si470x_i2c_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(si470x_i2c_pm, si470x_i2c_suspend, si470x_i2c_resume); #endif +#if IS_ENABLED(CONFIG_OF) +static const struct of_device_id si470x_of_match[] = { + { .compatible = "silabs,si470x" }, + { }, +}; +MODULE_DEVICE_TABLE(of, si470x_of_match); +#endif /* * si470x_i2c_driver - i2c driver interface @@ -534,6 +541,7 @@ static SIMPLE_DEV_PM_OPS(si470x_i2c_pm, si470x_i2c_suspend, si470x_i2c_resume); static struct i2c_driver si470x_i2c_driver = { .driver = { .name = "si470x", + .of_match_table = of_match_ptr(si470x_of_match), #ifdef CONFIG_PM_SLEEP .pm = &si470x_i2c_pm, #endif -- 2.17.1