drivers_base: make argument to platform_device_register_full const
platform_device_register_full doesn't modify *pdevinfo so it can be marked as const without further adaptions. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
11e3123d9f
commit
5a3072be6c
@@ -383,7 +383,7 @@ EXPORT_SYMBOL_GPL(platform_device_unregister);
|
|||||||
* Returns &struct platform_device pointer on success, or ERR_PTR() on error.
|
* Returns &struct platform_device pointer on success, or ERR_PTR() on error.
|
||||||
*/
|
*/
|
||||||
struct platform_device *platform_device_register_full(
|
struct platform_device *platform_device_register_full(
|
||||||
struct platform_device_info *pdevinfo)
|
const struct platform_device_info *pdevinfo)
|
||||||
{
|
{
|
||||||
int ret = -ENOMEM;
|
int ret = -ENOMEM;
|
||||||
struct platform_device *pdev;
|
struct platform_device *pdev;
|
||||||
|
@@ -63,7 +63,7 @@ struct platform_device_info {
|
|||||||
u64 dma_mask;
|
u64 dma_mask;
|
||||||
};
|
};
|
||||||
extern struct platform_device *platform_device_register_full(
|
extern struct platform_device *platform_device_register_full(
|
||||||
struct platform_device_info *pdevinfo);
|
const struct platform_device_info *pdevinfo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* platform_device_register_resndata - add a platform-level device with
|
* platform_device_register_resndata - add a platform-level device with
|
||||||
|
Reference in New Issue
Block a user