Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1286271imu; Fri, 9 Nov 2018 14:01:57 -0800 (PST) X-Google-Smtp-Source: AJdET5cnYw0QKrsVkGOyBdZTIY39BSwuMYyALhDyu6zVt9HZs8BG2Mw++gGlAtQIOSinJ7hYFAPP X-Received: by 2002:aa7:83c2:: with SMTP id j2-v6mr10665111pfn.91.1541800917713; Fri, 09 Nov 2018 14:01:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541800917; cv=none; d=google.com; s=arc-20160816; b=uJNBYpeGr8tiiMY60FauyGpWF5FGZVLAWFxWrmAGaGfj1Qg034dCpJEUnulZYanIZc fKPMscV5zcmduN4CSnuvQKHDrrqzNL8ygUqiST3Cfe0EshVdrnPe0v5lC3tyyQA0wg78 lcY59DFYA+wNgXervqaEj3xKf6oK2eA8eEpu16BHAZwK9pIyLU6Bb9Hf2emLTiGB33BL 0ghU2kkTvM5peU0BwmUFfs3yOhCJDkXCSPX+QEtn/DWAfqLUZngw7IrVycISM9G0tprg 65DPdwuq5C3Npa7PwvDwpp5dEykh7CzTC5bZ40o650ut54OE9LLilzFBnP1nTNWRvBRT aE7A== 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=p/X2wTrJ6gYWDUzneo6iXqbAQE6eHh9pqWoFFxc0EC0=; b=Ydswulau8NeNnYpzoBlJbbBUU+7DRpeDECW1Do07eG5iO5ADn7/a+46Qwa9cqhzkO3 TPGHxZoUdUJW0bFnIwuKKixlfdvmDnXVHG77tQngLnc87l37y7wY+BfMTJJbHI50WX81 O4leJzP5LskIsbXJvwchRzTE08+VytXtXPLjEMtoTrkhls2W4rut2ZFzw+Dqhl91L4Ks ovBAxEH4Gt5GWHymRw+j/s9AgBbCDNXlNBC/DRd1N2xf37Yp54hvVuESgY2MuunyaTxR fRPFdQbnYa7ZIQW+8NV9/iRR5SmLQNqfSiS/JO8CVfj9quV1gQd6aFXZJSDeVEq4OYWD qWZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=wmoUDSzo; 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 w22-v6si7562238pgk.214.2018.11.09.14.01.42; Fri, 09 Nov 2018 14:01:57 -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=wmoUDSzo; 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 S1728473AbeKJHnr (ORCPT + 99 others); Sat, 10 Nov 2018 02:43:47 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:46616 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728396AbeKJHnr (ORCPT ); Sat, 10 Nov 2018 02:43:47 -0500 Received: by mail-qk1-f194.google.com with SMTP id q1so4345309qkf.13 for ; Fri, 09 Nov 2018 14:01:17 -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=p/X2wTrJ6gYWDUzneo6iXqbAQE6eHh9pqWoFFxc0EC0=; b=wmoUDSzotsDenF8P/rn6XCX+3Nvyw/DHS1nSNmLnZhKNDT//HdfFX+D2iNyL3j2qnw V1QSd7PegcnNJyRqQk45n9JXjsRm25AYoG8sbD1E8oBc80DqX584aVSWDVws+LfruM5o Yzy5WvQrHThJqlRM/+iGwx8zqmBlKTjWVCq4tZrDHRekGhQy+pGMaXXwbxI6hJl85AXT gjOcJbdpjd0Kxmi1nWfPOkgO0UycZv341ZaXNEI7zML370or5ZhdqBcmKbesspcK67h3 IVwEmyhnrOBsPHUQkyB4YALHYi+hcjjrcNMqHJAFlM35pvU0uKsvjoBO+STb2DDC9KS+ 8drQ== 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=p/X2wTrJ6gYWDUzneo6iXqbAQE6eHh9pqWoFFxc0EC0=; b=qDDSRhxHVdLdAXniKc4l9tANUXj1jRseCOLZoQ43E9h/AC4jbQPzXzTdSt1Y1+QHhW udxBT/nUwueKtExrO5gk5EUAojCaccY4Yy9MLW3qBoRKb+R1UJLzpYhsWHVyNCVt2vpK ljem4rAfrXS24Fz3m3ghgYSisX2srl4f2HmTHI2ZRO+Z4LNWy5NcRELDmeAR8VqPMOVU I2pgCahm1cWXloRxi0eUD0MpIP4TpBNgvPjDz7wWmFxV0jv0dgQuoVWT39VfB+knjFNu mxn+IEbYnq+10VqBI9C4bCG6YVLBX+40U2+Tz9mZo4slfuH11mxF4I/hKbl0BqMhh1dT 8/Fg== X-Gm-Message-State: AGRZ1gIPHT0nkMTF+KSyYIyVh74FVMSchEV9JchqY3UTyI22kHoTZzdz CPiu3XqpwKkSU7s4L+LIFZa0uw== X-Received: by 2002:a0c:89e9:: with SMTP id 38mr10609001qvs.31.1541800876402; Fri, 09 Nov 2018 14:01:16 -0800 (PST) Received: from mango.spo.virtua.com.br ([2804:14c:81:942d::1]) by smtp.gmail.com with ESMTPSA id k6sm6082723qtk.41.2018.11.09.14.01.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Nov 2018 14:01:15 -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 1/6] staging:iio:ad2s90: Add device tree support Date: Fri, 9 Nov 2018 20:00:39 -0200 Message-Id: <20181109220044.24843-2-matheus.bernardino@usp.br> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181109220044.24843-1-matheus.bernardino@usp.br> References: <20181109220044.24843-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 --- 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..ff32ca76ca00 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