ARM: sa1111: provide to_sa1111_device() macro
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 6 Sep 2016 12:46:46 +0000 (13:46 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Wed, 21 Sep 2016 17:52:45 +0000 (18:52 +0100)
commitb60752f2b20c167859943e001727f0d4da419b23
treedb50775d9c399e510d4ecbeb5c0652dcbc7f7afd
parentcf6e4ca3e53f734f8fcb253a686c1fdbb6a50e85
ARM: sa1111: provide to_sa1111_device() macro

Provide a nicer to_sa1111_device macro to convert a struct device to a
sa1111_dev.  We will need this for drivers when converting them to
dev_pm_ops, or removing shutdown methods.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/common/sa1111.c
arch/arm/include/asm/hardware/sa1111.h