Re: [PATCH] regulator: rc5t583: Simplify RC5T583_REG macro

From: Laxman Dewangan
Date: Fri Apr 06 2012 - 01:43:43 EST


On Friday 06 April 2012 05:31 AM, Axel Lin wrote:
Simplify RC5T583_REG macro by removing _vout_reg and _ds_reg parameters.

The naming for vout_reg and deepsleep_reg can be replaced by:
.vout_reg = RC5T583_REG_##_id##DAC,
.deepsleep_reg = RC5T583_REG_##_id##DAC_DS,

Signed-off-by: Axel Lin<axel.lin@xxxxxxxxx>
---

Acked-by: Laxman Dewangan <ldewangan@xxxxxxxxxx>

I thought of doing this on my first patch and then thought that table should have all configuration picture rather than deriving from few parameters.
If this is a good way then I will take care for my next PMIC driver development.

Thanks,
Laxman
--
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/