mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
driver core: Const-correct platform getbyname functions
This converts resource and IRQ getbyname functions for the platform bus to use const char *, I ran into compiler moanings when I tried using a const char * for looking up a certain resource. Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
309b7d60a3
commit
c0afe7ba5e
2 changed files with 5 additions and 4 deletions
|
|
@ -69,7 +69,8 @@ EXPORT_SYMBOL_GPL(platform_get_irq);
|
|||
* @name: resource name
|
||||
*/
|
||||
struct resource *platform_get_resource_byname(struct platform_device *dev,
|
||||
unsigned int type, char *name)
|
||||
unsigned int type,
|
||||
const char *name)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
@ -88,7 +89,7 @@ EXPORT_SYMBOL_GPL(platform_get_resource_byname);
|
|||
* @dev: platform device
|
||||
* @name: IRQ name
|
||||
*/
|
||||
int platform_get_irq_byname(struct platform_device *dev, char *name)
|
||||
int platform_get_irq_byname(struct platform_device *dev, const char *name)
|
||||
{
|
||||
struct resource *r = platform_get_resource_byname(dev, IORESOURCE_IRQ,
|
||||
name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue