Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: codecs: tlv320dac33: Remove unused struct tlv320dac33_platform_data and header file tlv320dac33-plat.h

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>

authored by

Alex Tran and committed by
Mark Brown
06aba212 9e5eb8b4

-33
-21
include/sound/tlv320dac33-plat.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0-only */ 2 - /* 3 - * Platform header for Texas Instruments TLV320DAC33 codec driver 4 - * 5 - * Author: Peter Ujfalusi <peter.ujfalusi@ti.com> 6 - * 7 - * Copyright: (C) 2009 Nokia Corporation 8 - */ 9 - 10 - #ifndef __TLV320DAC33_PLAT_H 11 - #define __TLV320DAC33_PLAT_H 12 - 13 - struct tlv320dac33_platform_data { 14 - int power_gpio; 15 - int mode1_latency; /* latency caused by the i2c writes in us */ 16 - int auto_fifo_config; /* FIFO config based on the period size */ 17 - int keep_bclk; /* Keep the BCLK running in FIFO modes */ 18 - u8 burst_bclkdiv; 19 - }; 20 - 21 - #endif /* __TLV320DAC33_PLAT_H */
-12
sound/soc/codecs/tlv320dac33.c
··· 24 24 #include <sound/initval.h> 25 25 #include <sound/tlv.h> 26 26 27 - #include <sound/tlv320dac33-plat.h> 28 27 #include "tlv320dac33.h" 29 28 30 29 /* ··· 1461 1462 1462 1463 static int dac33_i2c_probe(struct i2c_client *client) 1463 1464 { 1464 - struct tlv320dac33_platform_data *pdata; 1465 1465 struct tlv320dac33_priv *dac33; 1466 1466 int ret, i; 1467 - 1468 - if (client->dev.platform_data == NULL) { 1469 - dev_err(&client->dev, "Platform data not set\n"); 1470 - return -ENODEV; 1471 - } 1472 - pdata = client->dev.platform_data; 1473 1467 1474 1468 dac33 = devm_kzalloc(&client->dev, sizeof(struct tlv320dac33_priv), 1475 1469 GFP_KERNEL); ··· 1480 1488 1481 1489 i2c_set_clientdata(client, dac33); 1482 1490 1483 - dac33->power_gpio = pdata->power_gpio; 1484 - dac33->burst_bclkdiv = pdata->burst_bclkdiv; 1485 - dac33->keep_bclk = pdata->keep_bclk; 1486 - dac33->mode1_latency = pdata->mode1_latency; 1487 1491 if (!dac33->mode1_latency) 1488 1492 dac33->mode1_latency = 10000; /* 10ms */ 1489 1493 dac33->irq = client->irq;