]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: shmobile: R-Car: Get rid of on_off_fn() function pointer
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 4 Jun 2015 18:22:32 +0000 (20:22 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 6 Jul 2015 00:35:22 +0000 (09:35 +0900)
commitbcb8243792eaa855a51c96bfeaa5dbca19f48d07
treee875695f45487832563886155cf315303f62e6ac
parent21437c53f3dc2e1e52ccb8aed0a65dd3879ca671
ARM: shmobile: R-Car: Get rid of on_off_fn() function pointer

Simplify the power request code by passing an "on" flag, and picking the
right status bit and register offset in the innermost function, based on
this flag.
This allows to remove the rcar_sysc_pwr_{off,on}() helper functions, and
the function pointer through which they were called.

Make sr_bit and reg_offs unsigned while we're at it.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/pm-rcar.c