]> www.infradead.org Git - users/hch/misc.git/commitdiff
ASoC: codecs: tlv320dac33: Remove unused struct tlv320dac33_platform_data and header...
authorAlex Tran <alex.t.tran@gmail.com>
Mon, 1 Sep 2025 18:40:08 +0000 (11:40 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 8 Sep 2025 15:33:30 +0000 (16:33 +0100)
Remove the tlv320dac33_platform_data struct and header file
tlv320dac33-plat.h as they are not used anywhere in the kernel
or outside this driver.

Signed-off-by: Alex Tran <alex.t.tran@gmail.com>
Message-ID: <20250901184008.1249535-3-alex.t.tran@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/tlv320dac33-plat.h [deleted file]
sound/soc/codecs/tlv320dac33.c

diff --git a/include/sound/tlv320dac33-plat.h b/include/sound/tlv320dac33-plat.h
deleted file mode 100644 (file)
index 7a7249a..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-/*
- * Platform header for Texas Instruments TLV320DAC33 codec driver
- *
- * Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
- *
- * Copyright:   (C) 2009 Nokia Corporation
- */
-
-#ifndef __TLV320DAC33_PLAT_H
-#define __TLV320DAC33_PLAT_H
-
-struct tlv320dac33_platform_data {
-       int power_gpio;
-       int mode1_latency; /* latency caused by the i2c writes in us */
-       int auto_fifo_config; /* FIFO config based on the period size */
-       int keep_bclk;  /* Keep the BCLK running in FIFO modes */
-       u8 burst_bclkdiv;
-};
-
-#endif /* __TLV320DAC33_PLAT_H */
index 423b9264a205e6fe5e31c371cea11cd5ff2f5596..36b3de75a3f439413afe2a161a931f3b3569baf5 100644 (file)
@@ -24,7 +24,6 @@
 #include <sound/initval.h>
 #include <sound/tlv.h>
 
-#include <sound/tlv320dac33-plat.h>
 #include "tlv320dac33.h"
 
 /*
@@ -1462,16 +1461,9 @@ static struct snd_soc_dai_driver dac33_dai = {
 
 static int dac33_i2c_probe(struct i2c_client *client)
 {
-       struct tlv320dac33_platform_data *pdata;
        struct tlv320dac33_priv *dac33;
        int ret, i;
 
-       if (client->dev.platform_data == NULL) {
-               dev_err(&client->dev, "Platform data not set\n");
-               return -ENODEV;
-       }
-       pdata = client->dev.platform_data;
-
        dac33 = devm_kzalloc(&client->dev, sizeof(struct tlv320dac33_priv),
                             GFP_KERNEL);
        if (dac33 == NULL)
@@ -1488,10 +1480,6 @@ static int dac33_i2c_probe(struct i2c_client *client)
 
        i2c_set_clientdata(client, dac33);
 
-       dac33->power_gpio = pdata->power_gpio;
-       dac33->burst_bclkdiv = pdata->burst_bclkdiv;
-       dac33->keep_bclk = pdata->keep_bclk;
-       dac33->mode1_latency = pdata->mode1_latency;
        if (!dac33->mode1_latency)
                dac33->mode1_latency = 10000; /* 10ms */
        dac33->irq = client->irq;