From patchwork Sat May 18 21:00:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Oshiro X-Patchwork-Id: 10949087 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 38B07912 for ; Sat, 18 May 2019 21:01:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2514728524 for ; Sat, 18 May 2019 21:01:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1448F28571; Sat, 18 May 2019 21:01:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86C3928524 for ; Sat, 18 May 2019 21:01:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729541AbfERVBC (ORCPT ); Sat, 18 May 2019 17:01:02 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:39026 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728387AbfERVBC (ORCPT ); Sat, 18 May 2019 17:01:02 -0400 Received: by mail-qk1-f196.google.com with SMTP id z128so6601453qkb.6; Sat, 18 May 2019 14:01:02 -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=vsAT5qbsaotm0oBGUetquV7WtLzGgBbpbWMnm1fUtaw=; b=FNpAL29qZqJo1UbDaDy/m2Lx+72Jdb/OcpovJocPvNdp8WBksBQuzTgTykux8OFEry u7I0119akjhgDUCZaMemtZzzAY+Nce0SIu4gcu8otcvtmQP5OUc3K9AJzRIRCCQ/5QT2 Usk+/Q1Y3Jqf8QpXqcMawAnSv3sFqsaFNepu7mzfwoqWmbkfFerAsRz67rnleRgN68pP /OMaOgbmt4Un+ZoapzcSr1CxD9vQqKdgiMG3mcXs0svJKhG+AqIhtnQsSfhWmQOMg9rd vFBaje0SFFonG9/h748wKquhNT6wFCc/Z9B8BGZtvU0LDKTCubGCI/mQ3kjvtwOtLkwS uL1w== 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=vsAT5qbsaotm0oBGUetquV7WtLzGgBbpbWMnm1fUtaw=; b=HHyK1Bgxfplge6t7PwZfx87cyUcoKY5lMABCc8YyxarwLwoLV+FKFTpdE1d0OUfulT UEUREUBQ8SHxn1nuwrlY8ls7kkea1/YoS/uWSw3eZ8eapaKBZgwx3nY4JmyV17m8YCGh o99asHA96zw8nfEmrunYFjqao1AXxyvF5U6bpLs+DoLSRlgcKn6plZRyzfrebejakyn8 Ga1vr0VhKaGmHXXwcTHwVpzf+KKo22zyy/xH+ibm2V/oA1HMgnrJVTXEJY3A6k7bndlX CsnC1AOxZlwIDkYUwTJVjzpCut5AoLWmoU86Kyvmu2Hl/1JCSFVt5i/LK76ZJgWN4sjL dWLg== X-Gm-Message-State: APjAAAWFLGhuh3osCnvJC8VviqFjhhnma4CctjefBxopb8rLJtCMmkrv +lLUA1BHrtYnjTZJ10HSisA= X-Google-Smtp-Source: APXvYqzxWN1QgdaQ3liwyrherSRNq5sJ61pYI5Zg395d80UXIdRoppdxLpHirXw2L9D4LwA2p75eRA== X-Received: by 2002:a37:6043:: with SMTP id u64mr39779236qkb.9.1558213261871; Sat, 18 May 2019 14:01:01 -0700 (PDT) Received: from wall-e.ime.usp.br ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id q5sm7730906qtj.3.2019.05.18.14.00.58 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 18 May 2019 14:01:01 -0700 (PDT) From: Lucas Oshiro 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, Rodrigo Ribeiro Subject: [PATCH] staging: iio: adis16240: add device to module device table Date: Sat, 18 May 2019 18:00:08 -0300 Message-Id: <20190518210008.20147-1-lucasseikioshiro@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a of_device_id struct and MODULE_DEVICE_TABLE call. Signed-off-by: Lucas Oshiro Signed-off-by: Rodrigo Ribeiro Co-developed-by: Rodrigo Ribeiro --- drivers/staging/iio/accel/adis16240.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/iio/accel/adis16240.c b/drivers/staging/iio/accel/adis16240.c index b80e0d248b0f..8c6d23604eca 100644 --- a/drivers/staging/iio/accel/adis16240.c +++ b/drivers/staging/iio/accel/adis16240.c @@ -435,6 +435,12 @@ static int adis16240_remove(struct spi_device *spi) return 0; } +static const struct of_device_id adis16240_of_match[] = { + { .compatible = "adi,adis16240" }, + { }, +}; +MODULE_DEVICE_TABLE(of, adis16240_of_match); + static struct spi_driver adis16240_driver = { .driver = { .name = "adis16240",