global: Drop common.h inclusion

In order to make it easier to move on to dropping common.h from code
directly, remove common.h inclusion from the rest of the header file
which had been including it.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini 2023-12-14 13:16:47 -05:00
parent 460b2c068c
commit cb3ce95401
31 changed files with 7 additions and 40 deletions

View file

@ -7,7 +7,6 @@
*/ */
#ifndef __CONFIG_BRRESETC_H__ #ifndef __CONFIG_BRRESETC_H__
#define __CONFIG_BRRESETC_H__ #define __CONFIG_BRRESETC_H__
#include <common.h>
int br_resetc_regget(u8 reg, u8 *dst); int br_resetc_regget(u8 reg, u8 *dst);
int br_resetc_regset(u8 reg, u8 val); int br_resetc_regset(u8 reg, u8 val);

View file

@ -6,8 +6,6 @@
#ifndef _BOARD_CZNIC_TURRIS_MOX_MOX_SP_H_ #ifndef _BOARD_CZNIC_TURRIS_MOX_MOX_SP_H_
#define _BOARD_CZNIC_TURRIS_MOX_MOX_SP_H_ #define _BOARD_CZNIC_TURRIS_MOX_MOX_SP_H_
#include <common.h>
enum cznic_a3720_board { enum cznic_a3720_board {
BOARD_UNDEFINED = 0x0, BOARD_UNDEFINED = 0x0,
BOARD_TURRIS_MOX = 0x1, BOARD_TURRIS_MOX = 0x1,

View file

@ -6,7 +6,6 @@
#ifndef __VSC_CROSSBAR_H_ #ifndef __VSC_CROSSBAR_H_
#define __VSC_CROSSBAR_H_ #define __VSC_CROSSBAR_H_
#include <common.h>
#include <i2c.h> #include <i2c.h>
#include <errno.h> #include <errno.h>

View file

@ -6,7 +6,6 @@
* Texas Instruments Incorporated, <www.ti.com> * Texas Instruments Incorporated, <www.ti.com>
*/ */
#include <common.h>
#include <hang.h> #include <hang.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/mux-k2g.h> #include <asm/arch/mux-k2g.h>

View file

@ -7,8 +7,6 @@
#ifndef __TQMA6_BB__ #ifndef __TQMA6_BB__
#define __TQMA6_BB__ #define __TQMA6_BB__
#include <common.h>
int tqma6_bb_board_mmc_getwp(struct mmc *mmc); int tqma6_bb_board_mmc_getwp(struct mmc *mmc);
int tqma6_bb_board_mmc_getcd(struct mmc *mmc); int tqma6_bb_board_mmc_getcd(struct mmc *mmc);
int tqma6_bb_board_mmc_init(struct bd_info *bis); int tqma6_bb_board_mmc_init(struct bd_info *bis);

View file

@ -5,7 +5,6 @@
/* FIXME remove this when vivado is fixed */ /* FIXME remove this when vivado is fixed */
#include <asm/io.h> #include <asm/io.h>
#include <common.h>
#include <linux/delay.h> #include <linux/delay.h>
#define xil_printf(...) #define xil_printf(...)

View file

@ -7,7 +7,6 @@
#ifndef _DISK_PART_AMIGA_H #ifndef _DISK_PART_AMIGA_H
#define _DISK_PART_AMIGA_H #define _DISK_PART_AMIGA_H
#include <common.h>
#if CONFIG_IS_ENABLED(ISO_PARTITION) #if CONFIG_IS_ENABLED(ISO_PARTITION)
/* Make the buffers bigger if ISO partition support is enabled -- CD-ROMS /* Make the buffers bigger if ISO partition support is enabled -- CD-ROMS

View file

@ -42,7 +42,6 @@
#define __X86EMU_X86EMU_H #define __X86EMU_X86EMU_H
#include <asm/types.h> #include <asm/types.h>
#include <common.h>
#include <pci.h> #include <pci.h>
#include <asm/io.h> #include <asm/io.h>
#define X86API #define X86API

View file

@ -7,7 +7,6 @@
#ifndef __JOBDESC_H #ifndef __JOBDESC_H
#define __JOBDESC_H #define __JOBDESC_H
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include "rsa_caam.h" #include "rsa_caam.h"

View file

@ -6,8 +6,6 @@
#ifndef __RSA_CAAM_H #ifndef __RSA_CAAM_H
#define __RSA_CAAM_H #define __RSA_CAAM_H
#include <common.h>
/** /**
* struct pk_in_params - holder for input to PKHA block in CAAM * struct pk_in_params - holder for input to PKHA block in CAAM
* These parameters are required to perform Modular Exponentiation * These parameters are required to perform Modular Exponentiation

View file

@ -6,7 +6,6 @@
#ifndef _SDRAM_SOC64_H_ #ifndef _SDRAM_SOC64_H_
#define _SDRAM_SOC64_H_ #define _SDRAM_SOC64_H_
#include <common.h>
#include <linux/sizes.h> #include <linux/sizes.h>
struct altera_sdram_priv { struct altera_sdram_priv {

View file

@ -6,7 +6,6 @@
#ifndef _DDR_ML_WRAPPER_H #ifndef _DDR_ML_WRAPPER_H
#define _DDR_ML_WRAPPER_H #define _DDR_ML_WRAPPER_H
#include <common.h>
#include <i2c.h> #include <i2c.h>
#include <spl.h> #include <spl.h>
#include <asm/io.h> #include <asm/io.h>

View file

@ -6,7 +6,6 @@
#ifndef __FM_H__ #ifndef __FM_H__
#define __FM_H__ #define __FM_H__
#include <common.h>
#include <phy.h> #include <phy.h>
#include <fm_eth.h> #include <fm_eth.h>
#include <fsl_fman.h> #include <fsl_fman.h>

View file

@ -4,7 +4,6 @@
*/ */
/* Perform extra checking */ /* Perform extra checking */
#include <common.h>
#include <errno.h> #include <errno.h>
#include <asm/io.h> #include <asm/io.h>
#include <linux/bug.h> #include <linux/bug.h>

View file

@ -20,6 +20,7 @@
/* Trace the 3 different classes of read/write access to QBMan. #undef as /* Trace the 3 different classes of read/write access to QBMan. #undef as
* required. */ * required. */
#include <config.h>
#include <linux/bug.h> #include <linux/bug.h>
#include <linux/printk.h> #include <linux/printk.h>
#undef QBMAN_CCSR_TRACE #undef QBMAN_CCSR_TRACE

View file

@ -3,6 +3,7 @@
* Copyright (c) 2018 Microsemi Corporation * Copyright (c) 2018 Microsemi Corporation
*/ */
#include <errno.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/io.h> #include <linux/io.h>
#include "mscc_mac_table.h" #include "mscc_mac_table.h"

View file

@ -3,8 +3,6 @@
* Copyright (c) 2018 Microsemi Corporation * Copyright (c) 2018 Microsemi Corporation
*/ */
#include <common.h>
#define ETH_LEN 6 #define ETH_LEN 6
#define MAC_VID 1 #define MAC_VID 1

View file

@ -3,6 +3,7 @@
* Copyright (c) 2018 Microsemi Corporation * Copyright (c) 2018 Microsemi Corporation
*/ */
#include <errno.h>
#include <log.h> #include <log.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/delay.h> #include <linux/delay.h>

View file

@ -3,8 +3,6 @@
* Copyright (c) 2018 Microsemi Corporation * Copyright (c) 2018 Microsemi Corporation
*/ */
#include <common.h>
enum mscc_regs_qs { enum mscc_regs_qs {
MSCC_QS_XTR_RD, MSCC_QS_XTR_RD,
MSCC_QS_XTR_FLUSH, MSCC_QS_XTR_FLUSH,

View file

@ -9,8 +9,6 @@
#ifndef _PCIE_LAYERSCAPE_FIXUP_COMMON_H_ #ifndef _PCIE_LAYERSCAPE_FIXUP_COMMON_H_
#define _PCIE_LAYERSCAPE_FIXUP_COMMON_H_ #define _PCIE_LAYERSCAPE_FIXUP_COMMON_H_
#include <common.h>
void ft_pci_setup_ls(void *blob, struct bd_info *bd); void ft_pci_setup_ls(void *blob, struct bd_info *bd);
#ifdef CONFIG_PCIE_LAYERSCAPE_GEN4 #ifdef CONFIG_PCIE_LAYERSCAPE_GEN4

View file

@ -11,7 +11,6 @@
#ifndef PCIE_CADENCE_H #ifndef PCIE_CADENCE_H
#define PCIE_CADENCE_H #define PCIE_CADENCE_H
#include <common.h>
#include <pci_ep.h> #include <pci_ep.h>
#include <asm/io.h> #include <asm/io.h>
#include <linux/bitops.h> #include <linux/bitops.h>

View file

@ -8,8 +8,6 @@
#ifndef _PINCTRL_MTMIPS_COMMON_H_ #ifndef _PINCTRL_MTMIPS_COMMON_H_
#define _PINCTRL_MTMIPS_COMMON_H_ #define _PINCTRL_MTMIPS_COMMON_H_
#include <common.h>
struct mtmips_pmx_func { struct mtmips_pmx_func {
const char *name; const char *name;
int value; int value;

View file

@ -6,8 +6,6 @@
#ifndef __BCM_UDC_OTG_H #ifndef __BCM_UDC_OTG_H
#define __BCM_UDC_OTG_H #define __BCM_UDC_OTG_H
#include <common.h>
static inline void wfld_set(uintptr_t addr, uint32_t fld_val, uint32_t fld_mask) static inline void wfld_set(uintptr_t addr, uint32_t fld_val, uint32_t fld_mask)
{ {
writel(((readl(addr) & ~(fld_mask)) | (fld_val)), (addr)); writel(((readl(addr) & ~(fld_mask)) | (fld_val)), (addr));

View file

@ -9,7 +9,6 @@
#ifndef __BTRFS_CTREE_H__ #ifndef __BTRFS_CTREE_H__
#define __BTRFS_CTREE_H__ #define __BTRFS_CTREE_H__
#include <common.h>
#include <compiler.h> #include <compiler.h>
#include <linux/rbtree.h> #include <linux/rbtree.h>
#include <linux/bug.h> #include <linux/bug.h>

View file

@ -20,7 +20,6 @@
#ifndef __YDIRECTENV_H__ #ifndef __YDIRECTENV_H__
#define __YDIRECTENV_H__ #define __YDIRECTENV_H__
#include <common.h>
#include <malloc.h> #include <malloc.h>
#include <linux/compat.h> #include <linux/compat.h>

View file

@ -19,7 +19,9 @@ extern "C" {
* like uint8_t, uint64_t, and bool (with |false|, |true| keywords) * like uint8_t, uint64_t, and bool (with |false|, |true| keywords)
* must be present. * must be present.
*/ */
#include <common.h> #include <stdio.h>
#include <stdbool.h>
#include <linux/types.h>
/* If you don't have gcc or clang, these attribute macros may need to /* If you don't have gcc or clang, these attribute macros may need to
* be adjusted. * be adjusted.

View file

@ -2,7 +2,6 @@
#ifndef __GLUE_ZLIB_H__ #ifndef __GLUE_ZLIB_H__
#define __GLUE_ZLIB_H__ #define __GLUE_ZLIB_H__
#include <common.h>
#include <linux/compiler.h> #include <linux/compiler.h>
#include <asm/unaligned.h> #include <asm/unaligned.h>
#include <watchdog.h> #include <watchdog.h>

View file

@ -12,8 +12,6 @@
#ifndef __ARP_H__ #ifndef __ARP_H__
#define __ARP_H__ #define __ARP_H__
#include <common.h>
extern struct in_addr net_arp_wait_packet_ip; extern struct in_addr net_arp_wait_packet_ip;
/* MAC address of waiting packet's destination */ /* MAC address of waiting packet's destination */
extern uchar *arp_wait_packet_ethaddr; extern uchar *arp_wait_packet_ethaddr;

View file

@ -10,15 +10,12 @@
* Licensed under the GPL v2 or later * Licensed under the GPL v2 or later
*/ */
#if defined(CONFIG_CMD_LINK_LOCAL)
#ifndef __LINK_LOCAL_H__ #ifndef __LINK_LOCAL_H__
#define __LINK_LOCAL_H__ #define __LINK_LOCAL_H__
#include <common.h> struct arp_hdr;
void link_local_receive_arp(struct arp_hdr *arp, int len); void link_local_receive_arp(struct arp_hdr *arp, int len);
void link_local_start(void); void link_local_start(void);
#endif /* __LINK_LOCAL_H__ */ #endif /* __LINK_LOCAL_H__ */
#endif

View file

@ -9,7 +9,6 @@
#ifndef __NET_RAND_H__ #ifndef __NET_RAND_H__
#define __NET_RAND_H__ #define __NET_RAND_H__
#include <common.h>
#include <dm/uclass.h> #include <dm/uclass.h>
#include <rng.h> #include <rng.h>

View file

@ -12,7 +12,6 @@
#ifndef __PING_H__ #ifndef __PING_H__
#define __PING_H__ #define __PING_H__
#include <common.h>
#include <net.h> #include <net.h>
/* /*