From patchwork Sun Apr 19 15:02:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11497533 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 4094C6CA for ; Sun, 19 Apr 2020 15:04:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1BC3922247 for ; Sun, 19 Apr 2020 15:04:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587308661; bh=V7lJ7JDeqdCtorEyl6z0O+mrCrBodR4edEuakzx/oqg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=RXI1L1RGYd7DJXGt1xVnaGvSHRoIqCyqJF/CT/YYvs7Tn5bdI1C1+VEyi5zq/Ca5t UbmxgK6Jje+XuWrXfeFV8gL4nMp+BM3Vy56vJdiPCVBeeuF+b75Cbo5l6t1Y+or/xZ DF+04HW4nOD5o8/3FHH3+/YrzUC+4L9WyBK0G+mA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725947AbgDSPEU (ORCPT ); Sun, 19 Apr 2020 11:04:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:56252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbgDSPET (ORCPT ); Sun, 19 Apr 2020 11:04:19 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F31E221973; Sun, 19 Apr 2020 15:04:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587308659; bh=V7lJ7JDeqdCtorEyl6z0O+mrCrBodR4edEuakzx/oqg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ygvMnMkMaAE/9LHjqCRP+bQuGKh5M83SJKbzQ0Edbn5v7ubS749LFUHzIwsfC7VQb yRjLyWCQEX6Gl8bJN+i6lOjE3poC5qmtO3EcG1aZ2IZheSBNC0AsSkCS2xI+cm0DeI P8sF6vClZ6ePbX/c6sXrbBNhN8n0q5nURjmrlLz8= From: jic23@kernel.org To: linux-iio@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH 1/7] iio: light: bh1780: use mod_devicetable.h and drop of_match_ptr macro Date: Sun, 19 Apr 2020 16:02:00 +0100 Message-Id: <20200419150206.43033-2-jic23@kernel.org> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200419150206.43033-1-jic23@kernel.org> References: <20200419150206.43033-1-jic23@kernel.org> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Whilst this enables ACPI binding or the device via PRP0001 the primary aim is to remove potential for these two things to be cut and paste into new drivers. Signed-off-by: Jonathan Cameron Reviewed-by: Alexandru Ardelean --- drivers/iio/light/bh1780.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/iio/light/bh1780.c b/drivers/iio/light/bh1780.c index a8361006dcd9..03f2d8d123c4 100644 --- a/drivers/iio/light/bh1780.c +++ b/drivers/iio/light/bh1780.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include #include @@ -273,13 +273,11 @@ static const struct i2c_device_id bh1780_id[] = { MODULE_DEVICE_TABLE(i2c, bh1780_id); -#ifdef CONFIG_OF static const struct of_device_id of_bh1780_match[] = { { .compatible = "rohm,bh1780gli", }, {}, }; MODULE_DEVICE_TABLE(of, of_bh1780_match); -#endif static struct i2c_driver bh1780_driver = { .probe = bh1780_probe, @@ -288,7 +286,7 @@ static struct i2c_driver bh1780_driver = { .driver = { .name = "bh1780", .pm = &bh1780_dev_pm_ops, - .of_match_table = of_match_ptr(of_bh1780_match), + .of_match_table = of_bh1780_match, }, }; From patchwork Sun Apr 19 15:02:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11497537 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 975E617EA for ; Sun, 19 Apr 2020 15:04:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7F49021D94 for ; Sun, 19 Apr 2020 15:04:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587308661; bh=/gYylPr2EpMW+lrY68r3C3qP+lUnSEGMSMOJGZvgXIU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Au/K27ZTii1SsJKXvJBYrBQQjjrY+IQvC86cC3NbRIUFQZmPiSb6m8F8emhOmupul h5z4Ch5P0nEfwTIEdqszpjEZ/Z6LO/gljZMqFTFFQyOHQBb7QChe3zle/Doc/W/qFl jVKy5GjuApF7uyHvsRe05+jdk6gJjPW2AR6noAvU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726495AbgDSPEV (ORCPT ); Sun, 19 Apr 2020 11:04:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:56262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbgDSPEU (ORCPT ); Sun, 19 Apr 2020 11:04:20 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E677821974; Sun, 19 Apr 2020 15:04:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587308660; bh=/gYylPr2EpMW+lrY68r3C3qP+lUnSEGMSMOJGZvgXIU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zDx6OCutuo0xMx4illwE9XQ/3j2fdtfyRP65mNR5TIj1Z98ugiukrebCucdhmZ81S Q0D+aaiu4vG47vKBInC1HQ3oZeHxsYL6DoLDpy9YUutGIiIA+EzDt8bydT9UafGvt4 M3JaoeMzGuWxmEcQIipruYBdgOnv9W0QwwsVyJH8= From: jic23@kernel.org To: linux-iio@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH 2/7] iio: light: cm32181: Add mod_devicetable.h and remove of_match_ptr Date: Sun, 19 Apr 2020 16:02:01 +0100 Message-Id: <20200419150206.43033-3-jic23@kernel.org> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200419150206.43033-1-jic23@kernel.org> References: <20200419150206.43033-1-jic23@kernel.org> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Enables probing via the ACPI PRP0001 route but more is mosty about removing examples of this that might get copied into new drivers. Signed-off-by: Jonathan Cameron Reviewed-by: Alexandru Ardelean --- drivers/iio/light/cm32181.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iio/light/cm32181.c b/drivers/iio/light/cm32181.c index 5f4fb5674fa0..73c48f46220c 100644 --- a/drivers/iio/light/cm32181.c +++ b/drivers/iio/light/cm32181.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -354,7 +355,7 @@ MODULE_DEVICE_TABLE(of, cm32181_of_match); static struct i2c_driver cm32181_driver = { .driver = { .name = "cm32181", - .of_match_table = of_match_ptr(cm32181_of_match), + .of_match_table = cm32181_of_match, }, .id_table = cm32181_id, .probe = cm32181_probe, From patchwork Sun Apr 19 15:02:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11497539 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 787AA81 for ; Sun, 19 Apr 2020 15:04:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 60DF022244 for ; Sun, 19 Apr 2020 15:04:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587308662; bh=6kA6GAzAh+GcRKffrDVz8+S9ooSxg8ZLDQ50os0l9Ps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=NIl9Hf8dHdVPY0j2NZ03DU3gxYSAq10N2sQT9YSX51alDPMlGfKqoYmxW2K9e4qpj JHBSSSx5RXD8l/U6dQTjZfVJzCO0rP5BVaVAUaOeI437Y881PSsDwgmfFOkBkLz9lb blwxIWXmrWiO4wYoFr2E2/AM+v4FageR1ScfQAyw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726496AbgDSPEW (ORCPT ); Sun, 19 Apr 2020 11:04:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:56296 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbgDSPEV (ORCPT ); Sun, 19 Apr 2020 11:04:21 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E44E122202; Sun, 19 Apr 2020 15:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587308661; bh=6kA6GAzAh+GcRKffrDVz8+S9ooSxg8ZLDQ50os0l9Ps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FYSSwZgeYYLxdlGlhuLwX1WGoLA2ZYG69m9rG3AnuJCgPzR+yF/mfBYryETKmrswC AyRKiHNgrzuAKb6ssl6QcDB/WScyXcY3GWKIbWsFwaZ3zCf1ccd23p9b56lzCGPllc VEP+4Q1ZtPLC2YUlo0TizkcbkLrOQDvkIwWSk3wc= From: jic23@kernel.org To: linux-iio@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH 3/7] iio: light: cm3232: Add mod_devicetable.h include and drop of_match_ptr Date: Sun, 19 Apr 2020 16:02:02 +0100 Message-Id: <20200419150206.43033-4-jic23@kernel.org> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200419150206.43033-1-jic23@kernel.org> References: <20200419150206.43033-1-jic23@kernel.org> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Enables ACPI probing via PRP0001 and removes an example that might be cut and paste to a new driver. Signed-off-by: Jonathan Cameron Reviewed-by: Alexandru Ardelean --- drivers/iio/light/cm3232.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iio/light/cm3232.c b/drivers/iio/light/cm3232.c index cd3cfb7d02bd..867200825686 100644 --- a/drivers/iio/light/cm3232.c +++ b/drivers/iio/light/cm3232.c @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -418,7 +419,7 @@ MODULE_DEVICE_TABLE(of, cm3232_of_match); static struct i2c_driver cm3232_driver = { .driver = { .name = "cm3232", - .of_match_table = of_match_ptr(cm3232_of_match), + .of_match_table = cm3232_of_match, #ifdef CONFIG_PM_SLEEP .pm = &cm3232_pm_ops, #endif From patchwork Sun Apr 19 15:02:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11497541 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 95F5A81 for ; Sun, 19 Apr 2020 15:04:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6F28722247 for ; Sun, 19 Apr 2020 15:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587308663; bh=atwHYNRDrKcNOlDQ9cqo9CzcA6aCqQUWlDBp2r1IV3M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=VOstuuLdMB7aTX0LNUQViO/ImRZlkn7zlrNc4hfvaSxJnvur9DjdFg4YAwq8Tneu0 JBTXoHDnuvwifm/M7jNm/hPbU+DbPO5pHvub9tqFqtCtemRYeEJs+9Dror/Dbdu8XG wmqxJ5Byl1ASyVr6Ndzn+N9x4wRkaPK8pOBYRi5o= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726498AbgDSPEX (ORCPT ); Sun, 19 Apr 2020 11:04:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:56312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbgDSPEW (ORCPT ); Sun, 19 Apr 2020 11:04:22 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E538921D94; Sun, 19 Apr 2020 15:04:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587308662; bh=atwHYNRDrKcNOlDQ9cqo9CzcA6aCqQUWlDBp2r1IV3M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zyl3RJlks/st9JJ10NvY53JGJ0C5wToSKoMkRQWWYmUa/UI7TA0T066hTxdEQf+K2 0Tl3GgVgU+Ikf1x5+maKGqYkLzJYSfMfAGm6RK124UQusAbTpVwrBxlXSMq6bNKqJU mVe2n5nySTVwbL4sUbSAES8mU/L9NgMJuYBmav7o= From: jic23@kernel.org To: linux-iio@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH 4/7] iio: light: gp2ap020a00f: Swap of.h for mod_devicetable.h + drop of_match_ptr Date: Sun, 19 Apr 2020 16:02:03 +0100 Message-Id: <20200419150206.43033-5-jic23@kernel.org> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200419150206.43033-1-jic23@kernel.org> References: <20200419150206.43033-1-jic23@kernel.org> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Also drops ifdef protections for CONFIG_OF. Enables probing via ACPI PRP0001 and removes an example that might be cut and paste into new drivers. Signed-off-by: Jonathan Cameron Reviewed-by: Alexandru Ardelean --- drivers/iio/light/gp2ap020a00f.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/iio/light/gp2ap020a00f.c b/drivers/iio/light/gp2ap020a00f.c index 7fbbce0d4bc7..070d4cd0cf54 100644 --- a/drivers/iio/light/gp2ap020a00f.c +++ b/drivers/iio/light/gp2ap020a00f.c @@ -38,8 +38,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -1617,18 +1617,16 @@ static const struct i2c_device_id gp2ap020a00f_id[] = { MODULE_DEVICE_TABLE(i2c, gp2ap020a00f_id); -#ifdef CONFIG_OF static const struct of_device_id gp2ap020a00f_of_match[] = { { .compatible = "sharp,gp2ap020a00f" }, { } }; MODULE_DEVICE_TABLE(of, gp2ap020a00f_of_match); -#endif static struct i2c_driver gp2ap020a00f_driver = { .driver = { .name = GP2A_I2C_NAME, - .of_match_table = of_match_ptr(gp2ap020a00f_of_match), + .of_match_table = gp2ap020a00f_of_match, }, .probe = gp2ap020a00f_probe, .remove = gp2ap020a00f_remove, From patchwork Sun Apr 19 15:02:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11497543 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 842FB81 for ; Sun, 19 Apr 2020 15:04:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6B6B62224F for ; Sun, 19 Apr 2020 15:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587308664; bh=QNskoY1itoFU/fw3SvXQqgFTvdObxWHJ+yFsXBj2yBo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=05W0YflabcopO1bc5UoDm6YTeK2hF8BC1KJ6DPNu1v+kaqaOujDsrU9/CcpqiRQrn lNVUArk/RmWndKwv4miaSORYUvf+iBah1820L9VGXebb6i3yOBmUixDVcHM/ZW9v9w o4K8M7HzlvNaQrRNsS/EXnL1fvKWouxMBHdcAQMI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726500AbgDSPEY (ORCPT ); Sun, 19 Apr 2020 11:04:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:56320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbgDSPEX (ORCPT ); Sun, 19 Apr 2020 11:04:23 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DFD572223D; Sun, 19 Apr 2020 15:04:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587308663; bh=QNskoY1itoFU/fw3SvXQqgFTvdObxWHJ+yFsXBj2yBo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Om/2NLMx6/GH+6HPHDv6IK+QxMxVBrm63ltyD+nYKyLpqWqfLhn57stH3JARi6oN8 a6lJfMoCHu1hqqxLqm12tHDUgexjsIv6cx2QNa86tREpSk77JzcKrEOa9losSGxADE 2SDGONJ8HdkB0hEiVGIWotuWTXKk8CF7noMdma+g= From: jic23@kernel.org To: linux-iio@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH 5/7] iio: light: opt3001: Add mod_devicetable.h and drop use of of_match_ptr Date: Sun, 19 Apr 2020 16:02:04 +0100 Message-Id: <20200419150206.43033-6-jic23@kernel.org> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200419150206.43033-1-jic23@kernel.org> References: <20200419150206.43033-1-jic23@kernel.org> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Enables probing via ACPI PRP0001 but mostly about removing examples that might be copied to new drivers. Signed-off-by: Jonathan Cameron Reviewed-by: Alexandru Ardelean --- drivers/iio/light/opt3001.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iio/light/opt3001.c b/drivers/iio/light/opt3001.c index 92004a2563ea..82abfa57b59c 100644 --- a/drivers/iio/light/opt3001.c +++ b/drivers/iio/light/opt3001.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -844,7 +845,7 @@ static struct i2c_driver opt3001_driver = { .driver = { .name = "opt3001", - .of_match_table = of_match_ptr(opt3001_of_match), + .of_match_table = opt3001_of_match, }, }; From patchwork Sun Apr 19 15:02:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11497545 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 DBBBA6CA for ; Sun, 19 Apr 2020 15:04:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B5F6F2224F for ; Sun, 19 Apr 2020 15:04:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587308665; bh=c4OOX+MlMg3a3k5zozzpEG/zYoq5T5knl4dtMqcFH14=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=hQkAfFUShQ0om+dSJ/wO/4SKLare1QTy2X1TcPuvC8rU6bQl9cIyBYmBSveFeHQy0 2xU3YWJRAh76/ZAGEj0+Ft8en4V5y9H7lWTe1Hne7vSbY+6a0o6UpNqMQ9KYPVeFgB D/AEhIMFpb19XDMmmpL7HD+YT0NZ60aPa1f5E6wk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726501AbgDSPEZ (ORCPT ); Sun, 19 Apr 2020 11:04:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:56330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbgDSPEZ (ORCPT ); Sun, 19 Apr 2020 11:04:25 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D439A22244; Sun, 19 Apr 2020 15:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587308664; bh=c4OOX+MlMg3a3k5zozzpEG/zYoq5T5knl4dtMqcFH14=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VyVjK1SoDwCpQTtjc2dp7cSfHtYor5iHtk3VHW80hbSKd+xEaHGVKhav7xM+L3kHx noOMzvLklOVTjMFJtizTA2IcxPFYnoiG4s3uJ/pbqkFoHasNhZ7Rl4aknNr3+Po3q3 F71tjNQ0jaX8eeR7J8VCqmYyTLYaRNAjeRrICndM= From: jic23@kernel.org To: linux-iio@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH 6/7] iio: light: st_uvis25: Add mod_devicetable.h and drop of_match_ptr Date: Sun, 19 Apr 2020 16:02:05 +0100 Message-Id: <20200419150206.43033-7-jic23@kernel.org> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200419150206.43033-1-jic23@kernel.org> References: <20200419150206.43033-1-jic23@kernel.org> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Enables probing via ACPI PRP0001 and removes an example that we don't want people to cut and paste into new drivers. Signed-off-by: Jonathan Cameron Reviewed-by: Alexandru Ardelean --- drivers/iio/light/st_uvis25_i2c.c | 3 ++- drivers/iio/light/st_uvis25_spi.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/iio/light/st_uvis25_i2c.c b/drivers/iio/light/st_uvis25_i2c.c index 400724069d19..98cd49eefe45 100644 --- a/drivers/iio/light/st_uvis25_i2c.c +++ b/drivers/iio/light/st_uvis25_i2c.c @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -55,7 +56,7 @@ static struct i2c_driver st_uvis25_driver = { .driver = { .name = "st_uvis25_i2c", .pm = &st_uvis25_pm_ops, - .of_match_table = of_match_ptr(st_uvis25_i2c_of_match), + .of_match_table = st_uvis25_i2c_of_match, }, .probe = st_uvis25_i2c_probe, .id_table = st_uvis25_i2c_id_table, diff --git a/drivers/iio/light/st_uvis25_spi.c b/drivers/iio/light/st_uvis25_spi.c index cd3761a3ee3f..af9d94d12787 100644 --- a/drivers/iio/light/st_uvis25_spi.c +++ b/drivers/iio/light/st_uvis25_spi.c @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -55,7 +56,7 @@ static struct spi_driver st_uvis25_driver = { .driver = { .name = "st_uvis25_spi", .pm = &st_uvis25_pm_ops, - .of_match_table = of_match_ptr(st_uvis25_spi_of_match), + .of_match_table = st_uvis25_spi_of_match, }, .probe = st_uvis25_spi_probe, .id_table = st_uvis25_spi_id_table, From patchwork Sun Apr 19 15:02:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11497547 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 7E79314B4 for ; Sun, 19 Apr 2020 15:04:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6619521D94 for ; Sun, 19 Apr 2020 15:04:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587308666; bh=prZ0rDtRZSm7asevPa5WaeUgrvH3P5c2c42j8nljiZU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=m+1Fg2ZJ6Ydvol3ctEpyeVWGctQUITBvEQGfrB2/BJsW1SFCfCqAGRIVyMK+1iKrB C4x9CHPhRin7EVyrx3pywWzRDPVj0/qFt4zXNRbqh7IgG5ibJwzTQyRs2L2R7eWcVE zJUe/7aRAdzAzBQY6puq+89KQ7EkVr7hWaL2syV8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726502AbgDSPE0 (ORCPT ); Sun, 19 Apr 2020 11:04:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:56332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbgDSPEZ (ORCPT ); Sun, 19 Apr 2020 11:04:25 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF98722247; Sun, 19 Apr 2020 15:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587308665; bh=prZ0rDtRZSm7asevPa5WaeUgrvH3P5c2c42j8nljiZU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mU740kmqaZbKfbFZwLCRLG6vqs0YHeEEfZNMrQGPXRJffO8Qj2xag96U5YL4ItoCR Cc2TdYp+++Sgaq8frB7fsm5Hra23OjV81FogQk5hDBOVRgRO6uuOBDXU/4RgdhVu5F iWR3BwRYi/SXJ+ckaVvtdvoSP/qCUmrEkQpzNRlc= From: jic23@kernel.org To: linux-iio@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH 7/7] iio: light: vl6180: swap of.h for mod_devicetable.h and drop of_match_ptr Date: Sun, 19 Apr 2020 16:02:06 +0100 Message-Id: <20200419150206.43033-8-jic23@kernel.org> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200419150206.43033-1-jic23@kernel.org> References: <20200419150206.43033-1-jic23@kernel.org> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Enables probing via ACPI PRP0001 route and removes an example of an approach we no longer want people to copy. Signed-off-by: Jonathan Cameron Reviewed-by: Alexandru Ardelean --- drivers/iio/light/vl6180.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/light/vl6180.c b/drivers/iio/light/vl6180.c index d9533a76b8f6..7e67d7b3bfb6 100644 --- a/drivers/iio/light/vl6180.c +++ b/drivers/iio/light/vl6180.c @@ -537,7 +537,7 @@ MODULE_DEVICE_TABLE(i2c, vl6180_id); static struct i2c_driver vl6180_driver = { .driver = { .name = VL6180_DRV_NAME, - .of_match_table = of_match_ptr(vl6180_of_match), + .of_match_table = vl6180_of_match, }, .probe = vl6180_probe, .id_table = vl6180_id,