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;