Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 277036f0 authored by Jan Kiszka's avatar Jan Kiszka
Browse files

platform: Accept const properties



Aligns us with device_add_properties, the function we call.

Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
parent 0d963ebf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -344,7 +344,7 @@ EXPORT_SYMBOL_GPL(platform_device_add_data);
 * platform device is released.
 */
int platform_device_add_properties(struct platform_device *pdev,
				   struct property_entry *properties)
				   const struct property_entry *properties)
{
	return device_add_properties(&pdev->dev, properties);
}
+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ extern int platform_device_add_resources(struct platform_device *pdev,
extern int platform_device_add_data(struct platform_device *pdev,
				    const void *data, size_t size);
extern int platform_device_add_properties(struct platform_device *pdev,
					  struct property_entry *properties);
				const struct property_entry *properties);
extern int platform_device_add(struct platform_device *pdev);
extern void platform_device_del(struct platform_device *pdev);
extern void platform_device_put(struct platform_device *pdev);