Skip to content

Commit

Permalink
i2c-au1550: remove usage of volatile keyword
Browse files Browse the repository at this point in the history
Replace the usage of "volatile"s with register accessor functions.

Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
  • Loading branch information
Manuel Lauss authored and Ben Dooks committed Oct 29, 2011
1 parent 1fdb24e commit c5de646
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 166 deletions.
13 changes: 0 additions & 13 deletions arch/mips/include/asm/mach-au1x00/au1xxx_psc.h
Original file line number Diff line number Diff line change
Expand Up @@ -394,19 +394,6 @@ typedef struct psc_spi {
#define PSC_SPITXRX_LC (1 << 29)
#define PSC_SPITXRX_SR (1 << 28)

/* PSC in SMBus (I2C) Mode. */
typedef struct psc_smb {
u32 psc_sel;
u32 psc_ctrl;
u32 psc_smbcfg;
u32 psc_smbmsk;
u32 psc_smbpcr;
u32 psc_smbstat;
u32 psc_smbevnt;
u32 psc_smbtxrx;
u32 psc_smbtmr;
} psc_smb_t;

/* SMBus Config Register. */
#define PSC_SMBCFG_RT_MASK (3 << 30)
#define PSC_SMBCFG_RT_FIFO1 (0 << 30)
Expand Down
Loading

0 comments on commit c5de646

Please sign in to comment.