Skip to content

Commit

Permalink
sound: Remove <common.h> and add needed includes
Browse files Browse the repository at this point in the history
Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
  • Loading branch information
trini committed May 7, 2024
1 parent 294ebef commit 0fc6271
Show file tree
Hide file tree
Showing 25 changed files with 3 additions and 25 deletions.
1 change: 0 additions & 1 deletion drivers/sound/broadwell_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#define LOG_CATEGORY UCLASS_I2S

#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/broadwell_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#define LOG_CATEGORY UCLASS_SOUND

#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <i2s.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/codec-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#define LOG_CATEGORY UCLASS_AUDIO_CODEC

#include <common.h>
#include <dm.h>
#include <audio_codec.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/sound/da7219.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Parts taken from coreboot
*/

#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <irq.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#define LOG_CATEGORY UCLASS_SOUND

#include <common.h>
#include <dm.h>
#include <hda_codec.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/i2s-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#define LOG_CATEGORY UCLASS_I2S

#include <common.h>
#include <dm.h>
#include <i2s.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/sound/i8254_beep.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright 2018 Google LLC
*/

#include <common.h>
#include <dm.h>
#include <sound.h>
#include <asm/i8254.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/ivybridge_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#define LOG_CATEGORY UCLASS_SOUND

#include <common.h>
#include <dm.h>
#include <hda_codec.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/max98088.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* following the changes made in max98095.c
*/

#include <common.h>
#include <audio_codec.h>
#include <div64.h>
#include <dm.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/max98090.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Copyright 2011 Maxim Integrated Products
*/

#include <common.h>
#include <audio_codec.h>
#include <div64.h>
#include <dm.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/max98095.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Modified for U-Boot by R. Chandrasekar (rcsekar@samsung.com)
*/

#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <div64.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/max98357a.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Parts taken from coreboot
*/

#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/maxim_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Copyright 2011 Maxim Integrated Products
*/

#include <common.h>
#include <div64.h>
#include <i2c.h>
#include <i2s.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/rockchip_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#define LOG_CATEGORY UCLASS_I2S

#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/rockchip_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#define LOG_CATEGORY UCLASS_SOUND

#include <common.h>
#include <audio_codec.h>
#include <clk.h>
#include <dm.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/rt5677.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#define LOG_CATEGORY UCLASS_SOUND

#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <i2c.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/sound/samsung-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
* R. Chandrasekar <rcsekar@samsung.com>
*/

#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <log.h>
#include <sound.h>
#include <time.h>
#include <asm/arch/clk.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/i2s-regs.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/samsung_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/

#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <i2s.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/sandbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#define LOG_CATEGORY UCLASS_SOUND

#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <i2s.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/sound-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#define LOG_CATEGORY UCLASS_SOUND

#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <log.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/sound/sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* R. Chandrasekar <rcsekar@samsung.com>
*/

#include <common.h>
#include <log.h>
#include <sound.h>
#include <linux/string.h>

void sound_create_square_wave(uint sample_rate, unsigned short *data, int size,
uint freq, uint channels)
Expand Down
2 changes: 1 addition & 1 deletion drivers/sound/tegra_ahub.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

#define LOG_CATEGORY UCLASS_MISC

#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <log.h>
#include <misc.h>
#include <time.h>
#include <asm/io.h>
#include <asm/arch-tegra/tegra_ahub.h>
#include <asm/arch-tegra/tegra_i2s.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/tegra_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/
#define LOG_CATEGORY UCLASS_I2S

#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/tegra_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#define LOG_CATEGORY UCLASS_I2S

#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <i2s.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/sound/wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (C) 2012 Samsung Electronics
* R. Chandrasekar <rcsekar@samsung.com>
*/
#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <div64.h>
Expand Down

0 comments on commit 0fc6271

Please sign in to comment.