aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@steeleye.com>2006-07-28 18:36:46 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-08-02 10:53:18 -0400
commitd67a70aca200f67be42428e74eb3353f20ad1130 (patch)
tree863562f74854295bfdf60eb26375ff984d8a2d4d /drivers
parent43d6b68dc38867e489995e21649bb82f6ee7b5d3 (diff)
[SCSI] arcmsr: fix up sysfs values
The sysfs files in arcmsr are non-standard in that they aren't simple filename value pairs, the values actually contain preceeding text which would have to be parsed. The idea of sysfs files is that the file name is the description and the contents is a simple value. Fix up arcmsr to conform to this standard. Acked-By: Erich Chen <erich@areca.com.tw> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/arcmsr/arcmsr_attr.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/scsi/arcmsr/arcmsr_attr.c b/drivers/scsi/arcmsr/arcmsr_attr.c
index c96f7140cb62..12497da5529d 100644
--- a/drivers/scsi/arcmsr/arcmsr_attr.c
+++ b/drivers/scsi/arcmsr/arcmsr_attr.c
@@ -265,7 +265,7 @@ arcmsr_free_sysfs_attr(struct AdapterControlBlock *acb) {
265static ssize_t 265static ssize_t
266arcmsr_attr_host_driver_version(struct class_device *cdev, char *buf) { 266arcmsr_attr_host_driver_version(struct class_device *cdev, char *buf) {
267 return snprintf(buf, PAGE_SIZE, 267 return snprintf(buf, PAGE_SIZE,
268 "ARCMSR: %s\n", 268 "%s\n",
269 ARCMSR_DRIVER_VERSION); 269 ARCMSR_DRIVER_VERSION);
270} 270}
271 271
@@ -274,7 +274,7 @@ arcmsr_attr_host_driver_posted_cmd(struct class_device *cdev, char *buf) {
274 struct Scsi_Host *host = class_to_shost(cdev); 274 struct Scsi_Host *host = class_to_shost(cdev);
275 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 275 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
276 return snprintf(buf, PAGE_SIZE, 276 return snprintf(buf, PAGE_SIZE,
277 "Current commands posted: %4d\n", 277 "%4d\n",
278 atomic_read(&acb->ccboutstandingcount)); 278 atomic_read(&acb->ccboutstandingcount));
279} 279}
280 280
@@ -283,7 +283,7 @@ arcmsr_attr_host_driver_reset(struct class_device *cdev, char *buf) {
283 struct Scsi_Host *host = class_to_shost(cdev); 283 struct Scsi_Host *host = class_to_shost(cdev);
284 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 284 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
285 return snprintf(buf, PAGE_SIZE, 285 return snprintf(buf, PAGE_SIZE,
286 "SCSI Host Resets: %4d\n", 286 "%4d\n",
287 acb->num_resets); 287 acb->num_resets);
288} 288}
289 289
@@ -292,7 +292,7 @@ arcmsr_attr_host_driver_abort(struct class_device *cdev, char *buf) {
292 struct Scsi_Host *host = class_to_shost(cdev); 292 struct Scsi_Host *host = class_to_shost(cdev);
293 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 293 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
294 return snprintf(buf, PAGE_SIZE, 294 return snprintf(buf, PAGE_SIZE,
295 "SCSI Aborts/Timeouts: %4d\n", 295 "%4d\n",
296 acb->num_aborts); 296 acb->num_aborts);
297} 297}
298 298
@@ -301,7 +301,7 @@ arcmsr_attr_host_fw_model(struct class_device *cdev, char *buf) {
301 struct Scsi_Host *host = class_to_shost(cdev); 301 struct Scsi_Host *host = class_to_shost(cdev);
302 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 302 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
303 return snprintf(buf, PAGE_SIZE, 303 return snprintf(buf, PAGE_SIZE,
304 "Adapter Model: %s\n", 304 "%s\n",
305 acb->firm_model); 305 acb->firm_model);
306} 306}
307 307
@@ -311,7 +311,7 @@ arcmsr_attr_host_fw_version(struct class_device *cdev, char *buf) {
311 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 311 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
312 312
313 return snprintf(buf, PAGE_SIZE, 313 return snprintf(buf, PAGE_SIZE,
314 "Firmware Version: %s\n", 314 "%s\n",
315 acb->firm_version); 315 acb->firm_version);
316} 316}
317 317
@@ -321,7 +321,7 @@ arcmsr_attr_host_fw_request_len(struct class_device *cdev, char *buf) {
321 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 321 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
322 322
323 return snprintf(buf, PAGE_SIZE, 323 return snprintf(buf, PAGE_SIZE,
324 "Reguest Lenth: %4d\n", 324 "%4d\n",
325 acb->firm_request_len); 325 acb->firm_request_len);
326} 326}
327 327
@@ -331,7 +331,7 @@ arcmsr_attr_host_fw_numbers_queue(struct class_device *cdev, char *buf) {
331 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 331 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
332 332
333 return snprintf(buf, PAGE_SIZE, 333 return snprintf(buf, PAGE_SIZE,
334 "Numbers of Queue: %4d\n", 334 "%4d\n",
335 acb->firm_numbers_queue); 335 acb->firm_numbers_queue);
336} 336}
337 337
@@ -341,7 +341,7 @@ arcmsr_attr_host_fw_sdram_size(struct class_device *cdev, char *buf) {
341 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 341 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
342 342
343 return snprintf(buf, PAGE_SIZE, 343 return snprintf(buf, PAGE_SIZE,
344 "SDRAM Size: %4d\n", 344 "%4d\n",
345 acb->firm_sdram_size); 345 acb->firm_sdram_size);
346} 346}
347 347
@@ -351,7 +351,7 @@ arcmsr_attr_host_fw_hd_channels(struct class_device *cdev, char *buf) {
351 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; 351 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata;
352 352
353 return snprintf(buf, PAGE_SIZE, 353 return snprintf(buf, PAGE_SIZE,
354 "Hard Disk Channels: %4d\n", 354 "%4d\n",
355 acb->firm_hd_channels); 355 acb->firm_hd_channels);
356} 356}
357 357