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);
LAT_BRIGHTNESS
};
-enum lcd_paramerer_type {
+enum lcd_parameter_type {
LPD_MIN_BRIGHTNESS,
LPD_MAX_BRIGHTNESS,
LPD_BRIGHTNESS
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 {
char *name;
check_lcd check;
- notifier_lcd notifler;
+ notifier_lcd notifier;
get_parameter_lcd get;
void *priv;
}
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:
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;
}