Re: [PATCH 2/2] ARM: at91: pm: switch to the PIE infrastructure

From: Russell King - ARM Linux
Date: Mon Apr 04 2016 - 06:02:18 EST


On Sun, Apr 03, 2016 at 09:23:54AM +0200, Alexandre Belloni wrote:
> - /* Copy the pm suspend handler to SRAM */
> - at91_suspend_sram_fn = fncpy(at91_suspend_sram_fn,
> - &at91_pm_suspend_in_sram, at91_pm_suspend_in_sram_sz);

This is proper and correct use of fncpy().

--
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.