NOTIFY_STR(DEVICE_NOTIFIER_DELAYED_INIT),
NOTIFY_STR(DEVICE_NOTIFIER_LCD),
NOTIFY_STR(DEVICE_NOTIFIER_LCD_OFF),
+ NOTIFY_STR(DEVICE_NOTIFIER_LCD_OFF_COMPLETE),
+ NOTIFY_STR(DEVICE_NOTIFIER_LCD_AUTOBRT_SENSING),
NOTIFY_STR(DEVICE_NOTIFIER_LOWBAT),
NOTIFY_STR(DEVICE_NOTIFIER_FULLBAT),
NOTIFY_STR(DEVICE_NOTIFIER_POWER_SUPPLY),
NOTIFY_STR(DEVICE_NOTIFIER_BATTERY_PRESENT),
NOTIFY_STR(DEVICE_NOTIFIER_BATTERY_OVP),
NOTIFY_STR(DEVICE_NOTIFIER_BATTERY_CHARGING),
+ NOTIFY_STR(DEVICE_NOTIFIER_BATTERY_CHARGER_CONNECTED),
+ NOTIFY_STR(DEVICE_NOTIFIER_BATTERY_CHARGER_DISCONNECTED),
NOTIFY_STR(DEVICE_NOTIFIER_DISPLAY_AMBIENT_CONDITION),
NOTIFY_STR(DEVICE_NOTIFIER_DISPLAY_AMBIENT_STATE),
NOTIFY_STR(DEVICE_NOTIFIER_DISPLAY_LOCK),
NOTIFY_STR(DEVICE_NOTIFIER_USB_DEBUG_MODE),
NOTIFY_STR(DEVICE_NOTIFIER_USB_TETHERING_MODE),
NOTIFY_STR(DEVICE_NOTIFIER_EVENT_HANDLER),
+ NOTIFY_STR(DEVICE_NOTIFIER_CPU_BOOST_LOWBAT),
+ NOTIFY_STR(DEVICE_NOTIFIER_CPU_BOOST_POWEROFF),
NOTIFY_STR(DEVICE_NOTIFIER_PMQOS),
NOTIFY_STR(DEVICE_NOTIFIER_PMQOS_ULTRAPOWERSAVING),
NOTIFY_STR(DEVICE_NOTIFIER_PMQOS_POWERSAVING),
NOTIFY_STR(DEVICE_NOTIFIER_BEZEL_WAKEUP),
NOTIFY_STR(DEVICE_NOTIFIER_DISPLAY_BRIGHTNESS),
NOTIFY_STR(DEVICE_NOTIFIER_ULTRAPOWERSAVING),
+ NOTIFY_STR(DEVICE_NOTIFIER_EXTCON_COUNT),
+ NOTIFY_STR(DEVICE_NOTIFIER_KEY_PRESS),
+ NOTIFY_STR(DEVICE_NOTIFIER_KEY_RELEASE),
+
+ /* action triggered by input event */
+ NOTIFY_STR(DEVICE_NOTIFIER_INPUT_TRIGGER_POWEROFF),
+ NOTIFY_STR(DEVICE_NOTIFIER_INPUT_BROADCAST_SIGNAL),
+
+ /* Purpose of calling methods of different modules
+ * Use prefix DEVICE_NOTIFIER_REQUEST */
+ NOTIFY_STR(DEVICE_NOTIFIER_REQUEST_TRANSITION_STATE),
};
static gint compare_priority(gconstpointer a, gconstpointer b)
GList *n;
struct device_notifier *notifier;
+ if (type < DEVICE_NOTIFIER_MIN || type >= DEVICE_NOTIFIER_MAX)
+ return -EINVAL;
+
_I("%s, %p by %s", device_notifier_type_str[type], func, caller);
if (!func) {
struct device_notifier *notifier;
static int id = 1;
+ if (type < DEVICE_NOTIFIER_MIN || type >= DEVICE_NOTIFIER_MAX)
+ return -EINVAL;
+
_I("%s, %p by %s", device_notifier_type_str[type], func_udata, caller);
if (!func_udata) {
GList *n;
struct device_notifier *notifier;
+ if (type < DEVICE_NOTIFIER_MIN || type >= DEVICE_NOTIFIER_MAX)
+ return -EINVAL;
+
if (!func) {
_E("invalid func address of %s! by %s", device_notifier_type_str[type], caller);
return -EINVAL;