Skip to contentSkip to conversation

platform/x86: intel_scu_wdt: Drop mistakenly added const

PATCH In review Andy Shevchenko 2 participants 2 messages Feb 4, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86: intel_scu_wdt: Drop mistakenly added const

Neither original structure nor platform_data is declared with const. Drop mistakenly added const when assing platform_data.

Fixes a507e5d90f3d ("platform/x86: intel_scu_wdt: Get rid of custom x86 model comparison")
---
 drivers/platform/x86/intel_scu_wdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/intel_scu_wdt.c +1 -1
index 85ee85ca2215..c2479777a1d6 100644
@@ -63,7 +63,7 @@ static int __init register_mid_wdt(void)
 	if (!id)
 		return -ENODEV;
 
-	wdt_dev.dev.platform_data = (const struct intel_mid_wdt_pdata *)id->driver_data;
+	wdt_dev.dev.platform_data = (struct intel_mid_wdt_pdata *)id->driver_data;
 	return platform_device_register(&wdt_dev);
 }
 arch_initcall(register_mid_wdt);
Signature · 1 line
2.30.0
#1 lore raw

Hi,

Quoted 6 lines · Andy Shevchenko

Neither original structure nor platform_data is declared with const. Drop mistakenly added const when assing platform_data.

Fixes a507e5d90f3d ("platform/x86: intel_scu_wdt: Get rid of custom x86 model comparison")

Thank you for your patch, I've applied this patch to my review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans

Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while.

Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window.

Regards,

Hans

Quoted 18 lines
---
 drivers/platform/x86/intel_scu_wdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/intel_scu_wdt.c +1 -1
index 85ee85ca2215..c2479777a1d6 100644
@@ -63,7 +63,7 @@ static int __init register_mid_wdt(void)
 	if (!id)
 		return -ENODEV;
 
-	wdt_dev.dev.platform_data = (const struct intel_mid_wdt_pdata *)id->driver_data;
+	wdt_dev.dev.platform_data = (struct intel_mid_wdt_pdata *)id->driver_data;
 	return platform_device_register(&wdt_dev);
 }
 arch_initcall(register_mid_wdt);