[PATCH v2 2/2] thermal: imx91: Add support for i.MX91 thermal monitoring unit

Fabio Estevam festevam at gmail.com
Wed Dec 11 07:59:00 PST 2024


On Tue, Dec 10, 2024 at 6:27 PM Frank Li <Frank.Li at nxp.com> wrote:

> +#define CTRL0                  0x0
> +
> +#define STAT0                  0x10
...
> +#define DATA0                  0x20

These generic short macro names can easily clash in the future.

It would be better to add a better namespace definition.

For example:

IMX91_THERMAL_CTRL0
IMX91_THERMAL_STAT0
IMX91_THERMAL_DATA0



More information about the linux-arm-kernel mailing list