Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1243176imu; Sat, 17 Nov 2018 20:27:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/WmZSKb0ovrDjRkvG8TzRIi3VMpuIOsudbWnyPiE5M8HFFLCIFEbCM6PCUkGeYFSgZ+EYbK X-Received: by 2002:a17:902:7686:: with SMTP id m6mr3118280pll.179.1542515226346; Sat, 17 Nov 2018 20:27:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542515226; cv=none; d=google.com; s=arc-20160816; b=J+h5UVcniHXTFk9F2IqBPQpkHFE94YulzGJ0Kmtj2BaRtZJ9sM+Tr8iMLN7DTSBhhM azdW7M1I+/LQCpmH8Y6QTM4YYDn5l2LLKQmOV3WmwhXxYP3VkHeKnQ5NUQfSJxeqnt4O 1fjSsCrGsJmuGiLzKVxfvc6liujbGTinLEdKaRkkZv1TKsjsSd8DUhspT9/gyVdcFIjw rPjlsMe+iGbfeodozJZbnhxH7vqtPyqRbscHx/2jyMt1v4PIoP06ly1M6MMyRzYZUfkF 3y+459mZxuJ58Eup+gyoW2l1bU7bOW57TiIsCy4L16OiE/uTcOJ+jOjMiVC/6oDCd8VB qvnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=92hEpUjcQ+pvw5q1KbpaiTWMOvxRsoylduY2Id7AaiU=; b=ef70HGnICgKmOyOF/C9PU4oJVBTW1GQ7wT/owltpzx34ltYgj+VNoPaESV7GC5ueS0 xwtwAritSFjUjbjc9/221Nmo17I7OuispwBdXHGarCxXy5dPTOFpTLhr/ZLRGhvjm166 CM317NRqFbY/W5IteAodiHn7KA5iO9kOSQSrPr/y6cUmK8KcK5RD9hmFIalZm0HoN0ct RCMvei+YLEoisTnb/sdUHZsVJxrlbm62PeqN6mlfCRmO7K3QQZkfqQGnkDQ2HDX0M53/ 5SjmIbgTiu68kkQOr963V7rSEj2vhyCHAokp13oS5hJnxzlJKYv9BFXYsnZoU1fbJCcv 7k0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=x5qK3ea1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=usp.br Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2-v6si32011483pgi.329.2018.11.17.20.26.51; Sat, 17 Nov 2018 20:27:06 -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=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=x5qK3ea1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=usp.br Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726853AbeKROpR (ORCPT + 99 others); Sun, 18 Nov 2018 09:45:17 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:34021 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbeKROpQ (ORCPT ); Sun, 18 Nov 2018 09:45:16 -0500 Received: by mail-qk1-f193.google.com with SMTP id a132so43891843qkg.1 for ; Sat, 17 Nov 2018 20:26:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp-br.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=92hEpUjcQ+pvw5q1KbpaiTWMOvxRsoylduY2Id7AaiU=; b=x5qK3ea1E5jWMW7V6NwP1yGgrKzudigz0P1OEY9Hf0MF0XxIJ7ZS/daZlYTGnsy3Mn EjBzKnUhj8GaGjv+P9kEGs5O/jM20n0VFCxgiar304c2IljdgmSw/EW1o6RaoLB3vB3x GcNPIWPaqnEVTj0ROb8BvxCR2SY1C4d6UlrTI3Gpuv6QTjMiI89+ikvrEtpV2U2m3Jis R88iZPYNtQ0fTPmA+QHs2trFruZEW5Orv2J05Z9wL+QSjPcY2sBb4gOTKoQ6OVqy+2wd WxP/mh3qKFJVMXdkCijz/SbMcyuI55l+Zp6ETDV3GPyrvWWb6m9zASakp6qJMtde25qu hsMQ== 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; bh=92hEpUjcQ+pvw5q1KbpaiTWMOvxRsoylduY2Id7AaiU=; b=L6XBDxr4nTy2vBS62qRFrvXJ2+74F78aKQ7TpS4pjL9NWHsyJLW7XfahV70S3phmOS E809V2wBLcVmfmUi/VMFfhKwPfEIVyCUxNpyDVTgXCUzKipG+DkzWRfvzPyTMWW4+drU X10pUmEtJDndy4lffW7Gf/XZ/v9VqYTwK+KOONYcqTs9oyimu3wvXAMyJ6PozIL2Rpkm MGJK3S4aPgKJOngxVQhUcj6v5Y6OpmklG1FB5zzPnLRDBMW9w5ZN1cASqjM333v0cLEb 5kZwQbejdPilSaYhEheeSMmh0TsPuA5wysruf7mI24glASj+2iMlV3zhWSQ2pukn431E fF+g== X-Gm-Message-State: AGRZ1gL75BdTIO1Z2dpXtX5JezfjCQ28I1aK0ISnVCHr3QKsf/8e5s0k BKiFKC17pmevO1v8j+mYSsw9IQ== X-Received: by 2002:a37:d947:: with SMTP id u68mr15782064qki.296.1542515175340; Sat, 17 Nov 2018 20:26:15 -0800 (PST) Received: from mango.spo.virtua.com.br ([2804:14c:81:942d::1]) by smtp.gmail.com with ESMTPSA id b6sm16112350qtq.29.2018.11.17.20.26.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Nov 2018 20:26:14 -0800 (PST) From: Matheus Tavares To: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , Rob Herring , Mark Rutland Cc: linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandru Ardelean , kernel-usp@googlegroups.com, victorcolombo@gmail.com Subject: [PATCH v2 1/7] staging:iio:ad2s90: Add device tree support Date: Sun, 18 Nov 2018 02:25:34 -0200 Message-Id: <20181118042540.12697-2-matheus.bernardino@usp.br> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181118042540.12697-1-matheus.bernardino@usp.br> References: <20181118042540.12697-1-matheus.bernardino@usp.br> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds device tree support to ad2s90 with standard device tree id table. Signed-off-by: Matheus Tavares --- Changes in v2: - none drivers/staging/iio/resolver/ad2s90.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/staging/iio/resolver/ad2s90.c b/drivers/staging/iio/resolver/ad2s90.c index 3e257ac46f7a..6ffbac66b837 100644 --- a/drivers/staging/iio/resolver/ad2s90.c +++ b/drivers/staging/iio/resolver/ad2s90.c @@ -107,6 +107,12 @@ static int ad2s90_probe(struct spi_device *spi) return devm_iio_device_register(indio_dev->dev.parent, indio_dev); } +static const struct of_device_id ad2s90_of_match[] = { + { .compatible = "adi,ad2s90", }, + {} +}; +MODULE_DEVICE_TABLE(of, ad2s90_of_match); + static const struct spi_device_id ad2s90_id[] = { { "ad2s90" }, {} @@ -116,6 +122,7 @@ MODULE_DEVICE_TABLE(spi, ad2s90_id); static struct spi_driver ad2s90_driver = { .driver = { .name = "ad2s90", + .of_match_table = of_match_ptr(ad2s90_of_match), }, .probe = ad2s90_probe, .id_table = ad2s90_id, -- 2.18.0