mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
[SCSI] ch: remove forward declarations
This moves ch_template and changer_fops structs to the end of file and removes forward declarations. This also removes some trailing whitespace. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
da707c54c3
commit
5aa22af3d0
1 changed files with 54 additions and 66 deletions
|
@ -90,16 +90,6 @@ static const char * vendor_labels[CH_TYPES-4] = {
|
||||||
|
|
||||||
#define MAX_RETRIES 1
|
#define MAX_RETRIES 1
|
||||||
|
|
||||||
static int ch_probe(struct device *);
|
|
||||||
static int ch_remove(struct device *);
|
|
||||||
static int ch_open(struct inode * inode, struct file * filp);
|
|
||||||
static int ch_release(struct inode * inode, struct file * filp);
|
|
||||||
static long ch_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
|
|
||||||
#ifdef CONFIG_COMPAT
|
|
||||||
static long ch_ioctl_compat(struct file * filp,
|
|
||||||
unsigned int cmd, unsigned long arg);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static struct class * ch_sysfs_class;
|
static struct class * ch_sysfs_class;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -118,27 +108,6 @@ typedef struct {
|
||||||
static DEFINE_IDR(ch_index_idr);
|
static DEFINE_IDR(ch_index_idr);
|
||||||
static DEFINE_SPINLOCK(ch_index_lock);
|
static DEFINE_SPINLOCK(ch_index_lock);
|
||||||
|
|
||||||
static struct scsi_driver ch_template =
|
|
||||||
{
|
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.gendrv = {
|
|
||||||
.name = "ch",
|
|
||||||
.probe = ch_probe,
|
|
||||||
.remove = ch_remove,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
static const struct file_operations changer_fops =
|
|
||||||
{
|
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.open = ch_open,
|
|
||||||
.release = ch_release,
|
|
||||||
.unlocked_ioctl = ch_ioctl,
|
|
||||||
#ifdef CONFIG_COMPAT
|
|
||||||
.compat_ioctl = ch_ioctl_compat,
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
|
|
||||||
static const struct {
|
static const struct {
|
||||||
unsigned char sense;
|
unsigned char sense;
|
||||||
unsigned char asc;
|
unsigned char asc;
|
||||||
|
@ -982,6 +951,25 @@ static int ch_remove(struct device *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static struct scsi_driver ch_template = {
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.gendrv = {
|
||||||
|
.name = "ch",
|
||||||
|
.probe = ch_probe,
|
||||||
|
.remove = ch_remove,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct file_operations changer_fops = {
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.open = ch_open,
|
||||||
|
.release = ch_release,
|
||||||
|
.unlocked_ioctl = ch_ioctl,
|
||||||
|
#ifdef CONFIG_COMPAT
|
||||||
|
.compat_ioctl = ch_ioctl_compat,
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
static int __init init_ch_module(void)
|
static int __init init_ch_module(void)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
|
|
Loading…
Add table
Reference in a new issue