From patchwork Sun Jun 26 12:29:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12895735 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D398BC43334 for ; Sun, 26 Jun 2022 12:20:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234458AbiFZMUq (ORCPT ); Sun, 26 Jun 2022 08:20:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234455AbiFZMUp (ORCPT ); Sun, 26 Jun 2022 08:20:45 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 382FAE029 for ; Sun, 26 Jun 2022 05:20:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id ECC8DB80D8D for ; Sun, 26 Jun 2022 12:20:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 215F9C341CA; Sun, 26 Jun 2022 12:20:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656246042; bh=X83Z1/x93SZy4VMlZhofrz/IRvGn938xCzPYMDzqeH4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tA/811Gj+1n/7RiBL7+L3HgdcdgqaA5YW1BnAOR4jw6jeAOVCuj4fHc7lIj6+2LF4 FvRp+3eMzRw42K2Mm/h/wYa7hIfVa0r8RJTmchRPptIvMQzt9XkwYrcnqWqYS2Iena T+zkGBUFZiRyyqzoGQMk9wD9r6GsQ5l83QuKraTdLxMZ3qi2nso4dggZ9/r8737FMd kzpY5Aqw4o+VjWtVRFH0nH0/HS2kmkIFpuqi6q3H2yNZ4qeH33+RjHpBA3VUs7V0ZM 0SfBVUs5AG0v3LbZNk5z8wLA5DOPwl/PVTUXhKRiacaQH80j80tbt+m055Ekz3DLTv ktDxFotCwd8TA== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Peter Rosin , Michael Hennerich , Lars-Peter Clausen , Vincent Whitchurch , Jonathan Cameron Subject: [PATCH v3 09/17] staging: iio: cdc: ad7746: Drop unused i2c_set_clientdata() Date: Sun, 26 Jun 2022 13:29:30 +0100 Message-Id: <20220626122938.582107-10-jic23@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220626122938.582107-1-jic23@kernel.org> References: <20220626122938.582107-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron As the comment states, this was only used in remove() and now there is no explicit remove() function to make use of it. Signed-off-by: Jonathan Cameron --- drivers/staging/iio/cdc/ad7746.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index fa16522221aa..c574bc1c7d3d 100644 --- a/drivers/staging/iio/cdc/ad7746.c +++ b/drivers/staging/iio/cdc/ad7746.c @@ -708,8 +708,6 @@ static int ad7746_probe(struct i2c_client *client, return -ENOMEM; chip = iio_priv(indio_dev); mutex_init(&chip->lock); - /* this is only used for device removal purposes */ - i2c_set_clientdata(client, indio_dev); chip->client = client; chip->capdac_set = -1;