Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11274056ybi; Thu, 25 Jul 2019 13:10:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwInrWRVFpTYxIh/laJ7hGRbPX4mB/qUlXMK3gIXT8Ilkxs4L0629AAgCA0iRW6OfM5ro34 X-Received: by 2002:a63:a346:: with SMTP id v6mr41764597pgn.57.1564085431484; Thu, 25 Jul 2019 13:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564085431; cv=none; d=google.com; s=arc-20160816; b=VVsdoHp5YwMmt2msGk6yPDRbrIDOVogu97bGstlGUDyyvHRJzC0cSQkhayNPbiAF5E enK6GKkK9cD6dj0GC9R3kMjUn9Uhx+VZSFCEwdkNIHuMJa7uZohd2Eqq2/5+RjZOq88T omHkaWQzhBF/oXnqU0E9Ox6SB6V+rbM/040xZIXdC7j9BScs7AW6Y9LUMnQKmGKnpx6b CbTrB+3X5fYCOA/x0Hg9mUFA2zqfLV3LB5qiXgHRS7zDVBMM/HK+PsTulc0gGvbvIQjf LUDiEVMttCWKB8SKm4Dw5vjadGNdhsKPSRq0O9R5IW8Djem6Qo7OqFDQyWdOH79kXO83 i59A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=gi1xORrbzPoL0P3xPYkOl5Y2rSsp/Jx6024caSGqLbc=; b=IMqPEefT6jRIXlJLX+kWU1AAS/S940vfmmDELJ3AyUQ8l4jVnyrxYB3Io3RgLywGWm qwDRWUbkCcgsUTvgzIBo3L97GuLYFnFHDTNthRsmSEXBO4Jwo+bHBIcQ1nvIg8JPaicm 94DY1+7ZAA6sCVNMsPP/sGg5FSzYPKZoY32+y3z6KFVPws/ivz0vKyIEX3yS71U0hq02 DHZxJc7AOXr/NrjlOiop49887rYE2KjtyI/fvjH+fWynyCAO44rwrE0HvRiYTf9qTTRM WGLfSaJFDiBlzAhEKJF5iqxR3CXc/HZP4FYJ6vJvOx84KM23fC2KLxL0767ujE9t9+/q 1vZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y2rRvE5M; 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 h16si17588361plr.94.2019.07.25.13.10.16; Thu, 25 Jul 2019 13:10:31 -0700 (PDT) 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=Y2rRvE5M; 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 S1726692AbfGYUIc (ORCPT + 99 others); Thu, 25 Jul 2019 16:08:32 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:36649 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726352AbfGYUIb (ORCPT ); Thu, 25 Jul 2019 16:08:31 -0400 Received: by mail-qk1-f196.google.com with SMTP id g18so37398003qkl.3; Thu, 25 Jul 2019 13:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gi1xORrbzPoL0P3xPYkOl5Y2rSsp/Jx6024caSGqLbc=; b=Y2rRvE5ML/E8Tlq84Z1huVevhH9eQd35xkxh5VpYtwFN1GRP10UJPdKNoIWHgG9NTs pnWqXYULMSpdnsLqPFb9J6/8Ufr/h73V4lMr+Bb+w0U8PshoeJP/rGMqaV6HMaT7yQaZ 734g1NfpQYXL/Ae0Np/+pkbLC5bedj8kyO5Tb4hYVnqpT2Z6U/mnxqz89Ab+U0cQFQN1 P073EZf8ZvsieTXyA/Y6f4iEGGXZXwtnODuCsSb+R3a+RGNttupIjqfSstgcrCoQMGRX Ye9q5Z5+DXVcJqT5BwMszpFWzMUek1dCicCYyssryRAX39fcZDfi2ODUh9bOcNTu9WlS sLaQ== 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:mime-version :content-transfer-encoding; bh=gi1xORrbzPoL0P3xPYkOl5Y2rSsp/Jx6024caSGqLbc=; b=eIzSCZvu042a5JUH/rOZITV+KkJW3PsSDrdu9Z71ezzmSdXTJgZLHU8F3CUu20YXNV 4sDmQpEl+TN7KBvDcxVtA5BLjdBJf5FlU1w/bP7NZcqdy1RJZgg1wsl6pziTGetzx9Es GQxLVnq0F4cvb7/jXpmt+JPxfe2RcPVGS2LgdH6UfA6St1jVWYEuSv+y3CglAKoZpLaH K6M2LKPfkn7hqsn5m6emFVl9Lh8Ijvt2np0gmV/wiX3EOxqBS9cYU6RXF/h1Hgt5hDr1 IscB/freTQli/1AtfOVhpICv/7RhWimWTTBmXubCUVJG+fHOKLKtGAo+N6bSlhrAWNYZ WJKw== X-Gm-Message-State: APjAAAUwLTNkDIuIVrJki00YYr4NwLYLkpvDl8Fm8M4DhXBbGFQTWzkf c3nWXOpzosH0A+yZ+kPpLnU= X-Received: by 2002:ae9:ed4b:: with SMTP id c72mr55914956qkg.404.1564085310644; Thu, 25 Jul 2019 13:08:30 -0700 (PDT) Received: from karz-laptop.vlan96.localdomain ([200.17.97.58]) by smtp.gmail.com with ESMTPSA id a67sm23870493qkg.131.2019.07.25.13.08.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 25 Jul 2019 13:08:30 -0700 (PDT) From: Kartik Kulkarni To: Lars-Peter Clausen , Michael Hennerich , Stefan Popa , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman Cc: linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com, Kartik Kulkarni , Matheus Tavares Subject: [PATCH] staging:iio:adc:ad7280a: add of_match_table entry Date: Fri, 26 Jul 2019 01:38:17 +0530 Message-Id: <20190725200817.31277-1-kartik.koolks@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the of_device_id struct and the respective of_match_device entry to complete device tree support. Signed-off-by: Kartik Kulkarni Reviewed-by: Matheus Tavares --- drivers/staging/iio/adc/ad7280a.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c index 19a5f244dcae..ded0ba093a28 100644 --- a/drivers/staging/iio/adc/ad7280a.c +++ b/drivers/staging/iio/adc/ad7280a.c @@ -1027,9 +1027,16 @@ static const struct spi_device_id ad7280_id[] = { }; MODULE_DEVICE_TABLE(spi, ad7280_id); +static const struct of_device_id ad7280_of_match[] = { + { .compatible = "adi,ad7280a", }, + { } +}; +MODULE_DEVICE_TABLE(of, ad7280_of_match); + static struct spi_driver ad7280_driver = { .driver = { - .name = "ad7280", + .name = "ad7280a", + .of_match_table = ad7280_of_match, }, .probe = ad7280_probe, .id_table = ad7280_id, -- 2.20.1