Add notification_get_number() for led 34/192334/1 tizen_5.0
authorlokilee73 <changjoo.lee@samsung.com>
Fri, 2 Nov 2018 08:38:35 +0000 (17:38 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Fri, 2 Nov 2018 08:38:39 +0000 (17:38 +0900)
Change-Id: Ic20f2adc803aec1a71f20aa01a0eaa1912732440
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;