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;