提交 7dd73b86 编写于 作者: J Jens Taprogge 提交者: Greg Kroah-Hartman

staging: ipack/bridges/tpci200: Use endianess-aware types where applicable.

Signed-off-by: NJens Taprogge <jens.taprogge@taprogge.org>
Signed-off-by: NSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 6f892216
...@@ -501,7 +501,7 @@ static int tpci200_slot_map_space(struct ipack_device *dev, ...@@ -501,7 +501,7 @@ static int tpci200_slot_map_space(struct ipack_device *dev,
static int tpci200_get_clockrate(struct ipack_device *dev) static int tpci200_get_clockrate(struct ipack_device *dev)
{ {
struct tpci200_board *tpci200 = check_slot(dev); struct tpci200_board *tpci200 = check_slot(dev);
u16 __iomem *addr; __le16 __iomem *addr;
if (!tpci200) if (!tpci200)
return -ENODEV; return -ENODEV;
...@@ -513,7 +513,7 @@ static int tpci200_get_clockrate(struct ipack_device *dev) ...@@ -513,7 +513,7 @@ static int tpci200_get_clockrate(struct ipack_device *dev)
static int tpci200_set_clockrate(struct ipack_device *dev, int mherz) static int tpci200_set_clockrate(struct ipack_device *dev, int mherz)
{ {
struct tpci200_board *tpci200 = check_slot(dev); struct tpci200_board *tpci200 = check_slot(dev);
u16 __iomem *addr; __le16 __iomem *addr;
if (!tpci200) if (!tpci200)
return -ENODEV; return -ENODEV;
...@@ -536,7 +536,7 @@ static int tpci200_set_clockrate(struct ipack_device *dev, int mherz) ...@@ -536,7 +536,7 @@ static int tpci200_set_clockrate(struct ipack_device *dev, int mherz)
static int tpci200_get_error(struct ipack_device *dev) static int tpci200_get_error(struct ipack_device *dev)
{ {
struct tpci200_board *tpci200 = check_slot(dev); struct tpci200_board *tpci200 = check_slot(dev);
u16 __iomem *addr; __le16 __iomem *addr;
u16 mask; u16 mask;
if (!tpci200) if (!tpci200)
...@@ -550,7 +550,7 @@ static int tpci200_get_error(struct ipack_device *dev) ...@@ -550,7 +550,7 @@ static int tpci200_get_error(struct ipack_device *dev)
static int tpci200_get_timeout(struct ipack_device *dev) static int tpci200_get_timeout(struct ipack_device *dev)
{ {
struct tpci200_board *tpci200 = check_slot(dev); struct tpci200_board *tpci200 = check_slot(dev);
u16 __iomem *addr; __le16 __iomem *addr;
u16 mask; u16 mask;
if (!tpci200) if (!tpci200)
...@@ -565,7 +565,7 @@ static int tpci200_get_timeout(struct ipack_device *dev) ...@@ -565,7 +565,7 @@ static int tpci200_get_timeout(struct ipack_device *dev)
static int tpci200_reset_timeout(struct ipack_device *dev) static int tpci200_reset_timeout(struct ipack_device *dev)
{ {
struct tpci200_board *tpci200 = check_slot(dev); struct tpci200_board *tpci200 = check_slot(dev);
u16 __iomem *addr; __le16 __iomem *addr;
u16 mask; u16 mask;
if (!tpci200) if (!tpci200)
......
...@@ -37,12 +37,12 @@ ...@@ -37,12 +37,12 @@
#define TPCI200_MEM8_SPACE_BAR 5 #define TPCI200_MEM8_SPACE_BAR 5
struct tpci200_regs { struct tpci200_regs {
u16 revision; __le16 revision;
/* writes to control should occur with the mutex held to protect /* writes to control should occur with the mutex held to protect
* read-modify-write operations */ * read-modify-write operations */
u16 control[4]; __le16 control[4];
u16 reset; __le16 reset;
u16 status; __le16 status;
u8 reserved[242]; u8 reserved[242];
} __packed; } __packed;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册