Skip to content

Commit

Permalink
staging: ipack/bridges/tpci200: Use endianess-aware types where appli…
Browse files Browse the repository at this point in the history
…cable.

Signed-off-by: Jens Taprogge <jens.taprogge@taprogge.org>
Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jens Taprogge authored and Greg Kroah-Hartman committed Sep 12, 2012
1 parent 6f89221 commit 7dd73b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions drivers/staging/ipack/bridges/tpci200.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ static int tpci200_slot_map_space(struct ipack_device *dev,
static int tpci200_get_clockrate(struct ipack_device *dev)
{
struct tpci200_board *tpci200 = check_slot(dev);
u16 __iomem *addr;
__le16 __iomem *addr;

if (!tpci200)
return -ENODEV;
Expand All @@ -513,7 +513,7 @@ static int tpci200_get_clockrate(struct ipack_device *dev)
static int tpci200_set_clockrate(struct ipack_device *dev, int mherz)
{
struct tpci200_board *tpci200 = check_slot(dev);
u16 __iomem *addr;
__le16 __iomem *addr;

if (!tpci200)
return -ENODEV;
Expand All @@ -536,7 +536,7 @@ static int tpci200_set_clockrate(struct ipack_device *dev, int mherz)
static int tpci200_get_error(struct ipack_device *dev)
{
struct tpci200_board *tpci200 = check_slot(dev);
u16 __iomem *addr;
__le16 __iomem *addr;
u16 mask;

if (!tpci200)
Expand All @@ -550,7 +550,7 @@ static int tpci200_get_error(struct ipack_device *dev)
static int tpci200_get_timeout(struct ipack_device *dev)
{
struct tpci200_board *tpci200 = check_slot(dev);
u16 __iomem *addr;
__le16 __iomem *addr;
u16 mask;

if (!tpci200)
Expand All @@ -565,7 +565,7 @@ static int tpci200_get_timeout(struct ipack_device *dev)
static int tpci200_reset_timeout(struct ipack_device *dev)
{
struct tpci200_board *tpci200 = check_slot(dev);
u16 __iomem *addr;
__le16 __iomem *addr;
u16 mask;

if (!tpci200)
Expand Down
8 changes: 4 additions & 4 deletions drivers/staging/ipack/bridges/tpci200.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
#define TPCI200_MEM8_SPACE_BAR 5

struct tpci200_regs {
u16 revision;
__le16 revision;
/* writes to control should occur with the mutex held to protect
* read-modify-write operations */
u16 control[4];
u16 reset;
u16 status;
__le16 control[4];
__le16 reset;
__le16 status;
u8 reserved[242];
} __packed;

Expand Down

0 comments on commit 7dd73b8

Please sign in to comment.