config: Move strdup into new_name/new_case/new_usecase
config: Move strdup into new_name/new_case/new_usecase

Passing ownership of the strdup() block into another function can
confuse static analyzers into thinking it is a memory leak. Change
the code so that the original string is passed to new_name/new_case/
new_usecase and it does the strdup() inside the called function.

Change-Id: I0108642837f0cbb0bf31eaed93722960b3adc4fb
Signed-off-by: Richard Fitzgerald <22ee0097135072451429b5ac45630d52779cd49b@opensource.cirrus.com>

CirrusLogic/tinyhal,CirrusLogic/tinyhal,CirrusLogic/tinyhal