summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungjae Cho <y0.cho@samsung.com>2024-06-24 13:50:06 +0900
committeryoungjae cho <y0.cho@samsung.com>2024-06-24 06:12:08 +0000
commita0e3038ec5e34d55959d6779e2c97aecb7c5b064 (patch)
treef8c87e45c7dcd5e5e2c0ab2de569eb31fd8ac891
parent682f1ef9b0ebdcee4b8459249545db93e13b445a (diff)
downloadlibsyscommon-accepted/tizen_8.0_unified.tar.gz
libsyscommon-accepted/tizen_8.0_unified.tar.bz2
libsyscommon-accepted/tizen_8.0_unified.zip
The error ENOTSUP and EOPNOTSUPP are both 95 so they cannot be distinguished. Therefore, fixed the EOPNOTSUPP to ENOSYS. ENOSYS 38 Function not implemented The EOPNOTSUPP was for not implemented operations so the ENOSYS fits into that meaning. Change-Id: I10af2b25a848344c82c91afad3ab8ebada35c872 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
-rw-r--r--src/plugin-api/deviced/src/syscommon-plugin-deviced-display.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/plugin-api/deviced/src/syscommon-plugin-deviced-display.c b/src/plugin-api/deviced/src/syscommon-plugin-deviced-display.c
index f92a180..8e25042 100644
--- a/src/plugin-api/deviced/src/syscommon-plugin-deviced-display.c
+++ b/src/plugin-api/deviced/src/syscommon-plugin-deviced-display.c
@@ -95,7 +95,7 @@ int syscommon_plugin_deviced_display_load_config(struct syscommon_deviced_displa
assert(g_display_funcs);
if (!g_display_funcs->load_display_config)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->load_display_config(data);
}
@@ -114,7 +114,7 @@ int syscommon_plugin_deviced_display_load_state_info(struct syscommon_deviced_di
assert(g_display_funcs);
if (!g_display_funcs->load_state_info)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->load_state_info(states);
@@ -134,7 +134,7 @@ int syscommon_plugin_deviced_display_notify_setting_value_changed(int key, int v
assert(g_display_funcs);
if (!g_display_funcs->on_changed_setting_value)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->on_changed_setting_value(key, value);
}
@@ -153,7 +153,7 @@ int syscommon_plugin_deviced_display_lcd_on_procedure(enum syscommon_deviced_dis
assert(g_display_funcs);
if (!g_display_funcs->lcd_on_procedure)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->lcd_on_procedure(state, reason);
}
@@ -172,7 +172,7 @@ int syscommon_plugin_deviced_display_lcd_off_procedure(enum deviced_event reason
assert(g_display_funcs);
if (!g_display_funcs->lcd_off_procedure)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->lcd_off_procedure(reason);
}
@@ -191,7 +191,7 @@ int syscommon_plugin_deviced_display_custom_lcd_on(int timeout)
assert(g_display_funcs);
if (!g_display_funcs->custom_lcd_on)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->custom_lcd_on(timeout);
}
@@ -210,7 +210,7 @@ int syscommon_plugin_deviced_display_custom_lcd_off(enum deviced_event reason)
assert(g_display_funcs);
if (!g_display_funcs->custom_lcd_off)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->custom_lcd_off(reason);
}
@@ -229,7 +229,7 @@ int syscommon_plugin_deviced_display_on_by_reason(const char *reason, int timeou
assert(g_display_funcs);
if (!g_display_funcs->on_by_reason)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->on_by_reason(reason, timeout);
}
@@ -248,7 +248,7 @@ int syscommon_plugin_deviced_display_off_by_reason(const char *reason)
assert(g_display_funcs);
if (!g_display_funcs->off_by_reason)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->off_by_reason(reason);
}
@@ -267,7 +267,7 @@ int syscommon_plugin_deviced_display_get_brightness(int *brightness)
assert(g_display_funcs);
if (!g_display_funcs->get_brightness)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->get_brightness(brightness);
}
@@ -286,7 +286,7 @@ int syscommon_plugin_deviced_display_set_brightness(int brightness)
assert(g_display_funcs);
if (!g_display_funcs->set_brightness)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->set_brightness(brightness);
}
@@ -306,7 +306,7 @@ int syscommon_plugin_deviced_display_set_brightness_smooth(int start_brightness,
assert(g_display_funcs);
if (!g_display_funcs->set_brightness_smooth)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->set_brightness_smooth(start_brightness, end_brightness, step);
}
@@ -325,7 +325,7 @@ int syscommon_plugin_deviced_display_set_powersaving_mode(int enable)
assert(g_display_funcs);
if (!g_display_funcs->set_powersaving_mode)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->set_powersaving_mode(enable);
}
@@ -344,7 +344,7 @@ int syscommon_plugin_deviced_display_control_auto_brightness(int mode, int brigh
assert(g_display_funcs);
if (!g_display_funcs->control_auto_brightness)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->control_auto_brightness(mode, brightness);
}
@@ -363,7 +363,7 @@ int syscommon_plugin_deviced_display_set_auto_brightness_min(int brightness, con
assert(g_display_funcs);
if (!g_display_funcs->set_auto_brightness_min)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->set_auto_brightness_min(brightness, name);
}
@@ -382,7 +382,7 @@ int syscommon_plugin_deviced_display_proc_change_state(unsigned int cond, pid_t
assert(g_display_funcs);
if (!g_display_funcs->proc_change_state)
- return -EOPNOTSUPP;
+ return -ENOSYS;
return g_display_funcs->proc_change_state(cond, pid);
}