From: Arvind Yadav Date: Thu, 6 Jul 2017 16:55:56 +0000 (+0530) Subject: extcon: int3496: Constify acpi_device_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff890bc00830830799a72ed7481836f0dd9c3be9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git extcon: int3496: Constify acpi_device_id acpi_device_id are not supposed to change at runtime. All functions working with acpi_device_id provided by work with const acpi_device_id. So mark the non-const structs as const. File size before: text data bss dec hex filename 1733 352 0 2085 825 drivers/extcon/extcon-intel-int3496.o File size After adding 'const': text data bss dec hex filename 1797 272 0 2069 815 drivers/extcon/extcon-intel-int3496.o Signed-off-by: Arvind Yadav Signed-off-by: Chanwoo Choi --- diff --git a/drivers/extcon/extcon-intel-int3496.c b/drivers/extcon/extcon-intel-int3496.c index d9f9afe45961..1a45e745717d 100644 --- a/drivers/extcon/extcon-intel-int3496.c +++ b/drivers/extcon/extcon-intel-int3496.c @@ -171,7 +171,7 @@ static int int3496_remove(struct platform_device *pdev) return 0; } -static struct acpi_device_id int3496_acpi_match[] = { +static const struct acpi_device_id int3496_acpi_match[] = { { "INT3496" }, { } };