]> git.sur5r.net Git - u-boot/commit
power: pmic: Use trailing_strtol() instead of a local function
authorSimon Glass <sjg@chromium.org>
Tue, 23 Jun 2015 21:39:16 +0000 (15:39 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Jul 2015 23:39:30 +0000 (17:39 -0600)
commite15bb3e63c87672c1f3b82edd9853eb7c3abfa20
tree964c6905bff2c125a9b4d082a2b3663f38dbcc92
parentf26c8a8e77629cf9de36a697ea5513f9184a2319
power: pmic: Use trailing_strtol() instead of a local function

Use the common function to obtain the number from the end of the string,
instead of a local function. Also tweak the position of a debug() statement.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Przemyslaw Marczak <p.marczak@samsung.com>
Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
drivers/power/pmic/pmic-uclass.c