m7-common: camera: clean up code style

Change-Id: Ib2d24a0182dbf6cbbb709cede8926aefb893a90c
m7-common: camera: fix possible memory leak

Change-Id: I23dca14c2565f66f0e6577076c9286e0cf72c71d
m7: Re-add digital dock routes for LPA and tunnel

* Change got stomped when updating to 4.4
* For supporting music playback over USB.

Change-Id: Ie8de0fa137e0f824a4d42f854c06b546d5a029eb
m7: post_boot: Set minimum cpufreq frequency

Also set permissions on cpu0's min/max_freq.

A couple of users have commented that sometimes the minimum
frequency is set to the maximum frequency after boot so force
the minimum frequency.

Taken from http://review.cyanogenmod.org/#/c/56036/

Change-Id: Ia2a221348c8a6980090dfbd5e4f859b933da277c
m7-common: post_boot.sh code cleanup (alignment)

Change-Id: I3b4c145dc643153d6b41d1753609f595f6c8d714
m7-common: post_boot.sh code cleanup (alignment)

Change-Id: Ie9799a905c2791dfeb1a765b5a208be0aa23ba1b
m7-common: Fix torch overlay option

* Value got smashed during overlay cleanup

Change-Id: Id35d1f8ce81fa8b844f3a11418d3f99629bb2ff0
m7-common: use hw_get_module_by_class

Change-Id: I05fe349d03465df56e34f797b5177bc37ed80129
m7-common: Add CM performance profile definitions

Change-Id: Iea706faa1ca43646ff8a75b39d7d31d4239355fc
m7-common: re-sort init directives

Change-Id: I54d6358c1c70054a56a41172a234faa8a4f5d5d4
m7-common: camera: remove scene mode hacks

* HTC HAL now lists the HDR scene mode by default

Change-Id: Ia0328cc76f5a3630974adb286219e9cc3664258d
m7-common: camera: remove preview size hack

* HTC HAL now sets the right value for video snapshot sizes

Change-Id: Id997325f0ae95bf696cbe4ac83032ca012b52998
m7-common: camera: set front cam focus mode

* Front camera does not support any focus mode other than 'infinity'

Change-Id: I401f7d7ad30efc453393755ae299783175afbb45
m7-common: camera: set FFC focal length

Change-Id: I09305bb7896ad2278d4d1c39f75620fdcadf2f63
Refactor for CFX compliance, thanks a ton Ethan and CM HTC 8960 crew!