diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2013-02-10 00:27:38 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-02-11 00:02:17 -0500 |
commit | 9350393239153c4a98cbed4d69b9ed81e37d5e74 (patch) | |
tree | 180ddb2f2968721c52ed9b5917378aff00c7b7f6 /drivers/remoteproc | |
parent | 0d34cc2d6d904e2d0160e42734bccc1cb391cec0 (diff) |
virtio: make config_ops const
It is just a table of function pointers, make it const for cleanliness and security
reasons.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r-- | drivers/remoteproc/remoteproc_virtio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c index 9e198e590675..afed9b7731c4 100644 --- a/drivers/remoteproc/remoteproc_virtio.c +++ b/drivers/remoteproc/remoteproc_virtio.c | |||
@@ -222,7 +222,7 @@ static void rproc_virtio_finalize_features(struct virtio_device *vdev) | |||
222 | rvdev->gfeatures = vdev->features[0]; | 222 | rvdev->gfeatures = vdev->features[0]; |
223 | } | 223 | } |
224 | 224 | ||
225 | static struct virtio_config_ops rproc_virtio_config_ops = { | 225 | static const struct virtio_config_ops rproc_virtio_config_ops = { |
226 | .get_features = rproc_virtio_get_features, | 226 | .get_features = rproc_virtio_get_features, |
227 | .finalize_features = rproc_virtio_finalize_features, | 227 | .finalize_features = rproc_virtio_finalize_features, |
228 | .find_vqs = rproc_virtio_find_vqs, | 228 | .find_vqs = rproc_virtio_find_vqs, |