From patchwork Thu Dec 7 15:38:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 10099559 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 84C9860360 for ; Thu, 7 Dec 2017 15:51:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F5902679B for ; Thu, 7 Dec 2017 15:51:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 640AB2624A; Thu, 7 Dec 2017 15:51:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF8EA26785 for ; Thu, 7 Dec 2017 15:51:19 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C73482671C3; Thu, 7 Dec 2017 16:39:05 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 282C32671C3; Thu, 7 Dec 2017 16:39:05 +0100 (CET) Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by alsa0.perex.cz (Postfix) with ESMTP id 03AF7266B67 for ; Thu, 7 Dec 2017 16:39:02 +0100 (CET) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id vB7Fd1Tp014702; Thu, 7 Dec 2017 09:39:01 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1512661141; bh=OhNvVI28xVgsa/VV8GwWv+jD0IOVwawb4+/g99GhdH8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=qRujK9SJU+NFOBsEntxNRYng6GXd+PHpw2k/Xgk0VQioGzD0zC40r0EW8OQGfJDeG SPjRHMCc194OrPnQduLfakK9nHahoFhZs1XAxKsCi5fK/VZjGxsBrp5MBGdHkRe9Ss CF3clkrgNYNcb1Y45A52eza/w+s+PMB/WSbOk2D8= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id vB7Fd1sM006548; Thu, 7 Dec 2017 09:39:01 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Thu, 7 Dec 2017 09:39:01 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Thu, 7 Dec 2017 09:39:01 -0600 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id vB7Fd1wD017516; Thu, 7 Dec 2017 09:39:01 -0600 Received: from localhost (uda0226330.dhcp.ti.com [128.247.58.246]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id vB7Fd0329005; Thu, 7 Dec 2017 09:39:00 -0600 (CST) From: "Andrew F. Davis" To: Liam Girdwood , Mark Brown Date: Thu, 7 Dec 2017 09:38:53 -0600 Message-ID: <20171207153900.9831-4-afd@ti.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171207153900.9831-1-afd@ti.com> References: <20171207153900.9831-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, "Andrew F . Davis" Subject: [alsa-devel] [PATCH v3 03/10] ASoC: tlv320aic31xx: Remove platform data X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Platform data is not used by anyone (at least in upstream) so drop this data. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 7 ------- sound/soc/codecs/tlv320aic31xx.h | 6 ------ 2 files changed, 13 deletions(-) diff --git a/sound/soc/codecs/tlv320aic31xx.c b/sound/soc/codecs/tlv320aic31xx.c index 655c99db2426..266141d841e7 100644 --- a/sound/soc/codecs/tlv320aic31xx.c +++ b/sound/soc/codecs/tlv320aic31xx.c @@ -160,7 +160,6 @@ struct aic31xx_priv { enum aic31xx_type codec_type; struct gpio_desc *gpio_reset; int micbias_vg; - struct aic31xx_pdata pdata; struct regulator_bulk_data supplies[AIC31XX_NUM_SUPPLIES]; struct aic31xx_disable_nb disable_nb[AIC31XX_NUM_SUPPLIES]; unsigned int sysclk; @@ -1332,12 +1331,6 @@ static int aic31xx_i2c_probe(struct i2c_client *i2c, aic31xx->micbias_vg = MICBIAS_2_0V; } - if (dev_get_platdata(aic31xx->dev)) { - memcpy(&aic31xx->pdata, dev_get_platdata(aic31xx->dev), sizeof(aic31xx->pdata)); - aic31xx->codec_type = aic31xx->pdata.codec_type; - aic31xx->micbias_vg = aic31xx->pdata.micbias_vg; - } - aic31xx->gpio_reset = devm_gpiod_get_optional(aic31xx->dev, "reset", GPIOD_OUT_LOW); if (IS_ERR(aic31xx->gpio_reset)) { diff --git a/sound/soc/codecs/tlv320aic31xx.h b/sound/soc/codecs/tlv320aic31xx.h index 15ac7cba86fe..ab94e6a0c742 100644 --- a/sound/soc/codecs/tlv320aic31xx.h +++ b/sound/soc/codecs/tlv320aic31xx.h @@ -29,12 +29,6 @@ enum aic31xx_type { DAC3101 = DAC31XX_BIT | AIC31XX_STEREO_CLASS_D_BIT, }; -struct aic31xx_pdata { - enum aic31xx_type codec_type; - unsigned int gpio_reset; - int micbias_vg; -}; - #define AIC31XX_REG(page, reg) ((page * 128) + reg) #define AIC31XX_PAGECTL AIC31XX_REG(0, 0) /* Page Control Register */