diff options
author | Philip J Kelleher <pjk1939@linux.vnet.ibm.com> | 2013-02-19 00:35:59 +0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-02-19 00:35:59 +0400 |
commit | c206c70924737db6836382c09ad2dacd04bb6204 (patch) | |
tree | 31a9ebc3e0998f19db1537d45617ad13363dcef5 /drivers/block/rsxx/config.c | |
parent | ec8edc764efa51e5acf9193a8846a5a99399ceb8 (diff) | |
download | linux-c206c70924737db6836382c09ad2dacd04bb6204.tar.xz |
block: IBM RamSan 70/80 driver fixes
This patch includes the following driver fixes for the
IBM RamSan 70/80 driver:
o Changed the creg_ctrl lock from a mutex to a spinlock.
o Added a count check for ioctl calls.
o Removed unnecessary casting of void pointers.
o Made every function static that needed to be.
o Added comments to explain things more thoroughly.
Signed-off-by: Philip J Kelleher <pjk1939@linux.vnet.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/rsxx/config.c')
-rw-r--r-- | drivers/block/rsxx/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/rsxx/config.c b/drivers/block/rsxx/config.c index c8829cd4db11..a295e7e9ee41 100644 --- a/drivers/block/rsxx/config.c +++ b/drivers/block/rsxx/config.c @@ -31,7 +31,7 @@ static void initialize_config(void *config) { - struct rsxx_card_cfg *cfg = (struct rsxx_card_cfg *) config; + struct rsxx_card_cfg *cfg = config; cfg->hdr.version = RSXX_CFG_VERSION; @@ -97,7 +97,7 @@ static void config_data_cpu_to_le(struct rsxx_card_cfg *cfg) /*----------------- Config Operations ------------------*/ -int rsxx_save_config(struct rsxx_cardinfo *card) +static int rsxx_save_config(struct rsxx_cardinfo *card) { struct rsxx_card_cfg cfg; int st; |