From: Vyacheslav Cherkashin Date: Thu, 14 Nov 2013 13:09:20 +0000 (+0400) Subject: [FIX] remove mistyping X-Git-Tag: accepted/tizen/mobile/20160407.001200~309 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1926954f322590a7c796c49ba4446adc02ea5961;p=platform%2Fkernel%2Fswap-modules.git [FIX] remove mistyping Change-Id: I27e14f46630d3f2902d5616d6c8825eb2dfefee8 Signed-off-by: Vyacheslav Cherkashin --- diff --git a/energy/lcd/lcd_base.c b/energy/lcd/lcd_base.c index 3c7d7b4..2b0a36b 100644 --- a/energy/lcd/lcd_base.c +++ b/energy/lcd/lcd_base.c @@ -156,7 +156,7 @@ static DEFINE_MUTEX(lcd_lock); static void add_lcd(struct lcd_ops *ops) { ops->priv = create_lcd_priv(ops); - ops->notifler = func_notifier_lcd; + ops->notifier = func_notifier_lcd; set_brightness(ops, ops->get(ops, LPD_BRIGHTNESS)); INIT_LIST_HEAD(&ops->list); diff --git a/energy/lcd/lcd_base.h b/energy/lcd/lcd_base.h index ae0c452..5da1fc2 100644 --- a/energy/lcd/lcd_base.h +++ b/energy/lcd/lcd_base.h @@ -33,7 +33,7 @@ enum lcd_action_type { LAT_BRIGHTNESS }; -enum lcd_paramerer_type { +enum lcd_parameter_type { LPD_MIN_BRIGHTNESS, LPD_MAX_BRIGHTNESS, LPD_BRIGHTNESS @@ -45,7 +45,7 @@ typedef int (*check_lcd)(void); typedef int (*notifier_lcd)(struct lcd_ops *ops, enum lcd_action_type action, void *data); typedef unsigned long (*get_parameter_lcd)(struct lcd_ops *ops, - enum lcd_paramerer_type type); + enum lcd_parameter_type type); struct lcd_ops { @@ -53,7 +53,7 @@ struct lcd_ops { char *name; check_lcd check; - notifier_lcd notifler; + notifier_lcd notifier; get_parameter_lcd get; void *priv; diff --git a/energy/lcd/maru.c b/energy/lcd/maru.c index 9880804..30563e2 100644 --- a/energy/lcd/maru.c +++ b/energy/lcd/maru.c @@ -59,7 +59,7 @@ static int maru_check(void) } static unsigned long maru_get_parameter(struct lcd_ops *ops, - enum lcd_paramerer_type type) + enum lcd_parameter_type type) { switch (type) { case LPD_MIN_BRIGHTNESS: @@ -105,8 +105,8 @@ static int ret_handler_set_backlight(struct kretprobe_instance *ri, int ret = regs_return_value(regs); int *brightness = (int *)ri->data; - if (!ret && ops.notifler) - ops.notifler(&ops, LAT_BRIGHTNESS, (void *)*brightness); + if (!ret && ops.notifier) + ops.notifier(&ops, LAT_BRIGHTNESS, (void *)*brightness); return 0; }