Re: [PATCH v2 2/2] hwmon: Add support for HiTRON HAC300S PSU
From: Guenter Roeck
Date: Tue Jan 27 2026 - 10:28:14 EST
On Mon, Jan 19, 2026 at 08:08:06PM +0100, Vasileios Amoiridis wrote:
> From: Vasileios Amoiridis <vasileios.amoiridis@xxxxxxx>
>
> Add Support for HiTRON HAC300S PSU. This is a AC/DC hot-swappable
> CompactPCI Serial Dual output active current sharing switching power
> supply with a 312W rating.
>
> Signed-off-by: Vasileios Amoiridis <vasileios.amoiridis@xxxxxxx>
checkpatch --strict returns various whitespace errors. Please run that
command in the future.
Also,
> +static int hac300s_read_byte_data(struct i2c_client *client, int page, int reg)
> +{
> + const struct pmbus_driver_info *info = pmbus_get_driver_info(client);
> + struct hac300s_data *data = to_hac300s_data(info);
> +
> + if (reg == PMBUS_VOUT_MODE)
> + return data->exponent;
> +
> + return pmbus_read_byte_data(client, page, reg);
This should return -ENODATA.
No need to resend; I fixed it all up and applied the patch.
Thanks,
Guenter