scsi: esp_scsi: use strong typing for the dev field
authorChristoph Hellwig <hch@lst.de>
Sat, 13 Oct 2018 07:26:25 +0000 (09:26 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Oct 2018 03:00:38 +0000 (23:00 -0400)
commit98cda6a2e0d46507c084bf1488f5627b9e487a2a
treecd5ea59e0f8d5e9549e48b19161e3f6167bd7031
parent10c0cd38ce4cd2015a683e296596738adab9221f
scsi: esp_scsi: use strong typing for the dev field

esp->dev is a void pointer that points either to a struct device, or a
struct platform_device.  As we can easily get from the device to the
platform_device if needed change it to always point to a struct device
and properly type the pointer to avoid errors.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/esp_scsi.h
drivers/scsi/mac_esp.c
drivers/scsi/sun_esp.c