From patchwork Fri Apr 24 22:44:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishant Malpani X-Patchwork-Id: 11509551 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4186692C for ; Fri, 24 Apr 2020 22:44:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 29FBA2074F for ; Fri, 24 Apr 2020 22:44:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Pfm40cwQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726127AbgDXWow (ORCPT ); Fri, 24 Apr 2020 18:44:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbgDXWow (ORCPT ); Fri, 24 Apr 2020 18:44:52 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 085B2C09B049; Fri, 24 Apr 2020 15:44:52 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id d184so5519348pfd.4; Fri, 24 Apr 2020 15:44:52 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=mrRqQizheOvH/qCAN4bWl/aYIkfBy7BwNmyYYA+VSq0=; b=Pfm40cwQQa63jKELU9lOW7PJCoNTyl0E8w5sdQ1CuTjeOJZyD0RI5cnj9rg5Btr/4B 2edJFrJ3aBHXYYJtLEClj4T3psb+xI4VxTuVcCm+Oh9XQXv3NL4k4Tss+olVf2lDevBt ObUCV+ysDRjyrDbe3IpBFM1QUT7YqV8fAX4OYsWbthAr1WTeHfrLaa+atZiBCDxtDUc1 C1LGEaVvt4ITBl4XcHzvg/B6ZMetQookwqlU6qgv6behxD0u0BVhejOU0NqIFYYyQhSH lriOU1joqplLCvz8HtkE+1mZjyEJaiWt9G9G976q8qPuZNxoLAnmtmtCezzz1h43+wC1 /0YA== 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:mime-version:content-transfer-encoding; bh=mrRqQizheOvH/qCAN4bWl/aYIkfBy7BwNmyYYA+VSq0=; b=to9+GIvOguJj+xWbfj8RmguVFNNUMJYEAl/0NYxOaIU9Eh7VqYBimt2yPvjSVooEO6 +6MDeed2oLCWCcsWaKkVrDDGiLRaWIRXFBFbJLVITiHyIRpnWepA9HJ2Z1YV9+HOA0X+ NF9y25kAwH9fOHSoXa+CP2+KvK4+J+IL6QoQ2HmhGHMTqWlEz945qVbA2OLe/gU2T9ot XmK+EbouP05zKFJiBnp/0FNUbWgQVC3858Clv81slQ7t5XykmASkPXKjVHhqcEhGo7iJ l/N0QFlnB+0rX0FwMkFIh6Ipy0H/PVfk3h2430a8Ku3hSgDcW3U1fDs90F70Ytr+nmqy D03A== X-Gm-Message-State: AGi0PuZKk4T9NyXZhIVxl9poSQHe42mq37oO5YvKwY73ipNyzhS4IL98 dKc7ELKR3R6BxvNgrJgTTGU= X-Google-Smtp-Source: APiQypIi+aOGN27ANQd4v5eD2ENubFefk3H/q/LT7LN8MJKY3ahIMxAcbfaGpOcQyuLIp3E6PukwbQ== X-Received: by 2002:a63:e54a:: with SMTP id z10mr11306654pgj.346.1587768291654; Fri, 24 Apr 2020 15:44:51 -0700 (PDT) Received: from nish-HP-Pavilion ([2409:4072:610b:e3c6:8c8d:27b8:7b5b:c4d9]) by smtp.gmail.com with ESMTPSA id 82sm6441002pfv.214.2020.04.24.15.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2020 15:44:51 -0700 (PDT) From: Nishant Malpani To: linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, alexandru.Ardelean@analog.com, nish.malpani25@gmail.com Subject: [PATCH 1/3] iio: accel: dmard06: Use mod_devicetable.h and drop of_match_ptr macro Date: Sat, 25 Apr 2020 04:14:37 +0530 Message-Id: <20200424224439.5601-2-nish.malpani25@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200424224439.5601-1-nish.malpani25@gmail.com> References: <20200424224439.5601-1-nish.malpani25@gmail.com> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Enables ACPI DSDT to probe via PRP0001 and the compatible property. Signed-off-by: Nishant Malpani --- drivers/iio/accel/dmard06.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iio/accel/dmard06.c b/drivers/iio/accel/dmard06.c index 2bf210fa4ba6..ef89bded7390 100644 --- a/drivers/iio/accel/dmard06.c +++ b/drivers/iio/accel/dmard06.c @@ -6,6 +6,7 @@ */ #include +#include #include #include @@ -226,7 +227,7 @@ static struct i2c_driver dmard06_driver = { .id_table = dmard06_id, .driver = { .name = DMARD06_DRV_NAME, - .of_match_table = of_match_ptr(dmard06_of_match), + .of_match_table = dmard06_of_match, .pm = DMARD06_PM_OPS, }, }; From patchwork Fri Apr 24 22:44:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishant Malpani X-Patchwork-Id: 11509553 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 652A4112C for ; Fri, 24 Apr 2020 22:44:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4C02B2074F for ; Fri, 24 Apr 2020 22:44:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pE9fLCA/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726154AbgDXWo6 (ORCPT ); Fri, 24 Apr 2020 18:44:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbgDXWo6 (ORCPT ); Fri, 24 Apr 2020 18:44:58 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B382C09B049; Fri, 24 Apr 2020 15:44:58 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id v2so4283232plp.9; Fri, 24 Apr 2020 15:44:58 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=IctmcKVOOAVYgdyXKfTSzCCKWIaVQfFQKuxPl0Wscfk=; b=pE9fLCA/IEtAlUAL4sy61JNQke3INPN0IRoa8r6wOH5E8nm7VQcJThawifU7hhXA10 BiJiGotppEzamIOzyK4nKJp25Tx6hW/47/XdSd7k4bbT+FaCCwz9sC1fwJrW6a0lOLdO 1KaEkMMZY4ESNKvY9sURs3pGdRFphHbqswZMpwM6mfdMZQ5oEOg5U2GZSTUnA1w23emn YAostTvHFNVoMaljQSXVRJN9rCPoao7kjhRgnp27iwJQK4RwLWbN0bdao9K0vCO+D5zt SGMLoUPXRmJ8cAJNdJyvfPyigThnRdiiHbj+e78K62bwU9NHVvOkIcjM1c+D4+03V0Xu l3Iw== 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:mime-version:content-transfer-encoding; bh=IctmcKVOOAVYgdyXKfTSzCCKWIaVQfFQKuxPl0Wscfk=; b=mSv+AvG7eDwlKP86aOaD62K70DDhtXHHmidzUWeVHUvfhk9EJ5vyFWFIbscsK5n7CB ofMBc3YE3Yq/TAJOZ1eMel3A1BAoK6/WMG26ArbXppomdJn8/jClICgzhrG9gEru2J3q AFKAxQ/xyzagsmXW/f/XNhM8gQShdhnZbMipXHQdplYhABQbEXnK7oG9WHvDuF5sYhNb 6TDCWEVxVg2G3fM9EiCETTffYgEQ6UE67nGmIyo3VojD0oBlVUmAQuF/WaI3A8sEcXTR Dc8/HiszwNAdpDPL/KISZzf4Cj6JGIV3MHAOtYxVqDfk99s0KqqPYNwp4ArrmH+Wc2dg bIxg== X-Gm-Message-State: AGi0PuYFBhRrdKs/WqmTCMrSsuzuaixfkH1xE194BWnzO/fYg4+O+pRh 6x2Q3yRNZa3gyw3vyoGTQ3M= X-Google-Smtp-Source: APiQypJvJRRXiQFGKKHwjzs/zGzcW0IeH1EBSBzfuC6dzj8GgxlPR3r+kUCEGFgD6nMz2zCZJagTjQ== X-Received: by 2002:a17:902:8b82:: with SMTP id ay2mr11984813plb.285.1587768297777; Fri, 24 Apr 2020 15:44:57 -0700 (PDT) Received: from nish-HP-Pavilion ([2409:4072:610b:e3c6:8c8d:27b8:7b5b:c4d9]) by smtp.gmail.com with ESMTPSA id l137sm6748838pfd.107.2020.04.24.15.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2020 15:44:57 -0700 (PDT) From: Nishant Malpani To: linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, alexandru.Ardelean@analog.com, nish.malpani25@gmail.com Subject: [PATCH 2/3] iio: accel: kxsd9-i2c: Use mod_devicetable.h and drop of_match_ptr macro Date: Sat, 25 Apr 2020 04:14:38 +0530 Message-Id: <20200424224439.5601-3-nish.malpani25@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200424224439.5601-1-nish.malpani25@gmail.com> References: <20200424224439.5601-1-nish.malpani25@gmail.com> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Enables ACPI DSDT to probe via PRP0001 and the compatible property. Also removes the ifdef protections for CONFIG_OF. Signed-off-by: Nishant Malpani --- drivers/iio/accel/kxsd9-i2c.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/iio/accel/kxsd9-i2c.c b/drivers/iio/accel/kxsd9-i2c.c index b6f3de7ef8ea..b580d605f848 100644 --- a/drivers/iio/accel/kxsd9-i2c.c +++ b/drivers/iio/accel/kxsd9-i2c.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include @@ -36,15 +37,11 @@ static int kxsd9_i2c_remove(struct i2c_client *client) return kxsd9_common_remove(&client->dev); } -#ifdef CONFIG_OF static const struct of_device_id kxsd9_of_match[] = { { .compatible = "kionix,kxsd9", }, { }, }; MODULE_DEVICE_TABLE(of, kxsd9_of_match); -#else -#define kxsd9_of_match NULL -#endif static const struct i2c_device_id kxsd9_i2c_id[] = { {"kxsd9", 0}, @@ -55,7 +52,7 @@ MODULE_DEVICE_TABLE(i2c, kxsd9_i2c_id); static struct i2c_driver kxsd9_i2c_driver = { .driver = { .name = "kxsd9", - .of_match_table = of_match_ptr(kxsd9_of_match), + .of_match_table = kxsd9_of_match, .pm = &kxsd9_dev_pm_ops, }, .probe = kxsd9_i2c_probe, From patchwork Fri Apr 24 22:44:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishant Malpani X-Patchwork-Id: 11509555 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8E20692C for ; Fri, 24 Apr 2020 22:45:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 748632084D for ; Fri, 24 Apr 2020 22:45:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="opWbbk1m" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726090AbgDXWpG (ORCPT ); Fri, 24 Apr 2020 18:45:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbgDXWpG (ORCPT ); Fri, 24 Apr 2020 18:45:06 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09F2EC09B049; Fri, 24 Apr 2020 15:45:05 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id k18so4289700pll.6; Fri, 24 Apr 2020 15:45:05 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=6Yvw2PcrIrqFW+K0t4i2lUjt2HcTjoS5NlVcDfZcmx4=; b=opWbbk1mbKhaTOokWueyaTtaELeotmFlTU7LKpLFv8KC2uGjSsHHAwJvY9swIkYlGJ W932Y+6yiQMMxde0dBpYp5Yu3BPbxVJ2mBH63AbQmNwk02zNuAd8w6Rc2Jdhk+OLQ4lL mryJH9m8LDxDFLERg5IDprGdput6eBrTvZtNApMJRX8QKBAEDhaoZHEXWW/PWjKim2cg diBa9nGRMZ4EzBJMPgp+a09LkuA6zEkoDe0q4uhquaKRsskV0OYAockS7rcxOxuLeE7m 3ttr0uaexyHBZU9k4I6PALrN0IRp/KDcvfVXbV0yigO6F+Q2SD2GIK301bJslB+31UBg VP9A== 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:mime-version:content-transfer-encoding; bh=6Yvw2PcrIrqFW+K0t4i2lUjt2HcTjoS5NlVcDfZcmx4=; b=O0EZTRLXHh7OWO3dJrNXa2qbHbouSS+KDYUD7g4dykWUWFIC5vCSZJDkqLV1zXuZBN 2j8wGBd0Ic2U9tQVatyF0IU95wnija7OzGPmOdXg3blaXPIBjBBZmsdvzUzawkReQu90 2APu7i+4q2sRKJhDEd4f3LOlpqLJI7pdsZKrxCyiHJG7hEFV1hp4SA/XASpmoLhxQBqN bAa+cLqEbY6Bv++PhQQVDqTls0u3jlIpT+zOTKNWmIk0mvDnugk5a+Yl+RE6H11iuie3 ZI4Wpx4NdbnIjdtw9S998Ins7zBKsPZ7iMrWOycr7KyeeHgQiYNL1SdahBbSI4IY9Qpy KmtQ== X-Gm-Message-State: AGi0PubTkUmLty8jPZ1aord6DuGR9ouLtZV6OGVepEHVU/nz+cq+nmzi dS3gtfK20lvHDv8wBsnXVvo= X-Google-Smtp-Source: APiQypLYjl3FoKxK+raU5jmzX5s9UHY+9F5TrrTyaGOky8Wn5pLDg8Q+5nDUtJLP7G5ItKGRF6eCLQ== X-Received: by 2002:a17:90a:558a:: with SMTP id c10mr8864911pji.53.1587768304641; Fri, 24 Apr 2020 15:45:04 -0700 (PDT) Received: from nish-HP-Pavilion ([2409:4072:610b:e3c6:8c8d:27b8:7b5b:c4d9]) by smtp.gmail.com with ESMTPSA id t7sm6710144pfh.143.2020.04.24.15.45.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2020 15:45:04 -0700 (PDT) From: Nishant Malpani To: linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, alexandru.Ardelean@analog.com, nish.malpani25@gmail.com Subject: [PATCH 3/3] iio: accel: mma8452: Drop of_match_ptr macro Date: Sat, 25 Apr 2020 04:14:39 +0530 Message-Id: <20200424224439.5601-4-nish.malpani25@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200424224439.5601-1-nish.malpani25@gmail.com> References: <20200424224439.5601-1-nish.malpani25@gmail.com> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Enables ACPI DSDT to probe via PRP0001 and the compatible property. Signed-off-by: Nishant Malpani --- drivers/iio/accel/mma8452.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c index 00e100fc845a..66217fbcc7af 100644 --- a/drivers/iio/accel/mma8452.c +++ b/drivers/iio/accel/mma8452.c @@ -1815,7 +1815,7 @@ MODULE_DEVICE_TABLE(i2c, mma8452_id); static struct i2c_driver mma8452_driver = { .driver = { .name = "mma8452", - .of_match_table = of_match_ptr(mma8452_dt_ids), + .of_match_table = mma8452_dt_ids, .pm = &mma8452_pm_ops, }, .probe = mma8452_probe,