Add notification_get_number() for led 96/189496/2
authorlokilee73 <changjoo.lee@samsung.com>
Tue, 18 Sep 2018 07:24:59 +0000 (16:24 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Tue, 18 Sep 2018 09:56:27 +0000 (18:56 +0900)
Change-Id: I75c93162affe2dd8e92e61e3d12082f99417f976
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
hw/led/led.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index de1f3c7..7a6e4a4
@@ -390,6 +390,12 @@ static int notification_set_state(struct led_state *state)
        return notification_turn_on(state);
 }
 
+static int notification_get_number(void)
+{
+       /* Need to implement here */
+       return 1;
+}
+
 static int led_open(struct hw_info *info,
                const char *id, struct hw_common **common)
 {
@@ -415,7 +421,7 @@ static int led_open(struct hw_info *info,
        else if (!strncmp(id, LED_ID_NOTIFICATION, len)) {
                notification_init_led();
                led_dev->set_state = notification_set_state;
-
+               led_dev->get_number = notification_get_number;
        } else {
                free(led_dev);
                return -ENOTSUP;