Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3243278imu; Sat, 24 Nov 2018 00:55:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/UBBFdvZsfy+tQ1ZGACTr2s1c6BUPyp4XEXgKVFiho0m9B6xH7ZX2HbPDmq3+TNrGIfuO1t X-Received: by 2002:a17:902:d01:: with SMTP id 1mr19459995plu.127.1543049750587; Sat, 24 Nov 2018 00:55:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543049750; cv=none; d=google.com; s=arc-20160816; b=yil2RpY/fUvQ5M7lbgIh7fXqtgfBIkLwbK8vp60a9yPlNgIms5ryBPI6Q6bAMiWnSC K/wy/YXj5zjraagTWIWPIJhHTEngEc6D3VI4Q6f/zkgVzvdgPvCSnAMSN32nbzMP08BM 7X+u8hCsMwYohrQA6OvC5zM3uubpwtjqf00L85r270nmm9eW3b7qNdoOgkXuvkjwNHQS oTgEmEKrv83hI3LkYtUb5LH8dV/koJH0FUHcs765HidjotFBShnpQAiGD4ODQEG+/p6J 81j2LsKR/igmiOKHaSnJ0jeGPSvpdR5QpmUy2VvAMXMjj/k82obbiafiBBEO4h/Y8bfM 8OPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=cXw5hDZ1MF23Ces5fW3GTGxZseSaFQ1WGGsY/s3p/es=; b=rTakcX3GWznnGL+vrwgcIBjxgTs1vfFoT+r55MQM0ATe5jNdIPtAQzNTRMZZ/cx5rr XmnElgxg/g93F6c/cEZH9dwv6KCtl2t0MUDIctMu/t9Y/+W3eZa8fOCWS9TYuK+wS991 csBN3TDxhi0WNGKf+6rUpleVbhr9aSWuTY46YF6x8nc5usAn40HoTrtJ8MIJQ23MsPZd xJVPZLFO/s8lH10itpF4vTSrI0QLyrYKPf9iNtRW1+UXtlL2Px6HzUb13eBKw6xe5eCy fS7eVcGyI7//BQNIERjEd/svnG2BWQg9iSeOivL8V32qo8qmKsYVCQf8GPTOD1W9D1uv 0ODQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IXuBjAtF; 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 f184-v6si44434674pfc.224.2018.11.24.00.55.36; Sat, 24 Nov 2018 00:55:50 -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=IXuBjAtF; 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 S1728038AbeKXKiV (ORCPT + 99 others); Sat, 24 Nov 2018 05:38:21 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:38660 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727607AbeKXKiV (ORCPT ); Sat, 24 Nov 2018 05:38:21 -0500 Received: by mail-qt1-f194.google.com with SMTP id p17so11999850qtl.5; Fri, 23 Nov 2018 15:52:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=cXw5hDZ1MF23Ces5fW3GTGxZseSaFQ1WGGsY/s3p/es=; b=IXuBjAtFNjgP579f3hWbbYuyC0zXGNSndQev7/ioug2cZZ0v4M+UjbiZ6/Iot/aQ6P Bs7Mb8ZvMbvoJfdphedeLGG7PGhDY5dE1DhxdgwBK6n2uj2yz0MNMixxtpUPpzm+nyMB hfA4qGp5dwJWGCg288j5VUUHMhsWmVISEYBCwT8dHCbfEqilh3B2pikfOgE1i+AU50UL 157ErHM9wLMMWfgJHXldn87ngpy1vnRkpslCkghdNq+rYOAQaE8fQBcp8ouoc+CKkr9u UApnf1t3PJswz/Y5T/ST1aem//c4FFAKAOdR4HrU2wHVjMDVeaCvyPeanRxpTo86Zc7f pYTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=cXw5hDZ1MF23Ces5fW3GTGxZseSaFQ1WGGsY/s3p/es=; b=V7Pn+H4vsjPaFzpVceukcZ+gqlWLgZlNNF6jgqcPDem9AN9xroKcoUcPMytAyQ0VVT xdiomCTDYBXkUMUMEe5SU2d8xWwZARs6qdNHSuaBVn8dMDfVBo/ofMinSoSYz2LvQxkk 9nzUZ0DLrKriqTxkryTcjKPlb8HOAe8z+467FZ0xAuCv8l4nK0z62EcTxlugrHGz9Ias FxjyP0xOVxa3Y8GMEnLaN1wb9SsXx2L3DtUu4SYhJSaB/diucq6i+A2lVeqZkdmzJswA 2WOy/h1lSlOk4tebej65m2YtUJ/KMPyc1qsXKrIrngEMqZf4QZ9WXTbea3tf6zz4gsi6 AExA== X-Gm-Message-State: AGRZ1gJXWSUM94nnRkqNUPF/fcq3Nm6beethy0zZqlgRlQWl/ZxG1csM 0ZX6J1SiRNQ7UNzf9oPNqC8= X-Received: by 2002:ac8:326a:: with SMTP id y39mr16891977qta.175.1543017124414; Fri, 23 Nov 2018 15:52:04 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id q2sm13710831qkc.68.2018.11.23.15.52.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Nov 2018 15:52:03 -0800 (PST) Date: Fri, 23 Nov 2018 21:51:59 -0200 From: Marcelo Schmitt To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org Cc: linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com Subject: [PATCH] staging: iio: ad5933: finalized device-tree support Message-ID: <20181123235159.hh43xnvvwsil4on2@smtp.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Added a of_device_id struct variable and subsequent call to MODULE_DEVICE_TABLE macro to complete device-tree support for this driver. Signed-off-by: Marcelo Schmitt --- drivers/staging/iio/impedance-analyzer/ad5933.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c index edb8b540bbf1..19e8b6d2865c 100644 --- a/drivers/staging/iio/impedance-analyzer/ad5933.c +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c @@ -771,9 +771,18 @@ static const struct i2c_device_id ad5933_id[] = { MODULE_DEVICE_TABLE(i2c, ad5933_id); +static const struct of_device_id ad5933_of_match[] = { + { .compatible = "analog-devices,ad5933" }, + { .compatible = "analog-devices,ad5934" }, + { }, +}; + +MODULE_DEVICE_TABLE(of, ad5933_of_match); + static struct i2c_driver ad5933_driver = { .driver = { .name = "ad5933", + .of_match_table = ad5933_of_match, }, .probe = ad5933_probe, .remove = ad5933_remove, -- 2.17.1