From patchwork Mon Apr 26 17:02:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12224607 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CA2AC433B4 for ; Mon, 26 Apr 2021 17:04:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F1E7A613AA for ; Mon, 26 Apr 2021 17:04:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234719AbhDZREz (ORCPT ); Mon, 26 Apr 2021 13:04:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:49500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233736AbhDZREx (ORCPT ); Mon, 26 Apr 2021 13:04:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7D80A61026; Mon, 26 Apr 2021 17:04:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619456652; bh=KqZ66w4rGkxSrrpm0eFPIfRnZ0XDnW8oNhdKj8ln5Q0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cjxsvMSkUAGLHIBmgsJolt65b214xRxgiU3EdrQIdvJflypZDEfuJKgYz8oPxhVGf QyzKVD55wHsNv/utdEI905HuXzvLcHaO4yGuQXEZR7dWsQEIhvPCB6SLtcprcBpmT4 qc/Y0CeWwSOx5qke2UuDL+KQExMlg9LED9Wt+5PVgHEHvM+oPW7uSZXznnOQL321Ev ZbTElZZRZP25hOsdDnHA5rYBbk+M3XuQ/eL8JNIrwdgoYLkZV0fiD9O9YkpLKH/waS oUUlRLtHxqBPisb3PDADfdregFfbC5DInnu2ej9EMyr3LWeFaaBccXQINJ5lZ2uZbI 18bjI3UcgwMow== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Alexandru Ardelean , Jonathan Cameron , Mike Looijmans Subject: [PATCH 1/8] iio: accel: bmi088: Drop manual assignment of iio_dev.dev.parent Date: Mon, 26 Apr 2021 18:02:44 +0100 Message-Id: <20210426170251.351957-2-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210426170251.351957-1-jic23@kernel.org> References: <20210426170251.351957-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron The core already set this to the same value in devm_iio_device_alloc() Signed-off-by: Jonathan Cameron Cc: Mike Looijmans --- drivers/iio/accel/bmi088-accel-core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/accel/bmi088-accel-core.c b/drivers/iio/accel/bmi088-accel-core.c index 12d00658e46f..61aaaf48c040 100644 --- a/drivers/iio/accel/bmi088-accel-core.c +++ b/drivers/iio/accel/bmi088-accel-core.c @@ -496,7 +496,6 @@ int bmi088_accel_core_probe(struct device *dev, struct regmap *regmap, if (ret) return ret; - indio_dev->dev.parent = dev; indio_dev->channels = data->chip_info->channels; indio_dev->num_channels = data->chip_info->num_channels; indio_dev->name = name ? name : data->chip_info->name; From patchwork Mon Apr 26 17:02:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12224609 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBB84C433ED for ; Mon, 26 Apr 2021 17:04:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8EF1161103 for ; Mon, 26 Apr 2021 17:04:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234838AbhDZRE4 (ORCPT ); Mon, 26 Apr 2021 13:04:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:49662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234795AbhDZREz (ORCPT ); Mon, 26 Apr 2021 13:04:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8946561077; Mon, 26 Apr 2021 17:04:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619456653; bh=CL34ytVnq5hQFJ7sGACvCbprHpXlfGidJHXPqvihC80=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PrWSrECqhxPRUSPBnGQDRrQwiOOLszJyzVV615Usm4avM8kstfHQIitfmI3m30C3a aWZQSFx8YptoZevx17aTI+4vT1zrzkCKXyMtSyGzjbxt2usG1RNQ+QOeZFSoVuiNwa JHmso2S7/BwZZJ4v5Mo7PlVE52qeU58ADs0k0tp7q33kjZVha86q8K/cFPqBWSvMCs C34LSJDoa/aex+3eZZTbKSh9V5OTtuxz+PIwCNXA7g37do1dFJQa63q4R7sekv7vhU s8F4rWHmbloO34YAoBgTM2M7ddHZjnx7s5XuoeH2kp+tsAt22DC5joUWwMFEosMagx 5tVo9RckcLcbQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Alexandru Ardelean , Jonathan Cameron , Cristian Pop Subject: [PATCH 2/8] iio: dac: ad5766: Drop duplicate setting of iio_dev.dev.parent Date: Mon, 26 Apr 2021 18:02:45 +0100 Message-Id: <20210426170251.351957-3-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210426170251.351957-1-jic23@kernel.org> References: <20210426170251.351957-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron This is set to the same value in devm_iio_device_alloc() so no need to do it again. Signed-off-by: Jonathan Cameron Cc: Cristian Pop --- drivers/iio/dac/ad5766.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/dac/ad5766.c b/drivers/iio/dac/ad5766.c index 79837a4b3a41..b0f180d46394 100644 --- a/drivers/iio/dac/ad5766.c +++ b/drivers/iio/dac/ad5766.c @@ -597,7 +597,6 @@ static int ad5766_probe(struct spi_device *spi) indio_dev->channels = st->chip_info->channels; indio_dev->num_channels = st->chip_info->num_channels; indio_dev->info = &ad5766_info; - indio_dev->dev.parent = &spi->dev; indio_dev->dev.of_node = spi->dev.of_node; indio_dev->name = spi_get_device_id(spi)->name; indio_dev->modes = INDIO_DIRECT_MODE; From patchwork Mon Apr 26 17:02:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12224611 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65C41C433B4 for ; Mon, 26 Apr 2021 17:04:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2C508613AA for ; Mon, 26 Apr 2021 17:04:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234526AbhDZRE6 (ORCPT ); Mon, 26 Apr 2021 13:04:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:49846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233736AbhDZRE5 (ORCPT ); Mon, 26 Apr 2021 13:04:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7C76C613AB; Mon, 26 Apr 2021 17:04:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619456655; bh=hYza7Set3xxcxEciqQtBZPZwQ0j6Cs1K2uMm02/NVww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NXn+dft73ojBBLTE0lNdHezmnKmSzt2yzol4tk0arPkvrT4tr6zSWMSpCQmWh6IxU eO4+f+vszvezJu/5fjdlk/SXeE8Qgt9UgerdyBfhN64KJcb+SGnzPLD57f2TgLlI6T GEGI5Hh8m79eK2UxZiZEHgs0HJNDCkQC8fQTVdoBoFL5Klxd5A+WFSaKqhEI8g7GJT J2jAmgaS5nL1X60zeC+e5jTOiWlRN0c2huu2KpSs5OpmcoQEfTlhSaqkm+VFaxsm1J NqvvKaqxNbph1r6MWCcq8sLTMjNbBNwlJOa54a2svidFd8ZttVFmNMYTSB0CkoGpXB LiSVu085wcJ4g== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Alexandru Ardelean , Jonathan Cameron , Saravanan Sekar Subject: [PATCH 3/8] iio: adc: mp2629: Drop duplicate setting iio_dev.dev.parent Date: Mon, 26 Apr 2021 18:02:46 +0100 Message-Id: <20210426170251.351957-4-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210426170251.351957-1-jic23@kernel.org> References: <20210426170251.351957-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron This is already set to the same value in devm_iio_device_alloc() Signed-off-by: Jonathan Cameron Cc: Saravanan Sekar --- drivers/iio/adc/mp2629_adc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/adc/mp2629_adc.c b/drivers/iio/adc/mp2629_adc.c index 331a9a728217..aca084f1e78a 100644 --- a/drivers/iio/adc/mp2629_adc.c +++ b/drivers/iio/adc/mp2629_adc.c @@ -144,7 +144,6 @@ static int mp2629_adc_probe(struct platform_device *pdev) } indio_dev->name = "mp2629-adc"; - indio_dev->dev.parent = dev; indio_dev->channels = mp2629_channels; indio_dev->num_channels = ARRAY_SIZE(mp2629_channels); indio_dev->modes = INDIO_DIRECT_MODE; From patchwork Mon Apr 26 17:02:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12224613 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D0ACC433ED for ; Mon, 26 Apr 2021 17:04:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1D3DE613A9 for ; Mon, 26 Apr 2021 17:04:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235177AbhDZRFC (ORCPT ); Mon, 26 Apr 2021 13:05:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:50016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235072AbhDZRE7 (ORCPT ); Mon, 26 Apr 2021 13:04:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 560C2613A9; Mon, 26 Apr 2021 17:04:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619456657; bh=MKCN78y5X5pxozMKNglCOiIWKwUXvCCmulsbqPzyek8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R9NdLga7vl766LbuwJyguG83JpYUQKl56Hu7jHuYyw8vC+fdfvIv9k2wUi4eHzI90 eVjAktXh9p2ILrgRkT6lnBB7uJEQcthPvZvdXarThoy52jE0+1gnMCdRZsT3GCQJfi P5Pkz19+fuZTj5GvF2RgiOe5olKWyw5hOWn5HMNyw2wufT38ICWVFlWYGS/dKwS2f4 74OkWVD+9UJeXjUwtrXvSbR66cntxGM/veQd3xJu5EHiSMJ+izdnYCDVqh/QMoJc6I lhdAerz+mOE51Pvm1Axagzh7qP2S3w9xPFsp+JNPF5JpiMSG8jvsJRJHA+wgF89eJX kx4VHmME6NjbQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Alexandru Ardelean , Jonathan Cameron , Gene Chen Subject: [PATCH 4/8] iio: adc: mt6360: Drop duplicate setting of iio_dev.dev.parent Date: Mon, 26 Apr 2021 18:02:47 +0100 Message-Id: <20210426170251.351957-5-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210426170251.351957-1-jic23@kernel.org> References: <20210426170251.351957-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Already set to the same value in devm_iio_device_alloc() Signed-off-by: Jonathan Cameron Cc: Gene Chen --- drivers/iio/adc/mt6360-adc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/adc/mt6360-adc.c b/drivers/iio/adc/mt6360-adc.c index 6b39a139ce28..07c0e6768391 100644 --- a/drivers/iio/adc/mt6360-adc.c +++ b/drivers/iio/adc/mt6360-adc.c @@ -337,7 +337,6 @@ static int mt6360_adc_probe(struct platform_device *pdev) } indio_dev->name = dev_name(&pdev->dev); - indio_dev->dev.parent = &pdev->dev; indio_dev->info = &mt6360_adc_iio_info; indio_dev->modes = INDIO_DIRECT_MODE; indio_dev->channels = mt6360_adc_channels; From patchwork Mon Apr 26 17:02:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12224615 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA68AC433B4 for ; Mon, 26 Apr 2021 17:04:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8F3B361103 for ; Mon, 26 Apr 2021 17:04:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235178AbhDZRFC (ORCPT ); Mon, 26 Apr 2021 13:05:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:50162 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235161AbhDZRFC (ORCPT ); Mon, 26 Apr 2021 13:05:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2F77061006; Mon, 26 Apr 2021 17:04:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619456659; bh=XyQ1LylS59jGa9hej3qbQhyq6X6qs03YV0cNDe5vWMg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HPvAPOLK05cFXJX1ACqlQf3PI+y9I13zvUtnfid7KFqKxFmOqCh5z3LHmyXP+1G33 +2qfQrHtCOgHOvOnmShqmR32TY62VHA5VFtYAn7a7HV+sqvjeHlth4wMFKoooXIw/1 hJFZMGLKOARCfnpliLi5coNNYNtoxIxsX7voE3hgxw0wog713eeYnTmjW1Pml9fMIB EnD2Wq6uTnJRWc/Mza4qIK5k9ApvHUmQ+L/UKVRDhGea8ndorYA41ykN5MXx9/bbds 6YEOW2FD9zexEFdeQXZ5rS97ITmMIDqA9tjUK9MTq5xsSfgcJw2jKD9lJ1vnPY8dCn Q9vbZSumzJv7w== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Alexandru Ardelean , Jonathan Cameron , Tomislav Denis Subject: [PATCH 5/8] iio: adc: ti-ads131e08: Drop duplicate setting of iio_dev.dev.parent Date: Mon, 26 Apr 2021 18:02:48 +0100 Message-Id: <20210426170251.351957-6-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210426170251.351957-1-jic23@kernel.org> References: <20210426170251.351957-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Already set to same value in devm_iio_device_alloc() Signed-off-by: Jonathan Cameron Cc: Tomislav Denis --- drivers/iio/adc/ti-ads131e08.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/adc/ti-ads131e08.c b/drivers/iio/adc/ti-ads131e08.c index 5dcf1e9294d7..d220eef5c0df 100644 --- a/drivers/iio/adc/ti-ads131e08.c +++ b/drivers/iio/adc/ti-ads131e08.c @@ -824,7 +824,6 @@ static int ads131e08_probe(struct spi_device *spi) return ret; indio_dev->name = st->info->name; - indio_dev->dev.parent = &spi->dev; indio_dev->info = &ads131e08_iio_info; indio_dev->modes = INDIO_DIRECT_MODE; From patchwork Mon Apr 26 17:02:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12224619 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADB74C43461 for ; Mon, 26 Apr 2021 17:04:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 79237613BB for ; Mon, 26 Apr 2021 17:04:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234628AbhDZRFE (ORCPT ); Mon, 26 Apr 2021 13:05:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:50288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235187AbhDZRFD (ORCPT ); Mon, 26 Apr 2021 13:05:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 091B161026; Mon, 26 Apr 2021 17:04:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619456661; bh=V5sTDjK/t7jLtwqrpye9zTN4n7r5WYjm9L+qXcoRY0k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YAReStBu/jUeb/y8Bh5/QLK2tOy/Acy3hAZBO5nL42mVjNhgzAhjIjLQkjKNCQshM dLsz6c4mYaSkyGlIiUX41fSdbq2mwdjNKByHM0sja/dvbfj8flEImGlwprESBfytM1 5OPNuBrbZW7Qe1qTdcbpTZ07KEb690tkOoVdrZbcQR5ITBYONQBBMdhFe0L1L5AUHo aHyUW/cy45o6JjZIxCA5WwM1XOaQygbbBwE4iZhlKhiC4VAb0r706JAzDE9ivRNLDE 7g8fMomQh8p05q1HEYZIl/rrRTDyLJ0xX9ReOf0mvSvymGt/YfIKqA4Q1V72nxVMS0 w5qmAi243gusw== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Alexandru Ardelean , Jonathan Cameron , Eugene Zaikonnikov Subject: [PATCH 6/8] iio: humidity: hdc2010: Drop duplicate setting of iio_dev.dev.parent Date: Mon, 26 Apr 2021 18:02:49 +0100 Message-Id: <20210426170251.351957-7-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210426170251.351957-1-jic23@kernel.org> References: <20210426170251.351957-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Already set to same value in devm_iio_device_alloc() Signed-off-by: Jonathan Cameron Cc: Eugene Zaikonnikov --- drivers/iio/humidity/hdc2010.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/humidity/hdc2010.c b/drivers/iio/humidity/hdc2010.c index 83f5b9f60780..1381df46187c 100644 --- a/drivers/iio/humidity/hdc2010.c +++ b/drivers/iio/humidity/hdc2010.c @@ -272,7 +272,6 @@ static int hdc2010_probe(struct i2c_client *client, data->client = client; mutex_init(&data->lock); - indio_dev->dev.parent = &client->dev; /* * As DEVICE ID register does not differentiate between * HDC2010 and HDC2080, we have the name hardcoded From patchwork Mon Apr 26 17:02:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12224617 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE022C433ED for ; Mon, 26 Apr 2021 17:04:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AA1FE61103 for ; Mon, 26 Apr 2021 17:04:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234466AbhDZRFG (ORCPT ); Mon, 26 Apr 2021 13:05:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:50392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235195AbhDZRFF (ORCPT ); Mon, 26 Apr 2021 13:05:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EFF7F61077; Mon, 26 Apr 2021 17:04:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619456663; bh=hMrnruaS8RaqHRuRGs9ZkakrCCbkQdPm1xRdb710jXs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KfqODkUc0qNs/5GKa/ujsnq9RKD30PLBmjOvKmI+4+PyqAQbHzT5La8yj6aZ4bthq iymaLSZMSaRxpjdOIa5qPzkOMYuzJVQSO7EXrFkRsojRA8G1VEIvW23wwkFYTw58nS 0YFrIe/zTX5a2uigUAdBOBp4K6/zxrx2PD/eZiviZf2X9i9csDkLSyywqi8p8cwiW4 BBiJFbu/TGBmnXn3CV3LKXITYqO0Z8EZKYw7+zJhriJii04sCG9lARctLoEQRCP28o TPBitgKPmiziWQHKoF1yBiyZNck1Qrj4SSVA5ejjFHc8M4a7+P8oRGTM1BRuTU0uUt f1vGwPi9EixbQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Alexandru Ardelean , Jonathan Cameron , Ye Xiang Subject: [PATCH 7/8] iio: position: hid-sensor-custom-intel-hinge: Drop duplicate parent setting. Date: Mon, 26 Apr 2021 18:02:50 +0100 Message-Id: <20210426170251.351957-8-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210426170251.351957-1-jic23@kernel.org> References: <20210426170251.351957-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron iio_dev.dev.parent is already set to the same value in devm_iio_device_alloc() Signed-off-by: Jonathan Cameron Cc: Ye Xiang --- drivers/iio/position/hid-sensor-custom-intel-hinge.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/position/hid-sensor-custom-intel-hinge.c b/drivers/iio/position/hid-sensor-custom-intel-hinge.c index fd77e7ee87f3..738b5f4626ce 100644 --- a/drivers/iio/position/hid-sensor-custom-intel-hinge.c +++ b/drivers/iio/position/hid-sensor-custom-intel-hinge.c @@ -303,7 +303,6 @@ static int hid_hinge_probe(struct platform_device *pdev) return ret; } - indio_dev->dev.parent = &pdev->dev; indio_dev->info = &hinge_info; indio_dev->name = "hinge"; indio_dev->modes = INDIO_DIRECT_MODE; From patchwork Mon Apr 26 17:02:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12224621 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C34DDC433B4 for ; Mon, 26 Apr 2021 17:04:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8C25861026 for ; Mon, 26 Apr 2021 17:04:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235193AbhDZRFH (ORCPT ); Mon, 26 Apr 2021 13:05:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:50516 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235135AbhDZRFG (ORCPT ); Mon, 26 Apr 2021 13:05:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C9CE3613AA; Mon, 26 Apr 2021 17:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619456665; bh=um7xTbcfIkZ3pU67vL/jR1erRTfwDGHwZ8NDAi54i18=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I2GFUxzGhZV4V8FnHjBR+zB8bfiE4ZNFUPK03L6Cca3jS5ISscQpegI61BS0aj9SL ohmi2U4Qus6tlbI57BIxAulbQplPoFY0VEAI0Pq68oHEGnCH5vRJxOP7VkQ2kTmCBg B+WT6U0lcf/KUk6aq2ARvz/VpQzhv0KSSRSZshIRy07qxpITBA2nfn4ROT565sZNDk 7fGifR5ZrN2hapbjlBzUyMeUX1snInhBhHm0rUuTJlTVNC/hXrxPsdIy3dxnQD4dSv nXi/bg3nqfoBhYRX/grVq6Ww8nlT79VznW+2XKXpWr8HJdAICo8KWTwLTyM592GkWo hpsyK2lnfxD1A== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Alexandru Ardelean , Jonathan Cameron , Jyoti Bhayana Subject: [PATCH 8/8] iio: common: scmi_sensors: Drop duplicate setting of iio_dev.dev.parent Date: Mon, 26 Apr 2021 18:02:51 +0100 Message-Id: <20210426170251.351957-9-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210426170251.351957-1-jic23@kernel.org> References: <20210426170251.351957-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron This is already set to the same value in devm_iio_device_alloc() Signed-off-by: Jonathan Cameron Cc: Jyoti Bhayana --- drivers/iio/common/scmi_sensors/scmi_iio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/common/scmi_sensors/scmi_iio.c b/drivers/iio/common/scmi_sensors/scmi_iio.c index 63e4cec9de5e..16f0526ff01a 100644 --- a/drivers/iio/common/scmi_sensors/scmi_iio.c +++ b/drivers/iio/common/scmi_sensors/scmi_iio.c @@ -544,7 +544,6 @@ static struct iio_dev *scmi_alloc_iiodev(struct device *dev, return ERR_PTR(-ENOMEM); iiodev->modes = INDIO_DIRECT_MODE; - iiodev->dev.parent = dev; sensor = iio_priv(iiodev); sensor->handle = handle; sensor->sensor_info = sensor_info;