Commit e8011135 authored by Jens Taprogge's avatar Jens Taprogge Committed by Greg Kroah-Hartman

Staging: ipack: Make ipack_driver_ops const.

Signed-off-by: default avatarJens Taprogge <jens.taprogge@taprogge.org>
Signed-off-by: default avatarSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7db5e3cb
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#define IP_OCTAL_ID_SPACE_VECTOR 0x41 #define IP_OCTAL_ID_SPACE_VECTOR 0x41
#define IP_OCTAL_NB_BLOCKS 4 #define IP_OCTAL_NB_BLOCKS 4
static struct ipack_driver driver;
static const struct tty_operations ipoctal_fops; static const struct tty_operations ipoctal_fops;
struct ipoctal { struct ipoctal {
...@@ -846,15 +845,18 @@ static void ipoctal_remove(struct ipack_device *device) ...@@ -846,15 +845,18 @@ static void ipoctal_remove(struct ipack_device *device)
} }
} }
static struct ipack_driver_ops ipoctal_drv_ops = { static const struct ipack_driver_ops ipoctal_drv_ops = {
.match = ipoctal_match, .match = ipoctal_match,
.probe = ipoctal_probe, .probe = ipoctal_probe,
.remove = ipoctal_remove, .remove = ipoctal_remove,
}; };
static struct ipack_driver driver = {
.ops = &ipoctal_drv_ops,
};
static int __init ipoctal_init(void) static int __init ipoctal_init(void)
{ {
driver.ops = &ipoctal_drv_ops;
return ipack_driver_register(&driver, THIS_MODULE, KBUILD_MODNAME); return ipack_driver_register(&driver, THIS_MODULE, KBUILD_MODNAME);
} }
......
...@@ -104,7 +104,7 @@ struct ipack_driver_ops { ...@@ -104,7 +104,7 @@ struct ipack_driver_ops {
struct ipack_driver { struct ipack_driver {
struct device_driver driver; struct device_driver driver;
const struct ipack_device_id *id_table; const struct ipack_device_id *id_table;
struct ipack_driver_ops *ops; const struct ipack_driver_ops *ops;
}; };
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment