[PATCH v2 10/10] drm/ofdrm: Support color management

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri Aug 5 10:19:22 AEST 2022


On Wed, 2022-07-20 at 16:27 +0200, Thomas Zimmermann wrote:
> +#if !defined(CONFIG_PPC)
> +static inline void out_8(void __iomem *addr, int val)
> +{ }
> +static inline void out_le32(void __iomem *addr, int val)
> +{ }
> +static inline unsigned int in_le32(const void __iomem *addr)
> +{
> +       return 0;
> +}
> +#endif

These guys could just be replaced with readb/writel/readl respectively
(beware of the argument swap).

Cheers,
Ben.



More information about the Linuxppc-dev mailing list