diff options
author | Philip J Kelleher <pjk1939@linux.vnet.ibm.com> | 2013-02-18 15:35:59 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-02-18 15:35:59 -0500 |
commit | c206c70924737db6836382c09ad2dacd04bb6204 (patch) | |
tree | 31a9ebc3e0998f19db1537d45617ad13363dcef5 /drivers/block/rsxx/config.c | |
parent | ec8edc764efa51e5acf9193a8846a5a99399ceb8 (diff) |
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 @@ | |||
31 | 31 | ||
32 | static void initialize_config(void *config) | 32 | static void initialize_config(void *config) |
33 | { | 33 | { |
34 | struct rsxx_card_cfg *cfg = (struct rsxx_card_cfg *) config; | 34 | struct rsxx_card_cfg *cfg = config; |
35 | 35 | ||
36 | cfg->hdr.version = RSXX_CFG_VERSION; | 36 | cfg->hdr.version = RSXX_CFG_VERSION; |
37 | 37 | ||
@@ -97,7 +97,7 @@ static void config_data_cpu_to_le(struct rsxx_card_cfg *cfg) | |||
97 | 97 | ||
98 | 98 | ||
99 | /*----------------- Config Operations ------------------*/ | 99 | /*----------------- Config Operations ------------------*/ |
100 | int rsxx_save_config(struct rsxx_cardinfo *card) | 100 | static int rsxx_save_config(struct rsxx_cardinfo *card) |
101 | { | 101 | { |
102 | struct rsxx_card_cfg cfg; | 102 | struct rsxx_card_cfg cfg; |
103 | int st; | 103 | int st; |