Re: [PATCH 1/2] regulator: tps65910: Remove unused min_uV and max_uVfrom struct tps_info

From: Laxman Dewangan
Date: Fri Jun 22 2012 - 01:57:58 EST


On Thursday 21 June 2012 04:15 PM, Axel Lin wrote:
The min_uV and max_uV fields of struct tps_info are not used in the code.
For the case voltage_table is provided, the min_uV and max_uV are the same
values as volt_table[0] and volt_table[n_voltages -1].
For the case voltage_table is not available, having the min_uV and max_uV seems
misleading. Current code uses equations to get the voltage value in this case,
but these equations do not use the min_uV and max_uV fields of struct tps_info.

Thus this patch removes the min_uV and max_uV fields from struct tps_info.

Signed-off-by: Axel Lin<axel.lin@xxxxxxxxx>
---
Acked-by: Laxman Dewangan <ldewangan@xxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/