qcom-common: Fix dtbTool code formatting

Change-Id: I58e24893dcd0f5c27eb4f2a9e41a296d423591ba

Conflicts:
	dtbtool/dtbtool.c
dtbtool: add new --dt_tag switch

* Add new switch named --dt_tag (or -d)
* Allows a custom QCDT_DT_TAG
* If --dt_tag/-d is not used, it defaults to "qcom,msm-id =<" as it is today.

This should allow more flexibility with devices requiring various DT_TAGs going forward.

Change-Id: I6f6a9a55b3b94ce6103a4890b28792380fe1e274

Conflicts:
	dtbtool/dtbtool.c
dtbtool: simplify code. reducing indenting.

this tidy is in preparation for adding a stat call
instead of relying upon readdir.

Change-Id: Ibdc28c43218e2c67434a4580c61b91162e1169a6

Conflicts:
	dtbtool/dtbtool.c
dtbtool: fix for filesystems that don't return d_type from readdir

readdir() doesn't return d_type for all filesystems, in particular XFS
doesn't fill in this field. fix by using stat() instead of d_type to
determine if a dtb is a regular file. code is also rearranged slightly
to avoid doing a redundant stat().

Change-Id: I26b402f517cf8ecefa78d8ae45e51219b333b682