]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
regulator: Fix desc_id for tps65023/6507x/65910
authorAxel Lin <axel.lin@gmail.com>
Thu, 12 May 2011 05:47:50 +0000 (13:47 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 27 May 2011 09:49:09 +0000 (10:49 +0100)
commit77fa44d0e10711e899788c58fe53f8f7b18c7f67
treefb2a0313778dd0ade523162506af3a0835e2ccc3
parentc01e36dde4632e0a7474fddf0716f1e54f01f13e
regulator: Fix desc_id for tps65023/6507x/65910

The desc_id variable should not be a static variable.

The rest of the code assumes the desc_id must less than TPSxxxxx_NUM_REGULATOR.
If we set desc_id to be a static variable, checking the return value of
rdev_get_id() may return error.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Anuj Aggarwal <anuj.aggarwal@ti.com>
Cc: Graeme Gregory <gg@slimlogic.co.uk>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/tps65023-regulator.c
drivers/regulator/tps6507x-regulator.c
drivers/regulator/tps65910-regulator.c