summaryrefslogtreecommitdiff
path: root/lib/fdt_wip.c
diff options
context:
space:
mode:
authorMartin Jocic <martin.jocic@kvaser.com>2024-08-22 18:38:59 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2024-08-30 22:40:23 +0200
commita9c0fb33fd454fda5283281e47d556c81ee9fa47 (patch)
tree0b39e8d3298d96e72faf53d632b6a8bddf151813 /lib/fdt_wip.c
parent2423cc20087ae9a7b7af575aa62304ef67cad7b6 (diff)
can: kvaser_pciefd: Use IS_ENABLED() instead of #ifdef
Use the IS_ENABLED() macro to check kernel config defines instead of ifdef. Use upper_32_bits() to avoid warnings about "right shift count >= width of type" on systems with CONFIG_ARCH_DMA_ADDR_T_64BIT not set. In kvaser_pciefd_write_dma_map_altera() use lower_32_bits() for symmetry. Signed-off-by: Martin Jocic <martin.jocic@kvaser.com> Link: https://patch.msgid.link/20240830141038.1402217-1-mkl@pengutronix.de Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'lib/fdt_wip.c')
0 files changed, 0 insertions, 0 deletions