Skip to content

Commit 4a29f90

Browse files
Dan Murphypavelmachek
authored andcommitted
leds: flash: Convert non extended registration to inline
Convert the #define non-extended registration API to an inline function. Signed-off-by: Dan Murphy <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
1 parent f884e86 commit 4a29f90

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

include/linux/led-class-flash.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,11 @@ extern int led_classdev_flash_register_ext(struct device *parent,
9898
struct led_classdev_flash *fled_cdev,
9999
struct led_init_data *init_data);
100100

101-
#define led_classdev_flash_register(parent, fled_cdev) \
102-
led_classdev_flash_register_ext(parent, fled_cdev, NULL)
101+
static inline int led_classdev_flash_register(struct device *parent,
102+
struct led_classdev_flash *fled_cdev)
103+
{
104+
return led_classdev_flash_register_ext(parent, fled_cdev, NULL);
105+
}
103106

104107
/**
105108
* led_classdev_flash_unregister - unregisters an object of led_classdev class

0 commit comments

Comments
 (0)