From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Driver Core fixes for 2.6.0-test3
Date: Fri, 15 Aug 2003 11:25:49 -0700 [thread overview]
Message-ID: <10609719492406@kroah.com> (raw)
In-Reply-To: <10609719494170@kroah.com>
ChangeSet 1.1152.2.6, 2003/08/15 10:08:00-07:00, greg@kroah.com
Remove usage of struct device.name from scsi core
drivers/scsi/scsi_debug.c | 2 --
drivers/scsi/scsi_scan.c | 20 --------------------
drivers/scsi/scsi_sysfs.c | 2 --
3 files changed, 24 deletions(-)
diff -Nru a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
--- a/drivers/scsi/scsi_debug.c Fri Aug 15 11:15:52 2003
+++ b/drivers/scsi/scsi_debug.c Fri Aug 15 11:15:52 2003
@@ -1566,7 +1566,6 @@
module_exit(scsi_debug_exit);
static struct device pseudo_primary = {
- .name = "Host/Pseudo Bridge",
.bus_id = "pseudo_0",
};
@@ -1630,7 +1629,6 @@
sdbg_host->dev.bus = &pseudo_lld_bus;
sdbg_host->dev.parent = &pseudo_primary;
sdbg_host->dev.release = &sdebug_release_adapter;
- sprintf(sdbg_host->dev.name, "scsi debug adapter");
sprintf(sdbg_host->dev.bus_id, "adapter%d", scsi_debug_add_host);
error = device_register(&sdbg_host->dev);
diff -Nru a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
--- a/drivers/scsi/scsi_scan.c Fri Aug 15 11:15:52 2003
+++ b/drivers/scsi/scsi_scan.c Fri Aug 15 11:15:52 2003
@@ -447,24 +447,6 @@
return;
}
-static void scsi_set_name(struct scsi_device *sdev, char *inq_result)
-{
- int i;
- char type[72];
-
- i = inq_result[0] & 0x1f;
- if (i < MAX_SCSI_DEVICE_CODE)
- strcpy(type, scsi_device_types[i]);
- else
- strcpy(type, "Unknown");
-
- i = strlen(type) - 1;
- while (i >= 0 && type[i] == ' ')
- type[i--] = '\0';
-
- snprintf(sdev->sdev_gendev.name, DEVICE_NAME_SIZE, "SCSI %s", type);
-}
-
/**
* scsi_add_lun - allocate and fully initialze a Scsi_Device
* @sdevscan: holds information to be stored in the new Scsi_Device
@@ -538,8 +520,6 @@
default:
printk(KERN_INFO "scsi: unknown device type %d\n", sdev->type);
}
-
- scsi_set_name(sdev, inq_result);
print_inquiry(inq_result);
diff -Nru a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c
--- a/drivers/scsi/scsi_sysfs.c Fri Aug 15 11:15:52 2003
+++ b/drivers/scsi/scsi_sysfs.c Fri Aug 15 11:15:52 2003
@@ -408,8 +408,6 @@
device_initialize(&shost->shost_gendev);
snprintf(shost->shost_gendev.bus_id, BUS_ID_SIZE, "host%d",
shost->host_no);
- snprintf(shost->shost_gendev.name, DEVICE_NAME_SIZE, "%s",
- shost->hostt->proc_name);
shost->shost_gendev.release = scsi_host_dev_release;
class_device_initialize(&shost->shost_classdev);
next prev parent reply other threads:[~2003-08-15 18:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-15 18:25 [BK PATCH] Driver Core fixes for 2.6.0-test3 Greg KH
2003-08-15 18:25 ` [PATCH] " Greg KH
2003-08-15 18:25 ` Greg KH
2003-08-15 18:25 ` Greg KH
2003-08-15 18:25 ` Greg KH
2003-08-15 18:25 ` Greg KH
2003-08-15 18:25 ` Greg KH [this message]
2003-08-15 18:25 ` Greg KH
[not found] ` <20030815215459.Y639@nightmaster.csn.tu-chemnitz.de>
2003-08-16 3:28 ` [BK PATCH] " Greg KH
2003-08-16 11:09 ` Ingo Oeser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10609719492406@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.