summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/hardware
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2016-09-06 13:46:46 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2016-09-21 18:52:45 +0100
commitb60752f2b20c167859943e001727f0d4da419b23 (patch)
treedb50775d9c399e510d4ecbeb5c0652dcbc7f7afd /arch/arm/include/asm/hardware
parentcf6e4ca3e53f734f8fcb253a686c1fdbb6a50e85 (diff)
downloadblackbird-op-linux-b60752f2b20c167859943e001727f0d4da419b23.tar.gz
blackbird-op-linux-b60752f2b20c167859943e001727f0d4da419b23.zip
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>
Diffstat (limited to 'arch/arm/include/asm/hardware')
-rw-r--r--arch/arm/include/asm/hardware/sa1111.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/hardware/sa1111.h b/arch/arm/include/asm/hardware/sa1111.h
index 267e43b5225f..8979fa3bbf2d 100644
--- a/arch/arm/include/asm/hardware/sa1111.h
+++ b/arch/arm/include/asm/hardware/sa1111.h
@@ -420,7 +420,7 @@ struct sa1111_dev {
u64 dma_mask;
};
-#define SA1111_DEV(_d) container_of((_d), struct sa1111_dev, dev)
+#define to_sa1111_device(x) container_of(x, struct sa1111_dev, dev)
#define sa1111_get_drvdata(d) dev_get_drvdata(&(d)->dev)
#define sa1111_set_drvdata(d,p) dev_set_drvdata(&(d)->dev, p)
OpenPOWER on IntegriCloud