mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
scsi: esp_scsi: Declare SCSI host template const
Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20230322195515.1267197-35-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
1f4e77dbcb
commit
3b465a1491
@ -371,7 +371,7 @@ static void dc390_check_eeprom(struct esp *esp)
|
||||
static int pci_esp_probe_one(struct pci_dev *pdev,
|
||||
const struct pci_device_id *id)
|
||||
{
|
||||
struct scsi_host_template *hostt = &scsi_esp_template;
|
||||
const struct scsi_host_template *hostt = &scsi_esp_template;
|
||||
int err = -ENODEV;
|
||||
struct Scsi_Host *shost;
|
||||
struct esp *esp;
|
||||
|
@ -2660,7 +2660,7 @@ static const char *esp_info(struct Scsi_Host *host)
|
||||
return "esp";
|
||||
}
|
||||
|
||||
struct scsi_host_template scsi_esp_template = {
|
||||
const struct scsi_host_template scsi_esp_template = {
|
||||
.module = THIS_MODULE,
|
||||
.name = "esp",
|
||||
.info = esp_info,
|
||||
|
@ -572,7 +572,7 @@ struct esp {
|
||||
* 13) Check scsi_esp_register() return value, release all resources
|
||||
* if an error was returned.
|
||||
*/
|
||||
extern struct scsi_host_template scsi_esp_template;
|
||||
extern const struct scsi_host_template scsi_esp_template;
|
||||
extern int scsi_esp_register(struct esp *);
|
||||
|
||||
extern void scsi_esp_unregister(struct esp *);
|
||||
|
@ -104,7 +104,7 @@ static const struct esp_driver_ops jazz_esp_ops = {
|
||||
|
||||
static int esp_jazz_probe(struct platform_device *dev)
|
||||
{
|
||||
struct scsi_host_template *tpnt = &scsi_esp_template;
|
||||
const struct scsi_host_template *tpnt = &scsi_esp_template;
|
||||
struct Scsi_Host *host;
|
||||
struct esp *esp;
|
||||
struct resource *res;
|
||||
|
@ -289,7 +289,7 @@ static struct esp_driver_ops mac_esp_ops = {
|
||||
|
||||
static int esp_mac_probe(struct platform_device *dev)
|
||||
{
|
||||
struct scsi_host_template *tpnt = &scsi_esp_template;
|
||||
const struct scsi_host_template *tpnt = &scsi_esp_template;
|
||||
struct Scsi_Host *host;
|
||||
struct esp *esp;
|
||||
int err;
|
||||
|
@ -169,7 +169,7 @@ static const struct esp_driver_ops sun3x_esp_ops = {
|
||||
|
||||
static int esp_sun3x_probe(struct platform_device *dev)
|
||||
{
|
||||
struct scsi_host_template *tpnt = &scsi_esp_template;
|
||||
const struct scsi_host_template *tpnt = &scsi_esp_template;
|
||||
struct Scsi_Host *host;
|
||||
struct esp *esp;
|
||||
struct resource *res;
|
||||
|
@ -451,7 +451,7 @@ static const struct esp_driver_ops sbus_esp_ops = {
|
||||
static int esp_sbus_probe_one(struct platform_device *op,
|
||||
struct platform_device *espdma, int hme)
|
||||
{
|
||||
struct scsi_host_template *tpnt = &scsi_esp_template;
|
||||
const struct scsi_host_template *tpnt = &scsi_esp_template;
|
||||
struct Scsi_Host *host;
|
||||
struct esp *esp;
|
||||
int err;
|
||||
|
@ -713,7 +713,7 @@ MODULE_DEVICE_TABLE(zorro, zorro_esp_zorro_tbl);
|
||||
static int zorro_esp_probe(struct zorro_dev *z,
|
||||
const struct zorro_device_id *ent)
|
||||
{
|
||||
struct scsi_host_template *tpnt = &scsi_esp_template;
|
||||
const struct scsi_host_template *tpnt = &scsi_esp_template;
|
||||
struct Scsi_Host *host;
|
||||
struct esp *esp;
|
||||
const struct zorro_driver_data *zdd;
|
||||
|
Loading…
Reference in New Issue
Block a user