forked from Minki/linux
platform: Accept const properties
Aligns us with device_add_properties, the function we call. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
This commit is contained in:
parent
0d963ebf57
commit
277036f05b
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user