2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 01:04:08 +08:00

vfio: platform: constify amba_id

amba_id are not supposed to change at runtime. All functions
working with const amba_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
Arvind Yadav 2017-08-23 22:47:15 +05:30 committed by Alex Williamson
parent 6586b561a9
commit 417fb50d55

View File

@ -93,7 +93,7 @@ static int vfio_amba_remove(struct amba_device *adev)
return -EINVAL;
}
static struct amba_id pl330_ids[] = {
static const struct amba_id pl330_ids[] = {
{ 0, 0 },
};