regulator: tps6524x: Convert fixed ilimsel to table based
authorAxel Lin <axel.lin@gmail.com>
Wed, 20 Jun 2012 14:32:08 +0000 (22:32 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 2 Jul 2012 17:26:03 +0000 (18:26 +0100)
commit1e12dfc9681fed46fbc9fffc6aba9613908c1213
tree26ff5bc9fb6140add172837f87339d5df9832313
parentcac87fd34ebd79a954321f78acf38abcc69e1308
regulator: tps6524x: Convert fixed ilimsel to table based

This patch refactors the code to get rid of the fixed_ilimsel and FIXED_ILIMSEL
flag usage, and convert all the fixed ilimsel to table based (with one entry in
the table).

We can differentiate fixed ilimsel by checking info->n_ilimsels == 1,
thus FIXED_ILIMSEL flag can be removed.

This change makes the logic of the code simpler as all the ilimsels are table
based now.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/tps6524x-regulator.c
This page took 0.029725 seconds and 5 git commands to generate.