mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
power: reset: ltc2952: fix C++ style function pointers
The function pointers for the timers and pm_power_off are assigned with C++ style foo = &func; Let's change it instead to the more C style foo = func; Signed-off-by: Frans Klaver <frans.klaver@xsens.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
This commit is contained in:
parent
5c3faad29b
commit
5689b786f7
1 changed files with 3 additions and 3 deletions
|
@ -182,10 +182,10 @@ static void ltc2952_poweroff_default(struct ltc2952_poweroff *data)
|
|||
data->trigger_delay = ktime_set(2, 500L*1E6L);
|
||||
|
||||
hrtimer_init(&data->timer_trigger, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
|
||||
data->timer_trigger.function = <c2952_poweroff_timer_trigger;
|
||||
data->timer_trigger.function = ltc2952_poweroff_timer_trigger;
|
||||
|
||||
hrtimer_init(&data->timer_wde, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
|
||||
data->timer_wde.function = <c2952_poweroff_timer_wde;
|
||||
data->timer_wde.function = ltc2952_poweroff_timer_wde;
|
||||
}
|
||||
|
||||
static int ltc2952_poweroff_init(struct platform_device *pdev)
|
||||
|
@ -270,7 +270,7 @@ static int ltc2952_poweroff_probe(struct platform_device *pdev)
|
|||
|
||||
/* TODO: remove ltc2952_data */
|
||||
ltc2952_data = data;
|
||||
pm_power_off = <c2952_poweroff_kill;
|
||||
pm_power_off = ltc2952_poweroff_kill;
|
||||
|
||||
data->panic_notifier.notifier_call = ltc2952_poweroff_notify_panic;
|
||||
atomic_notifier_chain_register(&panic_notifier_list,
|
||||
|
|
Loading…
Reference in a new issue