Re: [PATCH v2 1/2] hwmon: Add Congatec Board Controller monitoring driver
From: Thomas Richard
Date: Fri Nov 15 2024 - 09:00:52 EST
On 11/11/24 20:31, Guenter Roeck wrote:
>
> I don't understand why this would be needed anyway. The current channel
> index is well known, so adding or subtracting a constant should do it.
My first idea to use this macro was to avoid issue if a new voltage
sensor is added in the future.
But it's useless. If in a new generation of Board Controller a voltage
sensor is added, it will be added at the end of the list.
But it doesn't exist for now, so no need to take care.
I'll just add a constant for curr sensors.
Regards,
Thomas