]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: as3711: Use a static of_regulator_match table for of_regulator_match
authorAxel Lin <axel.lin@ingics.com>
Wed, 17 Apr 2013 08:01:22 +0000 (16:01 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Apr 2013 13:41:07 +0000 (14:41 +0100)
commit65e01ccbc65eb62495f26c2d5d493fd5d899aa26
tree9de4e10b460523b3ac71f44e28d12d7a01179110
parentf9b6e5f6a084ca806ccd6e2f991c385892d3b3be
regulator: as3711: Use a static of_regulator_match table for of_regulator_match

The same table can be used for multiple instance of pdev, so we don't need to
allocate memory for of_regulator_match table per pdev.

match->driver_data points to the corresponding entry of as3711_reg_info,
however it is not used in current code, thus this patch does not set
driver_data in the of_regulator_match table.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/as3711-regulator.c