Commit 5a3072be6ce00b10565c78da05ad78df41310045
Committed by
Greg Kroah-Hartman
1 parent
11e3123d9f
Exists in
master
and in
20 other branches
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>
Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff
drivers/base/platform.c
... | ... | @@ -383,7 +383,7 @@ |
383 | 383 | * Returns &struct platform_device pointer on success, or ERR_PTR() on error. |
384 | 384 | */ |
385 | 385 | struct platform_device *platform_device_register_full( |
386 | - struct platform_device_info *pdevinfo) | |
386 | + const struct platform_device_info *pdevinfo) | |
387 | 387 | { |
388 | 388 | int ret = -ENOMEM; |
389 | 389 | struct platform_device *pdev; |
include/linux/platform_device.h
... | ... | @@ -63,7 +63,7 @@ |
63 | 63 | u64 dma_mask; |
64 | 64 | }; |
65 | 65 | extern struct platform_device *platform_device_register_full( |
66 | - struct platform_device_info *pdevinfo); | |
66 | + const struct platform_device_info *pdevinfo); | |
67 | 67 | |
68 | 68 | /** |
69 | 69 | * platform_device_register_resndata - add a platform-level device with |