diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2020-07-22 16:33:05 +0530 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2020-07-27 15:46:16 +0100 |
commit | 229f5879facf96e5640c0385f62b8cb5f27b8a43 (patch) | |
tree | 2400b4b2c2f2e97a6297ffddf86652cbfbc2da0f /drivers/pci/controller/dwc/pci-keystone.c | |
parent | 19abcd790b51b26d775e1170ba2ac086823cceeb (diff) |
linux/kernel.h: Add PTR_ALIGN_DOWN macro
Add a macro for aligning down a pointer. This is useful to get an
aligned register address when a device allows only word access and
doesn't allow half word or byte access.
Link: https://lore.kernel.org/r/20200722110317.4744-4-kishon@ti.com
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-keystone.c')
0 files changed, 0 insertions, 0 deletions