Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305615
b: refs/heads/master
c: ae5d8af
h: refs/heads/master
i:
  305613: 1ef4351
  305611: 1b2c748
  305607: 243475c
  305599: 8b334ef
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Apr 13, 2012
1 parent 12b5cb3 commit 920d43d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ecb44aec86f0a5e37142a971815f91e065645986
refs/heads/master: ae5d8af579354fb8e984735de9b4b6e9ad6fecb8
16 changes: 8 additions & 8 deletions trunk/drivers/base/regmap/regmap-mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ static int regmap_mmio_gather_write(void *context,
struct regmap_mmio_context *ctx = context;
u32 offset;

if (reg_size != 4)
return -EIO;
BUG_ON(reg_size != 4);

if (val_size % ctx->val_bytes)
return -EIO;

Expand All @@ -60,7 +60,7 @@ static int regmap_mmio_gather_write(void *context,
#endif
default:
/* Should be caught by regmap_mmio_check_config */
return -EIO;
BUG();
}
val_size -= ctx->val_bytes;
val += ctx->val_bytes;
Expand All @@ -72,8 +72,8 @@ static int regmap_mmio_gather_write(void *context,

static int regmap_mmio_write(void *context, const void *data, size_t count)
{
if (count < 4)
return -EIO;
BUG_ON(count < 4);

return regmap_mmio_gather_write(context, data, 4, data + 4, count - 4);
}

Expand All @@ -84,8 +84,8 @@ static int regmap_mmio_read(void *context,
struct regmap_mmio_context *ctx = context;
u32 offset;

if (reg_size != 4)
return -EIO;
BUG_ON(reg_size != 4);

if (val_size % ctx->val_bytes)
return -EIO;

Expand All @@ -109,7 +109,7 @@ static int regmap_mmio_read(void *context,
#endif
default:
/* Should be caught by regmap_mmio_check_config */
return -EIO;
BUG();
}
val_size -= ctx->val_bytes;
val += ctx->val_bytes;
Expand Down

0 comments on commit 920d43d

Please sign in to comment.