OSDN Git Service

regulator: anatop: remove unneeded name field of struct anatop_regulator
authorDong Aisheng <aisheng.dong@nxp.com>
Wed, 12 Apr 2017 01:58:45 +0000 (09:58 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 11 Apr 2017 20:36:01 +0000 (21:36 +0100)
commitaeb1404d68df62b0a1d277a4138dbd92a4330304
treed72251976dc5401bbd495dcab1690ae0e5a2f289
parent5062e04711dbc4f67b24ffd926cc67060267792d
regulator: anatop: remove unneeded name field of struct anatop_regulator

sreg->name is only used as an intermediate assign of rdesc->name, plus
another strcmp. Since we already have rdesc->name, no need it anymore.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/anatop-regulator.c