Skip to content

Commit 2e1973a

Browse files
shadowconnectLinus Torvalds
authored andcommitted
[PATCH] I2O: Beautifying
Fix some typos and minor code beautifying. Signed-off-by: Markus Lidel <Markus.Lidel@shadowconnect.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent dcceafe commit 2e1973a

9 files changed

Lines changed: 20 additions & 26 deletions

File tree

‎drivers/message/i2o/bus-osm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <linux/i2o.h>
1818

1919
#define OSM_NAME "bus-osm"
20-
#define OSM_VERSION "$Rev$"
20+
#define OSM_VERSION "1.317"
2121
#define OSM_DESCRIPTION "I2O Bus Adapter OSM"
2222

2323
static struct i2o_driver i2o_bus_driver;

‎drivers/message/i2o/config-osm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <asm/uaccess.h>
2323

2424
#define OSM_NAME "config-osm"
25-
#define OSM_VERSION "1.248"
25+
#define OSM_VERSION "1.317"
2626
#define OSM_DESCRIPTION "I2O Configuration OSM"
2727

2828
/* access mode user rw */

‎drivers/message/i2o/core.h‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
*/
1515

1616
/* Exec-OSM */
17-
extern struct bus_type i2o_bus_type;
18-
1917
extern struct i2o_driver i2o_exec_driver;
2018
extern int i2o_exec_lct_get(struct i2o_controller *);
2119

2220
extern int __init i2o_exec_init(void);
2321
extern void __exit i2o_exec_exit(void);
2422

2523
/* driver */
24+
extern struct bus_type i2o_bus_type;
25+
2626
extern int i2o_driver_dispatch(struct i2o_controller *, u32);
2727

2828
extern int __init i2o_driver_init(void);
@@ -45,9 +45,6 @@ extern void i2o_iop_free(struct i2o_controller *);
4545
extern int i2o_iop_add(struct i2o_controller *);
4646
extern void i2o_iop_remove(struct i2o_controller *);
4747

48-
/* config */
49-
extern int i2o_parm_issue(struct i2o_device *, int, void *, int, void *, int);
50-
5148
/* control registers relative to c->base */
5249
#define I2O_IRQ_STATUS 0x30
5350
#define I2O_IRQ_MASK 0x34

‎drivers/message/i2o/device.c‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ static ssize_t i2o_device_show_tid(struct device *dev,
176176
return strlen(buf) + 1;
177177
}
178178

179+
/* I2O device attributes */
179180
struct device_attribute i2o_device_attrs[] = {
180181
__ATTR(class_id, S_IRUGO, i2o_device_show_class_id, NULL),
181182
__ATTR(tid, S_IRUGO, i2o_device_show_tid, NULL),
@@ -505,12 +506,12 @@ int i2o_parm_field_get(struct i2o_device *i2o_dev, int group, int field,
505506
* else return specific fields
506507
* ibuf contains fieldindexes
507508
*
508-
* if oper == I2O_PARAMS_LIST_GET, get from specific rows
509-
* if fieldcount == -1 return all fields
509+
* if oper == I2O_PARAMS_LIST_GET, get from specific rows
510+
* if fieldcount == -1 return all fields
510511
* ibuf contains rowcount, keyvalues
511-
* else return specific fields
512+
* else return specific fields
512513
* fieldcount is # of fieldindexes
513-
* ibuf contains fieldindexes, rowcount, keyvalues
514+
* ibuf contains fieldindexes, rowcount, keyvalues
514515
*
515516
* You could also use directly function i2o_issue_params().
516517
*/

‎drivers/message/i2o/driver.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static int i2o_bus_match(struct device *dev, struct device_driver *drv)
6464
struct bus_type i2o_bus_type = {
6565
.name = "i2o",
6666
.match = i2o_bus_match,
67-
.dev_attrs = i2o_device_attrs,
67+
.dev_attrs = i2o_device_attrs
6868
};
6969

7070
/**

‎drivers/message/i2o/i2o_block.c‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@
5959
#include <linux/blkdev.h>
6060
#include <linux/hdreg.h>
6161

62+
#include <scsi/scsi.h>
63+
6264
#include "i2o_block.h"
6365

6466
#define OSM_NAME "block-osm"
65-
#define OSM_VERSION "1.287"
67+
#define OSM_VERSION "1.316"
6668
#define OSM_DESCRIPTION "I2O Block Device OSM"
6769

6870
static struct i2o_driver i2o_block_driver;
@@ -845,10 +847,10 @@ static int i2o_block_transfer(struct request *req)
845847
* RETURN_SENSE_DATA_IN_REPLY_MESSAGE_FRAME
846848
*/
847849
if (rq_data_dir(req) == READ) {
848-
cmd[0] = 0x28;
850+
cmd[0] = READ_10;
849851
scsi_flags = 0x60a0000a;
850852
} else {
851-
cmd[0] = 0x2A;
853+
cmd[0] = WRITE_10;
852854
scsi_flags = 0xa0a0000a;
853855
}
854856

‎drivers/message/i2o/i2o_proc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*/
2929

3030
#define OSM_NAME "proc-osm"
31-
#define OSM_VERSION "1.145"
31+
#define OSM_VERSION "1.316"
3232
#define OSM_DESCRIPTION "I2O ProcFS OSM"
3333

3434
#define I2O_MAX_MODULES 4

‎drivers/message/i2o/i2o_scsi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
#include <scsi/sg_request.h>
7171

7272
#define OSM_NAME "scsi-osm"
73-
#define OSM_VERSION "1.282"
73+
#define OSM_VERSION "1.316"
7474
#define OSM_DESCRIPTION "I2O SCSI Peripheral OSM"
7575

7676
static struct i2o_driver i2o_scsi_driver;

‎drivers/message/i2o/iop.c‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include "core.h"
3333

3434
#define OSM_NAME "i2o"
35-
#define OSM_VERSION "1.288"
35+
#define OSM_VERSION "1.316"
3636
#define OSM_DESCRIPTION "I2O subsystem"
3737

3838
/* global I2O controller list */
@@ -730,10 +730,6 @@ static int i2o_iop_systab_set(struct i2o_controller *c)
730730
* Provide three SGL-elements:
731731
* System table (SysTab), Private memory space declaration and
732732
* Private i/o space declaration
733-
*
734-
* FIXME: is this still true?
735-
* Nasty one here. We can't use dma_alloc_coherent to send the
736-
* same table to everyone. We have to go remap it for them all
737733
*/
738734

739735
msg->body[0] = cpu_to_le32(c->unit + 2);
@@ -756,8 +752,6 @@ static int i2o_iop_systab_set(struct i2o_controller *c)
756752
else
757753
osm_debug("%s: SysTab set.\n", c->name);
758754

759-
i2o_status_get(c); // Entered READY state
760-
761755
return rc;
762756
}
763757

@@ -767,7 +761,7 @@ static int i2o_iop_systab_set(struct i2o_controller *c)
767761
*
768762
* Send the system table and enable the I2O controller.
769763
*
770-
* Returns 0 on success or negativer error code on failure.
764+
* Returns 0 on success or negative error code on failure.
771765
*/
772766
static int i2o_iop_online(struct i2o_controller *c)
773767
{
@@ -977,7 +971,7 @@ int i2o_status_get(struct i2o_controller *c)
977971
* The HRT contains information about possible hidden devices but is
978972
* mostly useless to us.
979973
*
980-
* Returns 0 on success or negativer error code on failure.
974+
* Returns 0 on success or negative error code on failure.
981975
*/
982976
static int i2o_hrt_get(struct i2o_controller *c)
983977
{

0 commit comments

Comments
 (0)